import { o as d, p as y, L as b, s as _, t, i as g, j as u, f as S, a as T, b as k, g as W, q as j, r as X, E as p, __tla as __tla_0 } from "./main-1f248fe2.js";
import { __tla as __tla_1 } from "./index-c30f3063.js";
let OO, rO, J, aO;
let __tla = Promise.all([
  (() => {
    try {
      return __tla_0;
    } catch {
    }
  })(),
  (() => {
    try {
      return __tla_1;
    } catch {
    }
  })()
]).then(async () => {
  const Y = 1, U = 2, G = 3, R = 179, z = 4, v = 180, x = 5, Z = 181, V = 6;
  function E(O) {
    return O >= 65 && O <= 90 || O >= 97 && O <= 122;
  }
  const F = new p((O) => {
    let a = O.pos;
    for (; ; ) {
      let { next: e } = O;
      if (e < 0)
        break;
      if (e == 123) {
        let r = O.peek(1);
        if (r == 123) {
          if (O.pos > a)
            break;
          O.acceptToken(Y, 2);
          return;
        } else if (r == 37) {
          if (O.pos > a)
            break;
          let $ = 2, i = 2;
          for (; ; ) {
            let n = O.peek($);
            if (n == 32 || n == 10)
              ++$;
            else if (n == 35)
              for (++$; ; ) {
                let Q = O.peek($);
                if (Q < 0 || Q == 10)
                  break;
                $++;
              }
            else if (n == 45 && i == 2)
              i = ++$;
            else {
              let Q = n == 101 && O.peek($ + 1) == 110 && O.peek($ + 2) == 100;
              O.acceptToken(Q ? G : U, i);
              return;
            }
          }
        }
      }
      if (O.advance(), e == 10)
        break;
    }
    O.pos > a && O.acceptToken(R);
  });
  function h(O, a, e) {
    return new p((r) => {
      let $ = r.pos;
      for (; ; ) {
        let { next: i } = r;
        if (i == 123 && r.peek(1) == 37) {
          let n = 2;
          for (; ; n++) {
            let s = r.peek(n);
            if (s != 32 && s != 10)
              break;
          }
          let Q = "";
          for (; ; n++) {
            let s = r.peek(n);
            if (!E(s))
              break;
            Q += String.fromCharCode(s);
          }
          if (Q == O) {
            if (r.pos > $)
              break;
            r.acceptToken(e, 2);
            break;
          }
        } else if (i < 0)
          break;
        if (r.advance(), i == 10)
          break;
      }
      r.pos > $ && r.acceptToken(a);
    });
  }
  const D = h("endcomment", Z, x), C = h("endraw", v, z), N = new p((O) => {
    if (O.next == 35) {
      for (O.advance(); !(O.next == 10 || O.next < 0 || (O.next == 37 || O.next == 125) && O.peek(1) == 125); )
        O.advance();
      O.acceptToken(V);
    }
  }), I = {
    __proto__: null,
    contains: 32,
    or: 36,
    and: 36,
    true: 50,
    false: 50,
    empty: 52,
    forloop: 54,
    tablerowloop: 56,
    continue: 58,
    in: 128,
    with: 194,
    for: 196,
    as: 198,
    if: 234,
    endif: 238,
    unless: 244,
    endunless: 248,
    elsif: 252,
    else: 256,
    case: 262,
    endcase: 266,
    when: 270,
    endfor: 278,
    tablerow: 284,
    endtablerow: 288,
    break: 292,
    cycle: 298,
    echo: 302,
    render: 306,
    include: 310,
    assign: 314,
    capture: 320,
    endcapture: 324,
    increment: 328,
    decrement: 332
  }, L = {
    __proto__: null,
    if: 84,
    endif: 88,
    elsif: 92,
    else: 96,
    unless: 102,
    endunless: 106,
    case: 112,
    endcase: 116,
    when: 120,
    for: 126,
    endfor: 136,
    tablerow: 142,
    endtablerow: 146,
    break: 150,
    continue: 154,
    cycle: 158,
    comment: 164,
    endcomment: 170,
    raw: 176,
    endraw: 182,
    echo: 186,
    render: 190,
    include: 202,
    assign: 206,
    capture: 212,
    endcapture: 216,
    increment: 220,
    decrement: 224,
    liquid: 228
  }, A = k.deserialize({
    version: 14,
    states: "GlQYOPOOOOOP'#Fz'#FzOeOaO'#CdOsQhO'#CfO!bQxO'#DRO#{OPO'#DUO$ZOPO'#D_O$iOPO'#DdO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G_'#G_OOOP'#G['#G[OOOP'#Fy'#FyQYOPOOOOOP-E9x-E9xOOQW'#Cg'#CgO&`Q!jO,59QO&gQ!jO'#G]OsQhO'#CsOOQW'#G]'#G]OOOP,59m,59mO)PQhO,59mOsQhO,59qOsQhO,59uO)ZQhO,59wOsQhO,59zOsQhO,5:POsQhO,5:TO!]QhO,5:W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$g!tQ$v#UQ%O#XQ&o%qR&r%tQ$n!|U&U$n&j'WQ&j%mR'W&uQ&z&WQ&|&XW'Y&z&|'`'aQ'`'SR'a'TQ$s#RW&Z$s&m'O'bQ&m%pQ'O&]R'b'UQ!aYR$T!aQ!dZR$W!dQ$z#VR&`$zQ#e}Q%U#]Q%X#^Q%[#_Q%_#`Q%b#aQ%e#b_%g#e%U%X%[%_%b%eQ&q%rR'V&qm_OTUVWX[`!Q!T!W!Z!^!gQcRQ!seQ!thQ!wiQ!xjQ!zlQ!{mQ!|nQ#UvQ#VwQ#WxQ#XyQ#YzQ#Z{Q#[|Q$^!kQ$_!lQ$d!qQ$e!rQ%i#fQ%j#gQ%k#hQ%l#jQ%m#kQ%q#qQ%r#rQ%s#sQ%t#tQ%u#uQ%v#vQ%w#wQ&R$fQ&T$mQ&W$pQ&X$qQ&b${Q&u&QQ'S&kQ'T&lQ'^'QR'c'Xm#d}#]#^#_#`#a#b#e%U%X%[%_%b%e",
    nodeNames: "\u26A0 {{ {% {% {% {% InlineComment Template Text }} Interpolation VariableName MemberExpression . PropertyName BinaryExpression contains CompareOp LogicOp AssignmentExpression AssignOp ) ( RangeExpression .. BooleanLiteral empty forloop tablerowloop continue StringLiteral NumberLiteral Filter | FilterName : , Tag TagName %} IfDirective Tag if EndTag endif Tag elsif Tag else UnlessDirective Tag unless EndTag endunless CaseDirective Tag case EndTag endcase Tag when ForDirective Tag for in Parameter ParameterName EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag continue Tag cycle Comment Tag comment CommentText EndTag endcomment RawDirective Tag raw RawText EndTag endraw Tag echo Tag render RenderParameter with for as Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement Tag liquid IfDirective Tag if EndTag endif UnlessDirective Tag unless EndTag endunless Tag elsif Tag else CaseDirective Tag case EndTag endcase Tag when ForDirective Tag EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag Tag cycle Tag echo Tag render Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement",
    maxTerm: 188,
    nodeProps: [
      [
        "closedBy",
        1,
        "}}",
        -4,
        2,
        3,
        4,
        5,
        "%}",
        22,
        ")"
      ],
      [
        "openedBy",
        9,
        "{{",
        21,
        "(",
        39,
        "{%"
      ],
      [
        "group",
        -12,
        11,
        12,
        15,
        19,
        23,
        25,
        26,
        27,
        28,
        29,
        30,
        31,
        "Expression"
      ]
    ],
    skippedNodes: [
      0,
      6
    ],
    repeatNodeCount: 11,
    tokenData: ")T~RkXY!vYZ!v]^!vpq!vqr#Xrs#duv$Uwx$axy$|yz%R{|%W|}&r}!O&w!O!P'T!Q![&a![!]'e!^!_'j!_!`'r!`!a'j!c!}'z#R#S'z#T#o'z#p#q(s#q#r(x%W;'S'z;'S;:j(m<%lO'z~!{S$}~XY!vYZ!v]^!vpq!v~#[P!_!`#_~#dOa~~#gUOY#dZr#drs#ys;'S#d;'S;=`$O<%lO#d~$OOn~~$RP;=`<%l#d~$XP#q#r$[~$aOw~~$dUOY$aZw$awx#yx;'S$a;'S;=`$v<%lO$a~$yP;=`<%l$a~%ROf~~%WOe~P%ZQ!O!P%a!Q![&aP%dP!Q![%gP%lRoP!Q![%g!g!h%u#X#Y%uP%xR{|&R}!O&R!Q![&XP&UP!Q![&XP&^PoP!Q![&XP&fSoP!O!P%a!Q![&a!g!h%u#X#Y%u~&wOt~~&zRuv$U!O!P%a!Q![&a~'YQ]S!O!P'`!Q![%g~'eOh~~'jOs~~'oPa~!_!`#_~'wPd~!_!`#__(TW^WvQ%QT}!O'z!Q!['z!c!}'z#R#S'z#T#o'z%W;'S'z;'S;:j(m<%lO'z_(pP;=`<%l'z~(xOq~~({P#q#r)O~)TOX~",
    tokenizers: [
      F,
      C,
      D,
      N,
      0,
      1,
      2,
      3
    ],
    topRules: {
      Template: [
        0,
        7
      ]
    },
    specialized: [
      {
        term: 186,
        get: (O) => I[O] || -1
      },
      {
        term: 38,
        get: (O) => L[O] || -1
      }
    ],
    tokenPrec: 0
  });
  function o(O, a) {
    return O.split(" ").map((e) => ({
      label: e,
      type: a
    }));
  }
  const m = o("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where", "function"), q = o("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include", "keyword"), f = o("empty forloop tablerowloop in with as", "keyword"), H = o("first index index0 last length rindex", "property"), B = o("col col0 col_first col_last first index index0 last length rindex rindex0 row", "property");
  function M(O) {
    var a;
    let { state: e, pos: r } = O, $ = W(e).resolveInner(r, -1).enterUnfinishedNodesBefore(r), i = ((a = $.childBefore(r)) === null || a === void 0 ? void 0 : a.name) || $.name;
    if ($.name == "FilterName")
      return {
        type: "filter",
        node: $
      };
    if (O.explicit && i == "|")
      return {
        type: "filter"
      };
    if ($.name == "TagName")
      return {
        type: "tag",
        node: $
      };
    if (O.explicit && i == "{%")
      return {
        type: "tag"
      };
    if ($.name == "PropertyName" && $.parent.name == "MemberExpression")
      return {
        type: "property",
        node: $,
        target: $.parent
      };
    if ($.name == "." && $.parent.name == "MemberExpression")
      return {
        type: "property",
        target: $.parent
      };
    if ($.name == "MemberExpression" && i == ".")
      return {
        type: "property",
        target: $
      };
    if ($.name == "VariableName")
      return {
        type: "expression",
        from: $.from
      };
    let n = O.matchBefore(/[\w\u00c0-\uffff]+$/);
    return n ? {
      type: "expression",
      from: n.from
    } : O.explicit && $.name != "CommentText" && $.name != "StringLiteral" && $.name != "NumberLiteral" && $.name != "InlineComment" ? {
      type: "expression"
    } : null;
  }
  function K(O, a, e, r) {
    let $ = [];
    for (; ; ) {
      let i = a.getChild("Expression");
      if (!i)
        return [];
      if (i.name == "forloop")
        return $.length ? [] : H;
      if (i.name == "tablerowloop")
        return $.length ? [] : B;
      if (i.name == "VariableName") {
        $.unshift(O.sliceDoc(i.from, i.to));
        break;
      } else if (i.name == "MemberExpression") {
        let n = i.getChild("PropertyName");
        n && $.unshift(O.sliceDoc(n.from, n.to)), a = i;
      } else
        return [];
    }
    return r ? r($, O, e) : [];
  }
  J = function(O = {}) {
    let a = O.filters ? O.filters.concat(m) : m, e = O.tags ? O.tags.concat(q) : q, r = O.variables ? O.variables.concat(f) : f, { properties: $ } = O;
    return (i) => {
      var n;
      let Q = M(i);
      if (!Q)
        return null;
      let s = (n = Q.from) !== null && n !== void 0 ? n : Q.node ? Q.node.from : i.pos, l;
      return Q.type == "filter" ? l = a : Q.type == "tag" ? l = e : Q.type == "expression" ? l = r : l = K(i.state, Q.target, i, $), l.length ? {
        options: l,
        from: s,
        validFor: /^[\w\u00c0-\uffff]*$/
      } : null;
    };
  };
  OO = d.inputHandler.of((O, a, e, r) => r != "%" || a != e || O.state.doc.sliceString(a - 1, e + 1) != "{}" ? false : (O.dispatch(O.state.changeByRange(($) => ({
    changes: {
      from: $.from,
      to: $.to,
      insert: "%%"
    },
    range: y.cursor($.from + 1)
  })), {
    scrollIntoView: true,
    userEvent: "input.type"
  }), true));
  function c(O) {
    return (a) => {
      let e = O.test(a.textAfter);
      return a.lineIndent(a.node.from) + (e ? 0 : a.unit);
    };
  }
  const $O = b.define({
    name: "liquid",
    parser: A.configure({
      props: [
        _({
          "cycle comment endcomment raw endraw echo increment decrement liquid in with as": t.keyword,
          "empty forloop tablerowloop": t.atom,
          "if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue": t.controlKeyword,
          "assign capture endcapture": t.definitionKeyword,
          contains: t.operatorKeyword,
          "render include": t.moduleKeyword,
          VariableName: t.variableName,
          TagName: t.tagName,
          FilterName: t.function(t.variableName),
          PropertyName: t.propertyName,
          CompareOp: t.compareOperator,
          AssignOp: t.definitionOperator,
          LogicOp: t.logicOperator,
          NumberLiteral: t.number,
          StringLiteral: t.string,
          BooleanLiteral: t.bool,
          InlineComment: t.lineComment,
          CommentText: t.blockComment,
          "{% %} {{ }}": t.brace,
          "( )": t.paren,
          ".": t.derefOperator,
          ", .. : |": t.punctuation
        }),
        g.add({
          Tag: u({
            closing: "%}"
          }),
          "UnlessDirective ForDirective TablerowDirective CaptureDirective": c(/^\s*(\{%-?\s*)?end\w/),
          IfDirective: c(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),
          CaseDirective: c(/^\s*(\{%-?\s*)?(endcase|when)\b/)
        }),
        S.add({
          "UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O) {
            let a = O.firstChild, e = O.lastChild;
            return !a || a.name != "Tag" ? null : {
              from: a.to,
              to: e.name == "EndTag" ? e.from : O.to
            };
          }
        })
      ]
    }),
    languageData: {
      commentTokens: {
        line: "#"
      },
      indentOnInput: /^\s*{%-?\s*(?:end|elsif|else|when|)$/
    }
  }), P = j();
  function w(O) {
    return $O.configure({
      wrap: X((a) => a.type.isTop ? {
        parser: O.parser,
        overlay: (e) => e.name == "Text" || e.name == "RawText"
      } : null)
    }, "liquid");
  }
  aO = w(P.language);
  rO = function(O = {}) {
    let a = O.base || P, e = a.language == P.language ? aO : w(a.language);
    return new T(e, [
      a.support,
      e.data.of({
        autocomplete: J(O)
      }),
      a.language.data.of({
        closeBrackets: {
          brackets: [
            "{"
          ]
        }
      }),
      OO
    ]);
  };
});
export {
  __tla,
  OO as closePercentBrace,
  rO as liquid,
  J as liquidCompletionSource,
  aO as liquidLanguage
};
