@hyperfixi/core 3.1.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/README.md +28 -36
  2. package/dist/ast/command-slots.d.ts +1 -1
  3. package/dist/ast/nodes.d.ts +2 -0
  4. package/dist/ast-utils/index.cjs +193 -48
  5. package/dist/ast-utils/index.mjs +193 -48
  6. package/dist/ast-utils/interchange/types.d.ts +19 -1
  7. package/dist/behaviors/index.cjs +19 -0
  8. package/dist/behaviors/index.mjs +19 -0
  9. package/dist/bundle-generator/index.cjs +36 -17
  10. package/dist/bundle-generator/index.mjs +36 -17
  11. package/dist/bundle-generator/parser-templates.d.ts +1 -1
  12. package/dist/chunks/bridge-CI9SOl8u.js +2 -0
  13. package/dist/chunks/browser-modular-7CpI5VF2.js +2 -0
  14. package/dist/chunks/index-BwXDEK0m.js +2 -0
  15. package/dist/chunks/index-DQi2o8Lk.js +2 -0
  16. package/dist/chunks/index-uCOQ8Qn0.js +2 -0
  17. package/dist/commands/animation/transition.d.ts +12 -6
  18. package/dist/commands/helpers/loop-executor.d.ts +2 -2
  19. package/dist/commands/helpers/numeric-target-parser.d.ts +1 -1
  20. package/dist/commands/helpers/variable-access.d.ts +5 -2
  21. package/dist/commands/helpers/write-target.d.ts +5 -0
  22. package/dist/commands/index.cjs +938 -425
  23. package/dist/commands/index.mjs +938 -425
  24. package/dist/commands/templates/render.d.ts +4 -4
  25. package/dist/commands/utility/beep.d.ts +0 -3
  26. package/dist/expressions/index.cjs +7 -13
  27. package/dist/expressions/index.mjs +7 -13
  28. package/dist/htmx/i18n-hooks.d.ts +4 -1
  29. package/dist/hyperfixi-browser-classic-i18n.js +1 -1
  30. package/dist/hyperfixi-browser.js +1 -1
  31. package/dist/hyperfixi-classic-i18n.js +1 -1
  32. package/dist/hyperfixi-hx-v4.js +1 -1
  33. package/dist/hyperfixi-hx.js +1 -1
  34. package/dist/hyperfixi-hybrid-complete.js +1 -1
  35. package/dist/hyperfixi-hybrid-hx.js +1 -1
  36. package/dist/hyperfixi-multilingual.js +1 -1
  37. package/dist/hyperfixi.js +1 -1
  38. package/dist/hyperfixi.mjs +1 -1
  39. package/dist/index.cjs +1149 -485
  40. package/dist/index.min.js +1 -1
  41. package/dist/index.mjs +1149 -485
  42. package/dist/lib/swap-executor.d.ts +1 -1
  43. package/dist/lokascript-browser-classic-i18n.js +1 -1
  44. package/dist/lokascript-browser.js +1 -1
  45. package/dist/lokascript-hybrid-complete.js +1 -1
  46. package/dist/lokascript-hybrid-hx.js +1 -1
  47. package/dist/lokascript-multilingual.js +1 -1
  48. package/dist/metadata.cjs +9 -9
  49. package/dist/metadata.d.ts +1 -1
  50. package/dist/metadata.mjs +9 -9
  51. package/dist/parser/command-grammar.d.ts +1 -0
  52. package/dist/parser/full-parser.cjs +396 -153
  53. package/dist/parser/full-parser.mjs +396 -153
  54. package/dist/parser/helpers/parsing-helpers.d.ts +3 -0
  55. package/dist/parser/hybrid/index.cjs +3 -0
  56. package/dist/parser/hybrid/index.mjs +3 -0
  57. package/dist/parser/hybrid/parser-core.cjs +3 -0
  58. package/dist/parser/hybrid/parser-core.mjs +3 -0
  59. package/dist/parser/hybrid-parser.cjs +3 -0
  60. package/dist/parser/hybrid-parser.mjs +3 -0
  61. package/dist/parser/parser-types.d.ts +2 -0
  62. package/dist/parser/parser.d.ts +9 -0
  63. package/dist/parser/pratt-parser.d.ts +2 -0
  64. package/dist/registry/index.cjs +535 -210
  65. package/dist/registry/index.mjs +535 -210
  66. package/dist/utils/beep.d.ts +8 -0
  67. package/dist/version.d.ts +1 -1
  68. package/package.json +21 -18
  69. package/vocab/htmx/ar.js +22 -20
  70. package/vocab/htmx/bn.js +21 -5
  71. package/vocab/htmx/de.js +33 -10
  72. package/vocab/htmx/en.js +4 -1
  73. package/vocab/htmx/es.js +28 -9
  74. package/vocab/htmx/fr.js +28 -8
  75. package/vocab/htmx/he.js +22 -1
  76. package/vocab/htmx/hi.js +28 -7
  77. package/vocab/htmx/id.js +29 -10
  78. package/vocab/htmx/it.js +26 -5
  79. package/vocab/htmx/ja.js +36 -11
  80. package/vocab/htmx/ko.js +27 -6
  81. package/vocab/htmx/ms.js +24 -1
  82. package/vocab/htmx/pl.js +27 -7
  83. package/vocab/htmx/pt.js +30 -9
  84. package/vocab/htmx/qu.js +32 -9
  85. package/vocab/htmx/ru.js +28 -6
  86. package/vocab/htmx/sw.js +28 -8
  87. package/vocab/htmx/th.js +19 -1
  88. package/vocab/htmx/tl.js +24 -1
  89. package/vocab/htmx/tr.js +34 -8
  90. package/vocab/htmx/uk.js +28 -6
  91. package/vocab/htmx/vi.js +27 -19
  92. package/vocab/htmx/zh.js +28 -9
  93. package/dist/chunks/bridge-D7qrHhV0.js +0 -2
  94. package/dist/chunks/browser-modular-C4LFxfoS.js +0 -2
  95. package/dist/chunks/index-C7lqD4mo.js +0 -2
  96. package/dist/chunks/index-CAPhqA6k.js +0 -2
  97. package/dist/chunks/index-CLdRyZaP.js +0 -2
@@ -0,0 +1,2 @@
1
+ import{stripOptionalDiacritics as e,TokenStreamImpl as t,renderExplicit as r,StringLiteralExtractor as i,NumberExtractor as a,IdentifierExtractor as n,isExplicitSyntax as o,parseExplicit as s,isValidReference as l,BaseTokenizer as p,isWhitespace as m,createToken as c,createPosition as d,normalized as u,noChange as y,createUnicodeRangeClassifier as v,BaseMorphologicalNormalizer as f}from"./index-DQi2o8Lk.js";export{createTokenizerContext,isContextAwareExtractor}from"./index-DQi2o8Lk.js";var h,g,k,z=Object.defineProperty,w=Object.getOwnPropertyNames,b=(e,t)=>function(){return e&&(t=(0,e[w(e)[0]])(e=0)),t},x=(e,t)=>{for(var r in t)z(e,r,{get:t[r],enumerable:!0})};function T(e,t){return e.replace(/\{(\w+)\}/g,(e,r)=>(t[r]??`{${r}}`)+"")}function S(e,t,r={},i){const a=T(g[e],r),n=k[e],o=n?T(n,r):void 0;return{code:e,message:a,severity:t,...i&&{role:i},...o&&{suggestion:o}}}var j,E,L,C=b({"src/generators/schema-error-codes.ts"(){h={AMBIGUOUS_TYPE_LITERAL_SELECTOR:"SCHEMA_AMBIGUOUS_TYPE_LITERAL_SELECTOR",TOO_MANY_EXPECTED_TYPES:"SCHEMA_TOO_MANY_EXPECTED_TYPES",MULTI_TYPE_PATIENT_EXPECTED:"SCHEMA_MULTI_TYPE_PATIENT_EXPECTED",NO_REQUIRED_ROLES:"SCHEMA_NO_REQUIRED_ROLES",NO_REQUIRED_ROLES_EXPECTED:"SCHEMA_NO_REQUIRED_ROLES_EXPECTED",TRANSITION_PATIENT_ACCEPTS_SELECTOR:"SCHEMA_TRANSITION_PATIENT_ACCEPTS_SELECTOR",TRANSITION_MISSING_GOAL:"SCHEMA_TRANSITION_MISSING_GOAL",EVENT_HANDLER_MISSING_EVENT:"SCHEMA_EVENT_HANDLER_MISSING_EVENT",EVENT_HANDLER_EVENT_NOT_REQUIRED:"SCHEMA_EVENT_HANDLER_EVENT_NOT_REQUIRED",CONDITIONAL_MISSING_CONDITION:"SCHEMA_CONDITIONAL_MISSING_CONDITION",CONDITIONAL_CONDITION_NOT_REQUIRED:"SCHEMA_CONDITIONAL_CONDITION_NOT_REQUIRED",FOR_LOOP_MISSING_SOURCE:"SCHEMA_FOR_LOOP_MISSING_SOURCE",WHILE_LOOP_MISSING_CONDITION:"SCHEMA_WHILE_LOOP_MISSING_CONDITION",VALUE_TYPE_MISMATCH:"SCHEMA_VALUE_TYPE_MISMATCH",SELECTOR_KIND_MISMATCH:"SCHEMA_SELECTOR_KIND_MISMATCH",SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE:"SCHEMA_SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE",KEYWORD_COLLISION:"PROFILE_KEYWORD_COLLISION"},g={[h.AMBIGUOUS_TYPE_LITERAL_SELECTOR]:"Role '{role}' accepts both 'literal' and 'selector'. This may cause ambiguous type inference for values starting with special characters (* . # etc.).",[h.TOO_MANY_EXPECTED_TYPES]:"Role '{role}' accepts {count} different types. This may make type inference unreliable.",[h.MULTI_TYPE_PATIENT_EXPECTED]:"Role '{role}' accepts multiple types (expected for {command} command).",[h.NO_REQUIRED_ROLES]:"Command has no required roles. Is this intentional?",[h.NO_REQUIRED_ROLES_EXPECTED]:"Command has no required roles (expected for {command}).",[h.TRANSITION_PATIENT_ACCEPTS_SELECTOR]:"Transition command 'patient' role (CSS property name) should only accept 'literal', not 'selector'. CSS property names like 'background-color' are strings, not CSS selectors.",[h.TRANSITION_MISSING_GOAL]:"Transition command requires a 'goal' role for the target value (to <value>). Without it, there's no way to specify what value to transition to.",[h.EVENT_HANDLER_MISSING_EVENT]:"Event handler command should have an 'event' role to specify which event to listen for.",[h.EVENT_HANDLER_EVENT_NOT_REQUIRED]:"Event role should be required - every event handler needs an event to listen for.",[h.CONDITIONAL_MISSING_CONDITION]:"Conditional command should have a 'condition' role for the boolean expression.",[h.CONDITIONAL_CONDITION_NOT_REQUIRED]:"Condition role should be required - conditionals need a condition to evaluate.",[h.FOR_LOOP_MISSING_SOURCE]:"For-loop should have a 'source' role for the collection to iterate over.",[h.WHILE_LOOP_MISSING_CONDITION]:"While-loop should have a 'condition' role for the loop condition.",[h.VALUE_TYPE_MISMATCH]:"Role '{role}' of command '{command}' expects type [{expectedTypes}], got '{actualType}'.",[h.SELECTOR_KIND_MISMATCH]:"Role '{role}' of command '{command}' expects selector kind [{selectorKinds}], got '{actualKind}'.",[h.SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE]:"Role '{role}' has selectorKinds but expectedTypes does not include 'selector'.",[h.KEYWORD_COLLISION]:"Keyword '{keyword}' is used by multiple commands: {commands}. Only the first-registered command will be reachable."},k={[h.AMBIGUOUS_TYPE_LITERAL_SELECTOR]:"Consider being more specific about which type is expected, or use explicit type markers.",[h.TOO_MANY_EXPECTED_TYPES]:"Consider narrowing the accepted types to improve type inference reliability.",[h.TRANSITION_PATIENT_ACCEPTS_SELECTOR]:"Remove 'selector' from expectedTypes and only accept 'literal'.",[h.TRANSITION_MISSING_GOAL]:"Add a 'goal' role with expectedTypes ['literal', 'variable'].",[h.EVENT_HANDLER_MISSING_EVENT]:"Add an 'event' role with expectedTypes ['literal'].",[h.EVENT_HANDLER_EVENT_NOT_REQUIRED]:"Set required: true on the 'event' role.",[h.CONDITIONAL_MISSING_CONDITION]:"Add a 'condition' role with expectedTypes ['expression'].",[h.CONDITIONAL_CONDITION_NOT_REQUIRED]:"Set required: true on the 'condition' role.",[h.FOR_LOOP_MISSING_SOURCE]:"Add a 'source' role for the collection to iterate over.",[h.WHILE_LOOP_MISSING_CONDITION]:"Add a 'condition' role for the loop continuation condition.",[h.VALUE_TYPE_MISMATCH]:"Ensure the value matches one of the expected types: [{expectedTypes}].",[h.SELECTOR_KIND_MISMATCH]:"Use a selector of the correct kind: [{selectorKinds}].",[h.SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE]:"Either add 'selector' to expectedTypes or remove selectorKinds.",[h.KEYWORD_COLLISION]:"Give each command a unique keyword. Move the shared keyword to alternatives on one command, or use a more specific translation."}}}),P={};function _(e){const t=[];for(const r of e.roles)r.expectedTypes.includes("literal")&&r.expectedTypes.includes("selector")&&("patient"===r.role&&j.has(e.action)?t.push(S(h.MULTI_TYPE_PATIENT_EXPECTED,"note",{role:r.role,command:e.action},r.role)):t.push(S(h.AMBIGUOUS_TYPE_LITERAL_SELECTOR,"warning",{role:r.role},r.role))),r.expectedTypes.length>3&&!j.has(e.action)&&t.push(S(h.TOO_MANY_EXPECTED_TYPES,"warning",{role:r.role,count:r.expectedTypes.length},r.role));for(const r of e.roles)r.selectorKinds&&r.selectorKinds.length>0&&(r.expectedTypes.includes("selector")||t.push(S(h.SELECTOR_KINDS_WITHOUT_SELECTOR_TYPE,"warning",{role:r.role},r.role)));switch(e.action){case"transition":!function(e,t){const r=e.roles.find(e=>"patient"===e.role),i=e.roles.find(e=>"goal"===e.role);r&&!i&&t.push(S(h.TRANSITION_MISSING_GOAL,"error",{}))}(e,t);break;case"on":!function(e,t){const r=e.roles.find(e=>"event"===e.role);r||t.push(S(h.EVENT_HANDLER_MISSING_EVENT,"warning",{}));r&&!r.required&&t.push(S(h.EVENT_HANDLER_EVENT_NOT_REQUIRED,"warning",{}))}(e,t);break;case"if":case"unless":!function(e,t){const r=e.roles.find(e=>"condition"===e.role);r||t.push(S(h.CONDITIONAL_MISSING_CONDITION,"warning",{}));r&&!r.required&&t.push(S(h.CONDITIONAL_CONDITION_NOT_REQUIRED,"warning",{}))}(e,t);break;case"repeat":case"for":case"while":!function(e,t){if("for"===e.action){e.roles.find(e=>"source"===e.role)||t.push(S(h.FOR_LOOP_MISSING_SOURCE,"warning",{}))}else if("while"===e.action){e.roles.find(e=>"condition"===e.role)||t.push(S(h.WHILE_LOOP_MISSING_CONDITION,"warning",{}))}}(e,t)}return 0===e.roles.filter(e=>e.required).length&&(E.has(e.action)?t.push(S(h.NO_REQUIRED_ROLES_EXPECTED,"note",{command:e.action})):t.push(S(h.NO_REQUIRED_ROLES,"warning",{}))),function(e,t){return{action:e,items:t}}(e.action,t)}function W(e,t={}){const r=new Map,{includeNotes:i=!1}=t;for(const[t,a]of Object.entries(e)){const e=_(a),n=e.items.some(e=>"warning"===e.severity||"error"===e.severity),o=i&&e.items.some(e=>"note"===e.severity);(n||o)&&r.set(t,e)}return r}function A(e,t={}){const r=[],{showNotes:i=!1,showCodes:a=!0}=t;for(const[t,n]of e){const e=n.items.filter(e=>"error"===e.severity),o=n.items.filter(e=>"warning"===e.severity),s=n.items.filter(e=>"note"===e.severity);if(e.length>0){r.push(` \u274c ${t}:`);for(const t of e){r.push(` ERROR${a?` [${t.code}]`:""}: ${t.message}`),t.suggestion&&r.push(" \ud83d\udca1 Suggestion: "+t.suggestion)}}if(o.length>0){r.push(` \u26a0\ufe0f ${t}:`);for(const e of o){r.push(` ${(a?` [${e.code}]`:"")?e.code+": ":""}${e.message}`),e.suggestion&&r.push(" \ud83d\udca1 "+e.suggestion)}}if(i&&s.length>0){r.push(` \u2139\ufe0f ${t}:`);for(const e of s){r.push(` ${(a?` [${e.code}]`:"")?e.code+": ":""}${e.message}`)}}}return r.join("\n")}function q(e){let t=0,r=0,i=0;const a={};for(const n of e.values())for(const e of n.items)"error"===e.severity?t++:"warning"===e.severity?r++:"note"===e.severity&&i++,a[e.code]=(a[e.code]||0)+1;return{totalCommands:e.size,errors:t,warnings:r,notes:i,byCode:a}}function M(e,t){const r=[];for(const i of t){const t=e.roles.find(e=>e.role===i.role);t&&(t.expectedTypes.length>0&&!t.expectedTypes.includes(i.type)&&(t.expectedTypes.includes("expression")||r.push({level:"error",role:i.role,message:`${e.action}.${i.role} expects type [${t.expectedTypes.join(", ")}], got '${i.type}'`,code:h.VALUE_TYPE_MISMATCH})),"selector"===i.type&&i.selectorKind&&t.selectorKinds&&t.selectorKinds.length>0&&(t.selectorKinds.includes(i.selectorKind)||r.push({level:"error",role:i.role,message:`${e.action}.${i.role} expects selector kind [${t.selectorKinds.join(", ")}], got '${i.selectorKind}'`,code:h.SELECTOR_KIND_MISMATCH})))}return r}function O(e){if(2!==e.length)return!1;const[t,r]=[...e].sort();return L.some(([e,i])=>e===t&&i===r)}function R(e){const t=[];if(!e.keywords)return{language:e.code,collisions:t};const r=new Map;for(const[t,i]of Object.entries(e.keywords)){if(!i||!i.primary)continue;const e=r.get(i.primary)||[];if(e.push({command:t,isPrimary:!0}),r.set(i.primary,e),i.alternatives)for(const e of i.alternatives){const i=r.get(e)||[];i.push({command:t,isPrimary:!1}),r.set(e,i)}}for(const[e,i]of r){const r=[...new Set(i.map(e=>e.command))];if(1>=r.length)continue;if(O(r))continue;const a=i.filter(e=>e.isPrimary).length;let n;n=2>a?1===a?"primary-alternative":"alternative-alternative":"primary-primary",t.push({keyword:e,commands:r.sort(),type:n})}const i={"primary-primary":0,"primary-alternative":1,"alternative-alternative":2};return t.sort((e,t)=>i[e.type]-i[t.type]),{language:e.code,collisions:t}}function N(e){const t=[];for(const[,r]of Object.entries(e)){const e=R(r);e.collisions.length>0&&t.push(e)}return t.sort((e,t)=>e.language.localeCompare(t.language))}x(P,{SchemaErrorCodes:()=>h,formatValidationResults:()=>A,getValidationStats:()=>q,validateAllKeywordCollisions:()=>N,validateAllSchemas:()=>W,validateCommandSchema:()=>_,validateKeywordCollisions:()=>R,validateRoleValues:()=>M});var $,I,K,V,B,D,F,H,U,G,Z,Y,X,Q,J,ee,te,re,ie,ae,ne,oe,se,le,pe,me,ce,de,ue,ye,ve,fe,he,ge,ke,ze,we,be,xe,Te,Se,je,Ee,Le,Ce,Pe,_e,We,Ae,qe,Me,Oe,Re,Ne,$e,Ie,Ke,Ve,Be,De,Fe,He,Ue,Ge,Ze,Ye,Xe,Qe,Je,et,tt,rt,it,at,nt=b({"src/generators/schema-validator.ts"(){C(),j=new Set(["put","append","prepend","log","throw","make","measure","return","swap","morph","beep","copy"]),E=new Set(["compound","else","halt","continue","init","settle","focus","blur","show","hide","return","js","measure","break","exit","beep","empty","open","close","select","clear","reset","breakpoint","live","eventsource","socket","worker","intercept"]),L=[["change","changes"]]}});function ot(e){const t=e.roles.find(e=>"destination"===e.role);return t?{destination:t.default?{fromRole:"destination",default:t.default}:{fromRole:"destination"}}:{}}function st(e){const t=e.roles.find(e=>"source"===e.role);return t?{source:t.default?{fromRole:"source",default:t.default}:{fromRole:"source"}}:{}}function lt(e,t){return mt(e,t,"source")}function pt(e,t){return mt(e,t,"destination")}function mt(e,t,r){if(!t||!e.roles.some(e=>e.role===r))return[];const i=t.alternatives?{type:"literal",value:t.primary,alternatives:[...t.alternatives]}:{type:"literal",value:t.primary},a={type:"role",role:r,optional:!0};return[{type:"group",optional:!0,tokens:"after"===t.position?[a,i]:[i,a]}]}function ct(e){return at[e]}function dt(e){return Object.values(at).filter(t=>t.category===e)}function ut(){return Object.values(at).filter(e=>!0!==e.structuralOnly&&(e.roles.length>0||!0===e.bareKeyword))}var yt,vt,ft,ht,gt,kt,zt,wt=b({"src/generators/command-schemas.ts"(){I={action:"toggle",description:"Toggle a class or attribute on/off",category:"dom-class",primaryRole:"patient",ast:{args:["patient"],modifiers:{on:"destination",for:"duration"}},argSkipTokens:["on"],roles:[{role:"patient",description:"The class or attribute to toggle",required:!0,expectedTypes:["selector"],selectorKinds:["class","attribute"],svoPosition:1,sovPosition:2,markerOptional:{zh:!0}},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:$=["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerVariants:{ko:["\uc5d0\uc11c"]}},{role:"duration",description:"How long the class stays on before reverting (`toggle .a for 2s`)",required:!1,expectedTypes:["literal"],svoPosition:3,sovPosition:3,valueShape:"time",markerOverride:{en:"for",ja:"\u9593",ko:"\ub3d9\uc548"}}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","INVALID_CSS_PROPERTY"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"toggle command requires an argument"},{condition:"Class names are valid CSS identifiers",errorCode:"NO_VALID_CLASS_NAMES",message:"toggle command: no valid class names found"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to toggle",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",INVALID_CSS_PROPERTY:"Check CSS property name syntax (use kebab-case)"}},K={action:"add",description:"Add a class or attribute to an element",category:"dom-class",primaryRole:"patient",ast:{args:["patient"],modifiers:{to:"destination"}},roles:[{role:"patient",description:"The class or attribute to add",required:!0,expectedTypes:["selector","literal"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to",es:"a",ar:"\u0625\u0644\u0649",zh:"\u5230",fr:"\u00e0",de:"zu",pt:"a",he:"\u05d0\u05dc",id:"ke",it:"a",sw:"kwa"},markerLegacy:{es:["en","sobre","hacia"],ar:["\u0639\u0644\u0649","\u0641\u064a","\u0628"],zh:["\u5728","\u4e8e"],fr:["sur","dans"],de:["auf","in"],pt:["em","para"],he:["\u05e2\u05dc","\u05d1","\u05dc"],id:["pada","di"],it:["in","su"],sw:["kwenye"]}}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES","PROPERTY_REQUIRES_VALUE"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"add command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to add",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers",PROPERTY_REQUIRES_VALUE:"When adding a property (*prop), provide a value argument"}},V={action:"remove",description:"Remove a class or attribute from an element",category:"dom-class",primaryRole:"patient",ast:{args:["patient"],modifiers:{from:"source"}},targetRole:"source",argSkipTokens:["from"],roles:[{role:"patient",description:"The class/attribute to remove, or the element to remove",required:!0,expectedTypes:$,svoPosition:1,sovPosition:2},{role:"source",description:"The element to remove from (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}],errorCodes:["MISSING_ARGUMENT","NO_VALID_CLASS_NAMES"],preconditions:[{condition:"Command has at least one argument",errorCode:"MISSING_ARGUMENT",message:"remove command requires an argument"}],recoveryHints:{MISSING_ARGUMENT:"Add a class selector (.classname) or attribute to remove",NO_VALID_CLASS_NAMES:"Ensure class names start with a dot (.) and are valid CSS identifiers"}},B={action:"put",description:"Put content into a target element or variable",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The content to put",required:!0,expectedTypes:["literal","selector","reference","expression","property-path"],svoPosition:1,sovPosition:1},{role:"destination",description:"Where to put the content",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:2,sovPosition:2,markerOverride:{en:"into",ar:"\u0641\u064a",zh:"\u5230",fr:"dans",de:"in",he:"\u05d1",id:"ke",sw:"kwa"},markerVariants:{en:["before","after"]},markerLegacy:{ar:["\u0639\u0644\u0649","\u0625\u0644\u0649","\u0628"],zh:["\u5728","\u4e8e"],fr:["sur","\u00e0"],de:["auf","zu"],he:["\u05e2\u05dc","\u05d0\u05dc","\u05dc"],id:["pada","di"],sw:["kwenye"]},methodCarrier:"method"}],errorCodes:["MISSING_ARGUMENTS","MISSING_CONTENT","MISSING_POSITION","INVALID_POSITION","NO_TARGET","NO_ELEMENTS"],preconditions:[{condition:"Command has content and position arguments",errorCode:"MISSING_ARGUMENTS",message:"put requires arguments"},{condition:"Content to put is specified",errorCode:"MISSING_CONTENT",message:"put requires content"},{condition:"Position keyword is specified (into, before, after, etc.)",errorCode:"MISSING_POSITION",message:"put requires position keyword"}],recoveryHints:{MISSING_ARGUMENTS:"Use syntax: put <content> into/before/after <target>",MISSING_CONTENT:"Add content to put (string, element, or expression)",MISSING_POSITION:"Add position keyword: into, before, after, at start of, at end of",INVALID_POSITION:"Valid positions: into, before, after, at start of, at end of",NO_TARGET:'Ensure target element exists or use "me" reference',NO_ELEMENTS:"Check that the selector matches existing elements"}},D={action:"set",description:"Set a property or variable to a value",category:"variable",primaryRole:"destination",ast:{args:["destination"],modifiers:{to:"patient",on:"scope"}},argSkipTokens:["to"],roles:[{role:"destination",description:"The property or variable to set",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:1,sovPosition:1,markerOverride:{en:"",es:"",ja:"\u3092",ko:"\ub97c",tr:"i",ar:"",sw:"",tl:"",th:"",bn:"\u0995\u09c7",qu:"ta",hi:"\u0915\u094b",zh:"\u628a"},markerOptional:{zh:!0}},{role:"patient",description:"The value to set",required:!0,expectedTypes:["literal","selector","expression","reference","property-path"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",es:"a",pt:"para",fr:"\u00e0",de:"auf",id:"ke",ja:"\u306b",ko:"\uc5d0",tr:"e",ar:"\u0625\u0644\u0649",sw:"kwenye",tl:"sa",th:"\u0e43\u0e19",bn:"\u09a4\u09c7",qu:"man",hi:"\u092e\u0947\u0902",zh:"\u5230"},markerVariants:{tr:["e","a","ye","ya"],zh:["\u4e3a","\u70ba","\u6210"]}},{role:"scope",description:"The element(s) the attribute/property is set on (defaults to me)",required:!1,expectedTypes:["selector","reference"],svoPosition:3,sovPosition:3,markerOverride:{en:"on",es:"on",pt:"on",fr:"on",de:"on",it:"on",id:"on",ms:"on",sw:"on",tl:"on",zh:"on",vi:"on",ru:"on",uk:"on",pl:"on",th:"on",he:"on",ar:"on",ja:"on",ko:"on",tr:"on",hi:"on",bn:"on",qu:"on"}}],errorCodes:["MISSING_TARGET","INVALID_TARGET","MISSING_VALUE","INVALID_SYNTAX"],preconditions:[{condition:"Command has a target variable or property",errorCode:"MISSING_TARGET",message:"set command requires a target"},{condition:"Target is a valid variable or property reference",errorCode:"INVALID_TARGET",message:"set command target must be a string or object literal"},{condition:'Value is specified with "to" keyword',errorCode:"MISSING_VALUE",message:'set command requires a value (use "to" keyword)'}],recoveryHints:{MISSING_TARGET:"Add a target: set :variable to value OR set element.property to value",INVALID_TARGET:'Use local variable (:name), element property (el.prop), or "the X of Y" syntax',MISSING_VALUE:'Add "to <value>" to specify what to set',INVALID_SYNTAX:"Use syntax: set <target> to <value>"}},F={action:"bind",description:"Reactively bind a variable to an element or property value",category:"variable",primaryRole:"destination",roles:[{role:"destination",description:"The variable to bind",required:!0,expectedTypes:["reference","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"",es:"",pt:"",fr:"",de:"",it:"",id:"",ms:"",vi:"",ru:"",uk:"",pl:"",th:"",zh:"",he:"",ar:"",sw:"",tl:"",ja:"\u3092",ko:"\ub97c",tr:"i",bn:"\u0995\u09c7",qu:"ta",hi:"\u0915\u094b"}},{role:"source",description:"The element or property to bind to",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",es:"a",pt:"para",fr:"\u00e0",de:"zu",it:"in",id:"ke",ms:"ke",vi:"v\u00e0o",ru:"\u0432",uk:"\u0432",pl:"do",ja:"\u306b",ko:"\uc5d0",tr:"e",ar:"\u0625\u0644\u0649",zh:"\u5230",he:"\u05dc",sw:"kwa",th:"\u0e43\u0e19",tl:"sa",bn:"\u09a4\u09c7",qu:"man",hi:"\u092e\u0947\u0902"}}],errorCodes:["MISSING_TARGET","MISSING_VALUE","INVALID_SYNTAX"],recoveryHints:{MISSING_TARGET:"Add a variable to bind: bind $name to #input",MISSING_VALUE:'Add "to <element>" to specify the binding source',INVALID_SYNTAX:"Use syntax: bind <variable> to <element>"}},H={action:"live",description:"Reactive block: re-run the body when its dependencies change",category:"control-flow",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},U={action:"when",description:"Reactive observer: re-run the body when a watched expression changes",category:"control-flow",primaryRole:"condition",ast:{args:["condition"]},hasBody:!0,structuralOnly:!0,roles:[{role:"condition",description:"The watched expression (`or`-separated expressions watch each)",required:!0,expectedTypes:["expression","reference","selector"],svoPosition:1}]},G={action:"eventsource",description:"Open a Server-Sent Events stream and handle its events",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Z={action:"socket",description:"Open a WebSocket and handle its messages",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Y={action:"worker",description:"Define a Web Worker with inline methods",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},X={action:"intercept",description:"Service-worker fetch interception / caching strategies",category:"async",primaryRole:"patient",hasBody:!0,bareKeyword:!0,roles:[]},Q={action:"show",description:"Make an element visible",category:"dom-visibility",primaryRole:"patient",ast:{args:[["destination","patient"]],modifiers:{with:["style","duration"]}},roles:[{role:"patient",description:"The element to show",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"The hide/show strategy (`with opacity`, `with *opacity`)",required:!1,expectedTypes:["expression","selector"],svoPosition:2,sovPosition:2}]},J={action:"hide",description:"Make an element invisible",category:"dom-visibility",primaryRole:"patient",ast:{args:[["destination","patient"]],modifiers:{with:["style","duration"]}},roles:[{role:"patient",description:"The element to hide",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1},{role:"style",description:"The hide/show strategy (`with opacity`, `with *opacity`)",required:!1,expectedTypes:["expression","selector"],svoPosition:2,sovPosition:2}]},ee={action:"on",description:"Handle an event",category:"event",primaryRole:"event",ast:{args:["event"],modifiers:{from:"source"}},hasBody:!0,roles:[{role:"event",description:"The event to handle",required:!0,expectedTypes:["literal"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to listen on (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}],widenTypeVariants:[{role:"event",types:["literal","expression"],idSuffix:"expr-event",excludeLanguages:["ko"]}]},te={action:"trigger",description:"Trigger/dispatch an event",category:"event",primaryRole:"event",ast:{args:["event"],modifiers:{on:"destination"}},argSkipTokens:["on"],roles:[{role:"event",description:"The event to trigger (supports namespaced events like draggable:start)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2,markerVariants:{hi:["\u0915\u094b"],qu:["ta"],bn:["\u0995\u09c7"]},markerOverride:{bn:"\u0995\u09c7",hi:"\u0915\u094b"}},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},re={action:"wait",description:"Wait for a duration or event",category:"async",primaryRole:"duration",roles:[{role:"duration",description:"Duration or event to wait for",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1}]},ie={action:"fetch",description:"Fetch data from a URL",category:"async",primaryRole:"source",ast:{args:["source"],modifiers:{with:["style","method"],as:"responseType",body:"patient"},isBlocking:!0},roles:[{role:"source",description:"The URL to fetch from",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,renderOverride:{en:""}},{role:"style",description:"Request options object (method, headers, body, credentials\u2026)",required:!1,expectedTypes:["expression"],valueShape:"object",svoPosition:2,sovPosition:2},{role:"responseType",description:"Response format (json, text, html, blob, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:3,sovPosition:3,markerOverride:{en:"as",ja:"\u3068\u3057\u3066"}},{role:"method",description:"HTTP method (GET, POST, etc.)",required:!1,expectedTypes:["literal"],svoPosition:4,sovPosition:4},{role:"destination",description:"Where to store the result",required:!1,expectedTypes:["selector","reference"],svoPosition:5,sovPosition:5}]},ae={action:"increment",description:"Increment a numeric value",category:"variable",primaryRole:"patient",ast:{args:[["destination","patient"]],modifiers:{by:"quantity"}},roles:[{role:"patient",description:"The value to increment",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to increment by (defaults to 1)",required:!1,expectedTypes:["literal","selector","expression","reference","property-path"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by",es:"por",pt:"por",fr:"par",de:"um"}}]},ne={action:"decrement",description:"Decrement a numeric value",category:"variable",primaryRole:"patient",ast:{args:[["destination","patient"]],modifiers:{by:"quantity"}},roles:[{role:"patient",description:"The value to decrement",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:1,sovPosition:1},{role:"quantity",description:"Amount to decrement by (defaults to 1)",required:!1,expectedTypes:["literal","selector","expression","reference","property-path"],default:{type:"literal",value:1,dataType:"number"},svoPosition:2,sovPosition:2,markerOverride:{en:"by",es:"por",pt:"por",fr:"par",de:"um"}}]},oe={action:"append",description:"Append content to an element",category:"dom-content",primaryRole:"patient",ast:{args:["patient"],modifiers:{to:"destination"}},omitRoleVariants:["destination"],roles:[{role:"patient",description:"The content to append",required:!0,expectedTypes:["literal","selector","reference","expression","property-path"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to append to",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},se={action:"prepend",description:"Prepend content to an element",category:"dom-content",primaryRole:"patient",ast:{args:["patient"],modifiers:{to:"destination"}},omitRoleVariants:["destination"],roles:[{role:"patient",description:"The content to prepend",required:!0,expectedTypes:["literal","selector","reference","expression","property-path"],svoPosition:1,sovPosition:2},{role:"destination",description:"The element to prepend to",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:2,sovPosition:1,markerOverride:{en:"to"}}]},le={action:"log",description:"Log a value to the console",category:"variable",primaryRole:"patient",ast:{args:["patient"]},roles:[{role:"patient",description:"The value to log",required:!0,expectedTypes:["literal","selector","reference","expression","property-path"],svoPosition:1,sovPosition:1}]},pe={action:"get",description:"Get a value from a source",category:"variable",primaryRole:"source",ast:{args:[["source","patient"]]},roles:[{role:"source",description:"The source to get from",required:!0,expectedTypes:["literal","selector","reference","expression","property-path"],svoPosition:1,sovPosition:2,markerOverride:{en:"",es:"",pt:"",fr:"",de:"",ja:"\u3092",zh:"",ko:"\ub97c",ar:"\u0639\u0644\u0649",tr:"i",id:"",he:"\u05d0\u05ea",sw:"",tl:"",bn:"\u0995\u09c7",qu:"ta"}},{role:"destination",description:"Where to store the result (optional)",required:!1,expectedTypes:["reference"],svoPosition:2,sovPosition:1}]},me={action:"take",description:"Take content from a source element",category:"dom-content",primaryRole:"patient",ast:{args:["patient"],modifiers:{from:"source",for:"recipient"}},argSkipTokens:["from"],roles:[{role:"patient",description:"The class or element to take",required:!0,expectedTypes:["selector"],svoPosition:1,sovPosition:2},{role:"source",description:"The element to take from (defaults to all current holders)",required:!1,expectedTypes:$,svoPosition:2,sovPosition:1},{role:"recipient",description:"The element the class moves ONTO (`take .active from .tab for me`)",required:!1,expectedTypes:["reference"],svoPosition:3,sovPosition:3,valueShape:"reference",markerOverride:{en:"for"}}]},ce={action:"make",description:"Create a new element",category:"dom-content",primaryRole:"patient",ast:{args:["patient"]},roles:[{role:"patient",description:"The element type or selector to create",required:!0,expectedTypes:["literal","selector"],svoPosition:1,sovPosition:1}]},de={action:"halt",description:"Halt/stop execution or event propagation",category:"control-flow",primaryRole:"patient",ast:{args:[],modifiers:{the:"patient"}},argSkipTokens:["the"],roles:[{role:"patient",description:"What to halt (event, default, bubbling, etc.)",required:!1,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},ue={action:"settle",description:"Wait for animations/transitions to settle",category:"async",primaryRole:"patient",ast:{args:[["destination","patient"]],isBlocking:!0},roles:[{role:"patient",description:"The element to settle (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},ye={action:"throw",description:"Throw an error",category:"control-flow",primaryRole:"patient",ast:{args:["patient"]},roles:[{role:"patient",description:"The error message or object to throw",required:!0,expectedTypes:["literal","expression","property-path"],svoPosition:1,sovPosition:1}]},ve={action:"send",description:"Send an event to an element",category:"event",primaryRole:"event",ast:{args:["event"],modifiers:{to:"destination",detail:"patient"}},roles:[{role:"event",description:"The event to send",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1,markerOverride:{en:"to",ja:"\u306b",ar:"\u0625\u0644\u0649",es:"a",ko:"\uc5d0\uac8c",zh:"\u5230",tr:"e",pt:"para",fr:"\u00e0",de:"an",id:"ke",qu:"man",sw:"kwa"}}]},fe={action:"if",description:"Conditional execution",category:"control-flow",primaryRole:"condition",ast:{args:["condition"]},hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate",required:!0,expectedTypes:["expression","reference","selector"],svoPosition:1,sovPosition:1}]},he={action:"unless",description:"Negated conditional execution (executes when condition is false)",category:"control-flow",primaryRole:"condition",ast:{args:["condition"]},hasBody:!0,roles:[{role:"condition",description:"The condition to evaluate (body executes when false)",required:!0,expectedTypes:["expression","reference","selector"],svoPosition:1,sovPosition:1}]},ge={action:"else",description:"Else branch of conditional",category:"control-flow",primaryRole:"patient",hasBody:!0,roles:[]},ke={action:"repeat",description:"Repeat a block of commands",category:"control-flow",primaryRole:"loopType",ast:{args:[["quantity","patient"]]},hasBody:!0,roles:[{role:"loopType",description:"Loop variant: forever, times, for, while, until, until-event",required:!0,expectedTypes:["literal"],svoPosition:0,sovPosition:0},{role:"quantity",description:"Number of times to repeat",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"event",description:"Event to wait for (terminates loop)",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:2},{role:"source",description:"Element to listen for event on",required:!1,expectedTypes:["selector","reference"],svoPosition:3,sovPosition:3}],notes:'Can also use "repeat forever", "repeat until condition", or "repeat until event X from Y"'},ze={action:"for",description:"Iterate over a collection",category:"control-flow",primaryRole:"patient",ast:{args:["patient"],modifiers:{in:"source"}},hasBody:!0,roles:[{role:"patient",description:"The iteration variable",required:!0,expectedTypes:["reference","expression"],svoPosition:1,sovPosition:2},{role:"source",description:"The collection to iterate over",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:2,sovPosition:1,markerOverride:{en:"in",es:"en",fr:"en",de:"in",it:"in",pt:"dentro",id:"dalam",ms:"dalam",pl:"w",ru:"\u0432",uk:"\u0443",sw:"ndani",th:"\u0e43\u0e19",vi:"trong",ar:"\u0641\u064a",tl:"sa_loob",he:"in",zh:"\u5728"}}]},we={action:"while",description:"Loop while condition is true",category:"control-flow",primaryRole:"condition",ast:{args:["condition"]},hasBody:!0,roles:[{role:"condition",description:"The condition to check",required:!0,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},be={action:"continue",description:"Continue to next loop iteration",category:"control-flow",primaryRole:"patient",ast:{},roles:[]},Te=Object.fromEntries(Object.keys(xe={en:"url",es:"url",pt:"url",fr:"url",de:"url",it:"url",ja:"url",ko:"url",zh:"url",ar:"url",he:"url",hi:"url",bn:"url",tr:"url",ru:"url",uk:"url",pl:"url",id:"url",vi:"url",th:"url",ms:"url",tl:"url",sw:"url",qu:"url"}).map(e=>[e,"in new"])),Se={action:"go",description:"Navigate to a URL, or scroll to an element",category:"navigation",primaryRole:"destination",roles:[{role:"destination",description:"The URL to navigate to, or the element to scroll to",required:!0,expectedTypes:["literal",...$],svoPosition:1,sovPosition:1,markerOverride:{en:"to",es:"a",ar:"\u0625\u0644\u0649",fr:"\u00e0",de:"zu",pt:"para",he:"\u05d0\u05dc",hi:"\u092a\u0930",id:"ke",it:"a",ru:"\u043d\u0430",sw:"kwa",uk:"\u043d\u0430"},renderOverride:{en:"",zh:"",vi:"",th:""},markerOptional:{en:!0,zh:!0,vi:!0,th:!0},markerVariants:{zh:["\u628a"]},markerLegacy:{es:["en","sobre","hacia"],ar:["\u0639\u0644\u0649","\u0641\u064a","\u0628"],fr:["sur","dans"],de:["auf","in"],pt:["em","a"],he:["\u05e2\u05dc","\u05d1","\u05dc","\u05d0\u05ea"],hi:["\u092e\u0947\u0902"],id:["pada","di"],it:["in","su"],ru:["\u0432","\u043a"],sw:["kwenye"],uk:["\u0432","\u0434\u043e"]}},{role:"manner",description:"Open the URL in a new window (`in new window`)",required:!1,expectedTypes:["reference","literal","expression"],valueShape:"keyword",svoPosition:2,sovPosition:2,markerOverride:Te}],rolePrefixLiteralVariants:[{role:"destination",literal:xe,idSuffix:"url",priorityDelta:5,methodCarrier:"method"}]},je={action:"transition",description:"Transition an element with animation",category:"dom-visibility",primaryRole:"patient",ast:{args:["patient"],modifiers:{to:"goal",over:"duration",on:"destination"}},omitRoleVariants:["goal"],roles:[{role:"patient",description:"The property to transition (opacity, *background-color, etc.)",required:!0,expectedTypes:["literal","expression","selector"],svoPosition:1,sovPosition:2,markerOverride:{en:"",ar:"",tl:"",sw:""}},{role:"goal",description:"The target value to transition to",required:!0,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:3,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwa",bn:"\u09a4\u09c7",qu:"man",es:"a",pt:"para",fr:"\u00e0",de:"zu",he:"\u05e2\u05dc",it:"in",ja:"\u306b",ko:"\uc5d0",ms:"ke",pl:"do",ru:"\u0432",th:"\u0e43\u0e19",tr:"e",uk:"\u0432",vi:"v\u00e0o",zh:"\u5230",id:"ke"}},{role:"destination",description:"The target element (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:3,sovPosition:1},{role:"duration",description:"Transition duration (over 500ms, for 2 seconds)",required:!1,expectedTypes:["literal"],svoPosition:4,sovPosition:4,markerOverride:{en:"over"}},{role:"style",description:"Easing function (ease-in, linear, etc.)",required:!1,expectedTypes:["literal"],svoPosition:5,sovPosition:5}]},Ee={action:"clone",description:"Clone an element",category:"dom-content",primaryRole:"patient",ast:{args:[["source","patient"]],modifiers:{into:"destination"}},roles:[{role:"patient",description:"The element to clone",required:!0,expectedTypes:["selector","reference"],svoPosition:1,sovPosition:2},{role:"destination",description:"Where to put the clone",required:!1,expectedTypes:["selector","reference"],svoPosition:2,sovPosition:1,markerOverride:{en:"into"}}]},Le={action:"focus",description:"Focus an element",category:"dom-content",primaryRole:"patient",ast:{args:[["destination","patient"]]},roles:[{role:"patient",description:"The element to focus (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Ce={action:"blur",description:"Remove focus from an element",category:"dom-content",primaryRole:"patient",ast:{args:[["destination","patient"]]},roles:[{role:"patient",description:"The element to blur (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Pe={action:"empty",description:"Remove all children from an element (sets innerHTML to empty)",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to empty (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},_e={action:"open",description:"Open a dialog, details element, or popover",category:"dom-content",primaryRole:"patient",ast:{args:["patient"],modifiers:{as:"style"}},roles:[{role:"patient",description:"The element to open (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:2},{role:"style",description:"Open-mode variant (modal / non-modal) for <dialog>",required:!1,expectedTypes:["literal","expression"],svoPosition:2,sovPosition:1,markerOverride:{en:"as",ja:"\u3068\u3057\u3066"}}]},We={action:"close",description:"Close a dialog, details element, or popover",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element to close (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Ae={action:"select",description:"Select the contents of a text field or DOM element",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The element whose contents to select (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},qe={action:"clear",description:"Clear a variable, local, or input element",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The variable or element to clear (defaults to me)",required:!1,expectedTypes:["selector","reference","expression"],default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Me={action:"reset",description:"Reset a <form> element to its default values",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The form element to reset (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:1,sovPosition:1}]},Oe={action:"breakpoint",description:"Drop into the debugger",category:"control-flow",primaryRole:"patient",roles:[],bareKeyword:!0},Re={action:"call",description:"Call a function",category:"control-flow",primaryRole:"patient",ast:{args:["patient"]},roles:[{role:"patient",description:"The function to call",required:!0,expectedTypes:["expression","reference"],markerOptional:{he:!0,zh:!0},svoPosition:1,sovPosition:1}]},Ne={action:"return",description:"Return a value from a function",category:"control-flow",primaryRole:"patient",ast:{args:["patient"]},roles:[{role:"patient",description:"The value to return",required:!1,expectedTypes:["literal","expression","reference","property-path"],svoPosition:1,sovPosition:1}]},$e={action:"js",description:"Execute raw JavaScript code",category:"control-flow",primaryRole:"patient",ast:{args:["patient"]},hasBody:!0,roles:[{role:"patient",description:"The JavaScript code to execute",required:!1,expectedTypes:["expression"],svoPosition:1,sovPosition:1}]},Ie={action:"tell",description:"Execute commands in context of another element",category:"control-flow",primaryRole:"destination",ast:{args:[["destination","patient"]]},hasBody:!0,roles:[{role:"destination",description:"The element to tell",required:!0,expectedTypes:$,svoPosition:1,sovPosition:1,markerOverride:{en:"",he:"\u05d0\u05ea",zh:"\u628a"}}]},Ke={action:"default",description:"Set a default value for a variable",category:"variable",primaryRole:"destination",ast:{args:["destination"],modifiers:{to:"patient"}},roles:[{role:"destination",description:"The variable to set default for",required:!0,expectedTypes:["selector","reference","expression","property-path"],svoPosition:1,sovPosition:1,markerOverride:{en:"",ar:"",tl:"",sw:"",bn:"\u0995\u09c7",qu:"ta",ja:"\u3092",ko:"\ub97c",tr:"i",hi:"\u0915\u094b",de:"",es:"",fr:"",it:"",pt:"",pl:"",ru:"",uk:"",vi:"",id:"",ms:"",th:"",zh:"\u628a",he:"\u05d0\u05ea"}},{role:"patient",description:"The default value",required:!0,expectedTypes:["literal","expression","property-path"],svoPosition:2,sovPosition:2,markerOverride:{en:"to",ar:"\u0625\u0644\u0649",tl:"sa",sw:"kwa",bn:"\u09a4\u09c7",qu:"man",ja:"\u306b",ko:"\uc5d0",tr:"e",hi:"\u092e\u0947\u0902",de:"zu",es:"a",fr:"\u00e0",it:"in",pt:"para",pl:"do",ru:"\u0432",uk:"\u0432",vi:"v\u00e0o",id:"ke",ms:"ke",th:"\u0e43\u0e19",zh:"\u5230",he:"\u05e2\u05dc"}}]},Ve={action:"init",description:"Initialization block that runs once",category:"control-flow",primaryRole:"patient",ast:{},hasBody:!0,roles:[]},Be={action:"behavior",description:"Define a reusable behavior",category:"control-flow",primaryRole:"patient",ast:{args:["patient"]},hasBody:!0,roles:[{role:"patient",description:"The behavior name (PascalCase identifier)",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1}]},De={action:"install",description:"Install a behavior on an element",category:"control-flow",primaryRole:"patient",ast:{args:["patient"],modifiers:{on:"destination"}},roles:[{role:"patient",description:"The behavior name to install",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:2},{role:"destination",description:"Element to install on (defaults to me)",required:!1,expectedTypes:["selector","reference"],default:{type:"reference",value:"me"},svoPosition:2,sovPosition:1}]},Fe={action:"measure",description:"Measure element dimensions (x, y, width, height, etc.)",category:"dom-content",primaryRole:"patient",ast:{args:["patient"],modifiers:{of:["destination","source"]}},roles:[{role:"patient",description:"Property to measure (x, y, width, height, top, left, etc.)",required:!1,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1},{role:"source",description:"Element to measure (defaults to me)",required:!1,expectedTypes:$,default:{type:"reference",value:"me"},svoPosition:2,sovPosition:2,markerOverride:{en:"of"}}]},He={role:"manner",description:"Run the swap inside a `document.startViewTransition()` (`using view transition`)",required:!1,expectedTypes:["literal","expression"],valueShape:"keyword",markerOverride:{en:"using view",es:"using view",pt:"using view",fr:"using view",de:"using view",it:"using view",ja:"using view",ko:"using view",zh:"using view",ar:"using view",he:"using view",hi:"using view",bn:"using view",tr:"using view",ru:"using view",uk:"using view",pl:"using view",id:"using view",vi:"using view",th:"using view",ms:"using view",tl:"using view",sw:"using view",qu:"using view"}},Ue={action:"swap",description:"Swap DOM content using various strategies (innerHTML, outerHTML, delete, etc.)",category:"dom-content",primaryRole:"destination",ast:{args:["method","destination","patient"],modifiers:{viewTransition:"manner"}},roles:[{role:"method",description:"The swap strategy (innerHTML, outerHTML, beforebegin, afterend, delete)",required:!1,expectedTypes:["literal"],svoPosition:1,sovPosition:3,markerOverride:{en:""}},{role:"destination",description:"The element to swap content in/for",required:!0,expectedTypes:$,svoPosition:2,sovPosition:1,markerOverride:{en:"of",es:"",fr:"",pt:"",it:"",de:"",pl:"",ru:"",uk:"",id:"",ms:"",sw:"",th:"",vi:"",he:"\u05d0\u05ea",zh:"\u628a",tl:""}},{role:"patient",description:"The content to swap in (optional for delete)",required:!1,expectedTypes:["literal","expression","selector"],svoPosition:3,sovPosition:2,markerOverride:{en:"with",es:"con",fr:"avec",pt:"com",it:"con",de:"mit",pl:"z",ru:"\u0441",uk:"\u0437",id:"dengan",ms:"dengan",sw:"na",th:"\u0e14\u0e49\u0e27\u0e22",vi:"v\u1edbi",he:"\u05e2\u05dd",zh:"\u7528",hi:"\u0938\u0947",bn:"\u09a6\u09bf\u09af\u09bc\u09c7",tr:"ile",qu:"wan",ar:"\u0628\u0640",tl:"nang"}},{...He,svoPosition:4,sovPosition:4}]},Ge={action:"morph",description:"Morph an element into another using DOM diffing",category:"dom-content",primaryRole:"patient",ast:{args:[["source","destination"]],modifiers:{on:"patient",viewTransition:"manner"}},roles:[{role:"patient",description:"The element to morph",required:!0,expectedTypes:$,svoPosition:1,sovPosition:1,markerOverride:{en:""}},{role:"destination",description:"The target content/element to morph into",required:!0,expectedTypes:["literal","expression","selector","reference"],svoPosition:2,sovPosition:2,markerOverride:{en:"to"}},{...He,svoPosition:3,sovPosition:3}]},Ze={action:"beep",description:"Debug output for expressions with type information",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The expression(s) to debug",required:!1,expectedTypes:["literal","selector","reference","expression"],svoPosition:1,sovPosition:1}]},Ye={action:"break",description:"Exit from the current loop",category:"control-flow",primaryRole:"patient",roles:[]},Xe={action:"copy",description:"Copy text or element content to the clipboard",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The text or element to copy",required:!0,expectedTypes:["literal","selector","reference","expression","property-path"],svoPosition:1,sovPosition:1}]},Qe={action:"exit",description:"Exit from the current event handler",category:"control-flow",primaryRole:"patient",roles:[],bareKeyword:!0},Je={action:"pick",description:"Select item(s), character(s), a range, first/last/random N, or regex matches from a root",category:"variable",primaryRole:"patient",roles:[{role:"patient",description:"The range/count/index/regex argument to pick",required:!0,expectedTypes:["literal","expression","reference"],svoPosition:1,sovPosition:1},{role:"source",description:'The root to pick from (with "of"/"from" keyword)',required:!1,expectedTypes:["reference","expression"],svoPosition:2,sovPosition:2}]},et={action:"scroll",description:"Scroll the viewport to a target element",category:"navigation",primaryRole:"destination",ast:{args:["destination"]},argSkipTokens:["of","the","top","bottom","middle","center","nearest","left","right","smoothly","instantly"],roles:[{role:"destination",description:"The element to scroll to",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"to"}}]},tt={action:"push",description:"Push a URL onto the browser history",category:"navigation",primaryRole:"patient",roles:[{role:"patient",description:"The URL to push (after the `url` keyword)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:xe}]},rt={action:"replace",description:"Replace the current browser history entry with a URL",category:"navigation",primaryRole:"patient",roles:[{role:"patient",description:"The URL to replace with (after the `url` keyword)",required:!0,expectedTypes:["literal","expression"],svoPosition:1,sovPosition:1,markerOverride:xe}]},it={action:"process",description:"Process hx-partial markup in HTML content",category:"dom-content",primaryRole:"patient",ast:{args:["patient"],modifiers:{viewTransition:"manner"}},roles:[{role:"patient",description:"The HTML content (string, element, or response) to process",required:!0,expectedTypes:["literal","reference","expression"],svoPosition:1,sovPosition:1,markerOverride:{en:"partials in",es:"partials in",pt:"partials in",fr:"partials in",de:"partials in",it:"partials in",ja:"partials in",ko:"partials in",zh:"partials in",ar:"partials in",he:"partials in",hi:"partials in",bn:"partials in",tr:"partials in",ru:"partials in",uk:"partials in",pl:"partials in",id:"partials in",vi:"partials in",th:"partials in",ms:"partials in",tl:"partials in",sw:"partials in",qu:"partials in"}},{...He,svoPosition:2,sovPosition:2}]},at={toggle:I,add:K,remove:V,put:B,set:D,show:Q,hide:J,on:ee,trigger:te,wait:re,fetch:ie,increment:ae,decrement:ne,append:oe,prepend:se,log:le,get:pe,take:me,make:ce,halt:de,settle:ue,throw:ye,send:ve,if:fe,unless:he,else:ge,repeat:ke,for:ze,while:we,continue:be,go:Se,scroll:et,push:tt,replace:rt,process:it,transition:je,clone:Ee,focus:Le,blur:Ce,empty:Pe,open:_e,close:We,select:Ae,clear:qe,reset:Me,breakpoint:Oe,call:Re,return:Ne,js:$e,tell:Ie,default:Ke,init:Ve,behavior:Be,install:De,measure:Fe,swap:Ue,morph:Ge,beep:Ze,break:Ye,copy:Xe,exit:Qe,pick:Je,render:{action:"render",description:"Render a template with optional variables",category:"dom-content",primaryRole:"patient",roles:[{role:"patient",description:"The template to render",required:!0,expectedTypes:["selector","reference","expression"],svoPosition:1,sovPosition:2},{role:"style",description:"Variables to pass to the template (with keyword)",required:!1,expectedTypes:["expression"],valueShape:"object",svoPosition:2,sovPosition:1}]},bind:F,live:H,when:U,eventsource:G,socket:Z,worker:Y,intercept:X,compound:{action:"compound",description:"A compound node representing chained statements",primaryRole:"patient",category:"control-flow",hasBody:!0,roles:[]}},"undefined"!=typeof process&&"1"===process.env.LOKASCRIPT_SCHEMA_VALIDATION&&Promise.resolve().then(()=>(nt(),P)).then(({validateAllSchemas:e,formatValidationResults:t})=>{const r=e(at);r.size>0&&(console.warn("[SCHEMA VALIDATION] Found issues in command schemas:"),console.warn(t(r)),console.warn("\nThese warnings help identify potential schema design issues."),console.warn("Fix them to improve type inference and avoid runtime bugs."))}).catch(e=>{})}}),bt=b({"src/tokenizers/token-utils.ts"(){}}),xt=b({"src/value-words.ts"(){yt=new Set(["me","my","myself","you","your","yourself","it","its","result","event","target","body","detail","window","document","true","false","null","undefined","empty"])}});function Tt(e,t){const r={...e};for(const i of Object.keys(t)){const a=t[i],n=e[i];void 0!==a&&(r[i]="object"!=typeof a||null===a||Array.isArray(a)||"object"!=typeof n||null===n||Array.isArray(n)?a:Tt(n,a))}return r}function St(e,t){return Tt(e,t)}function jt(e){if(!e.extends)return e;const t=ft.get(e.extends);if(!t)return console.warn(`[Registry] Profile '${e.code}' extends '${e.extends}' but base is not registered. Make sure to import the base language before the variant.`),e;return St(jt(t),e)}function Et(e,t,r){vt.set(e,t),ft.set(e,r),ht.delete(e)}function Lt(e,t){kt.set(e,t),ht.delete(e)}function Ct(e){return e.split("-")[0]}function Pt(e){return e.includes("-")}function _t(e){let t=ft.get(e);return!t&&Pt(e)&&(t=ft.get(Ct(e))),t?jt(t):void 0}function Wt(){return Array.from(vt.keys())}function At(e){if(vt.has(e)&&ft.has(e))return!0;if(Pt(e)){const t=Ct(e);return vt.has(t)&&ft.has(t)}return!1}function qt(e,r){const i=function(e){let t=vt.get(e);if(!t&&Pt(e)){const r=Ct(e);t=vt.get(r)}if(!t){const t=Array.from(vt.keys()).join(", ");throw Error(`Language '${e}' is not registered. Registered languages: ${t||"none"}. Import the language module first: import '@lokascript/semantic/languages/${e}';`)}return t}(r).tokenize(e);return"en"===r?i:function(e,r){const i=e.tokens,a=[];let n=!1;for(let e=0;i.length>e;e++){const t=i[e],o=i[e-1];let s=e+2;for(;i.length>s&&")"!==i[s]?.value&&i[s-1].position.end===i[s].position.start;)s++;const l=i.slice(e+1,s),p=l.map(e=>e.value).join(""),m=l[0],c=l[l.length-1];!("("===t.value&&m&&c&&")"===i[s]?.value&&/^[\p{L}_$][\p{L}\p{M}\p{N}_$]*$/u.test(p))||"particle"!==m.kind&&yt.has((m.normalized??m.value).toLowerCase())||!zt(p,r)||t.position.end!==m.position.start||c.position.end!==i[s].position.start||o&&o.position.end===t.position.start&&/[\p{L}\p{N}_)\]]$/u.test(o.value)?a.push(t):(a.push({value:`(${p})`,kind:"identifier",position:{...t.position,end:i[s].position.end}}),e=s,n=!0)}return n?new t(a,r):e}(i,r)}function Mt(e){let t=ht.get(e);if(!t&&Pt(e)&&(t=ht.get(Ct(e))),t)return t;let r=kt.get(e);if(!r&&Pt(e)&&(r=kt.get(Ct(e))),r)return ht.set(e,r),r;if(!gt)throw Error(`No patterns registered for language '${e}'. Either import the language module or set a pattern generator.`);const i=function(e){let t=ft.get(e);if(!t&&Pt(e)){const r=Ct(e);t=ft.get(r)}if(!t){const t=Array.from(ft.keys()).join(", ");throw Error(`Language profile '${e}' is not registered. Registered languages: ${t||"none"}. Import the language module first: import '@lokascript/semantic/languages/${e}';`)}return jt(t)}(e),a=gt(i);return ht.set(e,a),a}var Ot,Rt=b({"src/registry.ts"(){bt(),xt(),vt=new Map,ft=new Map,ht=new Map,gt=null,kt=new Map,zt=()=>!1}}),Nt={};x(Nt,{arabicProfile:()=>Ot});var $t,It=b({"src/generators/profiles/arabic.ts"(){Ot={code:"ar",name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",regions:["priority"],direction:"rtl",script:"arabic",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"\u0623\u0646\u0627",it:"\u0647\u0648",you:"\u0623\u0646\u062a",result:"\u0627\u0644\u0646\u062a\u064a\u062c\u0629",event:"\u0627\u0644\u062d\u062f\u062b",target:"\u0627\u0644\u0647\u062f\u0641",body:"\u062c\u0633\u0645",document:"\u0648\u062b\u064a\u0642\u0629",window:"\u0646\u0627\u0641\u0630\u0629",detail:"\u062a\u0641\u0627\u0635\u064a\u0644"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u0644\u064a",it:"\u0644\u0647",you:"\u0644\u0643"},keywords:{"\u0644\u064a":"me","\u0644\u0643":"you","\u0644\u0647":"it","\u0644\u0647\u0627":"it"}},roleMarkers:{destination:{primary:"\u0639\u0644\u0649",alternatives:["\u0641\u064a","\u0625\u0644\u0649","\u0628","\u0642\u0628\u0644","\u0628\u0639\u062f"],position:"before"},source:{primary:"\u0645\u0646",position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0628\u0640",alternatives:["\u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645"],position:"before"}},keywords:{toggle:{primary:"\u0628\u062f\u0651\u0644",alternatives:["\u0628\u062f\u0644","\u063a\u064a\u0651\u0631","\u063a\u064a\u0631"],normalized:"toggle"},add:{primary:"\u0623\u0636\u0641",alternatives:["\u0627\u0636\u0641"],normalized:"add"},remove:{primary:"\u0627\u062d\u0630\u0641",alternatives:["\u0623\u0632\u0644","\u0627\u0645\u0633\u062d"],normalized:"remove"},put:{primary:"\u0636\u0639",alternatives:["\u0627\u062c\u0639\u0644"],normalized:"put"},append:{primary:"\u0623\u0644\u062d\u0642",normalized:"append"},prepend:{primary:"\u0633\u0628\u0642",normalized:"prepend"},take:{primary:"\u062e\u0630",normalized:"take"},make:{primary:"\u0627\u0635\u0646\u0639",alternatives:["\u0623\u0646\u0634\u0626"],normalized:"make"},clone:{primary:"\u0627\u0633\u062a\u0646\u0633\u062e",normalized:"clone"},swap:{primary:"\u0627\u0633\u062a\u0628\u062f\u0644",alternatives:["\u062a\u0628\u0627\u062f\u0644"],normalized:"swap"},morph:{primary:"\u062d\u0648\u0651\u0644",normalized:"morph"},set:{primary:"\u0627\u0636\u0628\u0637",alternatives:["\u0639\u064a\u0651\u0646","\u062d\u062f\u062f"],normalized:"set"},get:{primary:"\u0627\u062d\u0635\u0644",normalized:"get"},increment:{primary:"\u0632\u0650\u062f",alternatives:["\u0632\u062f","\u0627\u0631\u0641\u0639"],normalized:"increment"},decrement:{primary:"\u0623\u0646\u0642\u0635",alternatives:["\u0627\u0646\u0642\u0635","\u0642\u0644\u0644"],normalized:"decrement"},log:{primary:"\u0633\u062c\u0644",normalized:"log"},show:{primary:"\u0627\u0638\u0647\u0631",alternatives:["\u0623\u0638\u0647\u0631","\u0627\u0639\u0631\u0636"],normalized:"show"},hide:{primary:"\u0627\u062e\u0641",alternatives:["\u0623\u062e\u0641\u0650","\u0627\u062e\u0641\u064a","\u0623\u062e\u0641"],normalized:"hide"},transition:{primary:"\u0627\u0646\u062a\u0642\u0627\u0644",alternatives:["\u0627\u0646\u062a\u0642\u0644"],normalized:"transition"},on:{primary:"\u0639\u0644\u0649",alternatives:["\u0639\u0646\u062f","\u0644\u062f\u0649","\u062d\u064a\u0646"],normalized:"on"},trigger:{primary:"\u062a\u0634\u063a\u064a\u0644",alternatives:["\u0623\u0637\u0644\u0642","\u0641\u0639\u0651\u0644"],normalized:"trigger"},send:{primary:"\u0623\u0631\u0633\u0644",normalized:"send"},focus:{primary:"\u062a\u0631\u0643\u064a\u0632",alternatives:["\u0631\u0643\u0632"],normalized:"focus"},blur:{primary:"\u0636\u0628\u0627\u0628\u064a\u0629",alternatives:["\u0634\u0648\u0634"],normalized:"blur"},empty:{primary:"\u0625\u0641\u0631\u0627\u063a",alternatives:["\u0641\u0627\u0631\u063a"],normalized:"empty"},open:{primary:"\u0627\u0641\u062a\u062d",normalized:"open"},close:{primary:"\u0623\u063a\u0644\u0642",normalized:"close"},select:{primary:"\u0638\u0644\u0644",normalized:"select"},clear:{primary:"\u0646\u0638\u0651\u0641",normalized:"clear"},reset:{primary:"\u0625\u0639\u0627\u062f\u0629-\u0636\u0628\u0637",alternatives:["\u0623\u0639\u062f-\u062a\u0639\u064a\u064a\u0646"],normalized:"reset"},breakpoint:{primary:"\u0646\u0642\u0637\u0629-\u062a\u0648\u0642\u0641",normalized:"breakpoint"},go:{primary:"\u0627\u0630\u0647\u0628",normalized:"go"},scroll:{primary:"\u0645\u0631\u0631",alternatives:["\u062a\u0645\u0631\u064a\u0631"],normalized:"scroll"},push:{primary:"\u0627\u062f\u0641\u0639",alternatives:["\u062f\u0641\u0639"],normalized:"push"},replace:{primary:"\u0627\u0633\u062a\u0628\u062f\u0644_\u0639\u0646\u0648\u0627\u0646",alternatives:["\u0623\u0639\u062f_\u062a\u0639\u064a\u064a\u0646_\u0639\u0646\u0648\u0627\u0646"],normalized:"replace"},process:{primary:"\u0639\u0627\u0644\u062c",alternatives:["\u0645\u0639\u0627\u0644\u062c\u0629"],normalized:"process"},wait:{primary:"\u0627\u0646\u062a\u0638\u0631",normalized:"wait"},fetch:{primary:"\u0627\u062d\u0636\u0631",alternatives:["\u062c\u0644\u0628"],normalized:"fetch"},settle:{primary:"\u0627\u0633\u062a\u0642\u0631",normalized:"settle"},if:{primary:"\u0625\u0630\u0627",normalized:"if"},unless:{primary:"\u0625\u0644\u0627",normalized:"unless"},when:{primary:"\u0639\u0646\u062f\u0645\u0627",normalized:"when"},changes:{primary:"\u064a\u062a\u063a\u064a\u0631",normalized:"changes"},where:{primary:"\u0623\u064a\u0646",normalized:"where"},else:{primary:"\u0648\u0625\u0644\u0627",alternatives:["\u062e\u0644\u0627\u0641 \u0630\u0644\u0643"],normalized:"else"},repeat:{primary:"\u0643\u0631\u0631",normalized:"repeat"},for:{primary:"\u0644\u0643\u0644",normalized:"for"},while:{primary:"\u0628\u064a\u0646\u0645\u0627",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\u0648\u0627\u0635\u0644",normalized:"continue"},halt:{primary:"\u0623\u0648\u0642\u0641",normalized:"halt"},throw:{primary:"\u0627\u0631\u0645",alternatives:["\u0627\u0631\u0645\u0650"],normalized:"throw"},call:{primary:"\u0627\u0633\u062a\u062f\u0639",alternatives:["\u0646\u0627\u062f\u0650"],normalized:"call"},return:{primary:"\u0627\u0631\u062c\u0639",alternatives:["\u0639\u064f\u062f"],normalized:"return"},then:{primary:"\u062b\u0645",alternatives:["\u0628\u0639\u062f\u0647\u0627","\u062b\u0645\u0651"],normalized:"then"},and:{primary:"\u0648\u0623\u064a\u0636\u0627\u064b",alternatives:["\u0623\u064a\u0636\u0627\u064b"],normalized:"and"},matches:{primary:"\u064a\u0637\u0627\u0628\u0642",normalized:"matches"},exists:{primary:"\u0645\u0648\u062c\u0648\u062f",normalized:"exists"},no:{primary:"\u0644\u0627 \u064a\u0648\u062c\u062f",normalized:"no"},end:{primary:"\u0646\u0647\u0627\u064a\u0629",alternatives:["\u0627\u0646\u062a\u0647\u0649","\u0627\u0644\u0646\u0647\u0627\u064a\u0629"],normalized:"end"},js:{primary:"\u062c\u0627\u0641\u0627\u0633\u0643\u0631\u0628\u062a",alternatives:["js"],normalized:"js"},async:{primary:"\u0645\u062a\u0632\u0627\u0645\u0646",normalized:"async"},tell:{primary:"\u0623\u062e\u0628\u0631",normalized:"tell"},default:{primary:"\u0627\u0641\u062a\u0631\u0627\u0636\u064a",normalized:"default"},init:{primary:"\u062a\u0647\u064a\u0626\u0629",alternatives:["\u0628\u062f\u0621"],normalized:"init"},behavior:{primary:"\u0633\u0644\u0648\u0643",normalized:"behavior"},install:{primary:"\u062a\u062b\u0628\u064a\u062a",alternatives:["\u062b\u0628\u0651\u062a"],normalized:"install"},measure:{primary:"\u0642\u064a\u0627\u0633",alternatives:["\u0642\u0650\u0633","\u0642\u0633"],normalized:"measure"},beep:{primary:"\u0635\u0641\u0651\u0631",normalized:"beep"},break:{primary:"\u062a\u0648\u0642\u0641",normalized:"break"},copy:{primary:"\u0627\u0646\u0633\u062e",normalized:"copy"},exit:{primary:"\u0627\u062e\u0631\u062c",normalized:"exit"},pick:{primary:"\u0627\u062e\u062a\u0631",normalized:"pick"},render:{primary:"\u0627\u0631\u0633\u0645",normalized:"render"},into:{primary:"\u0641\u064a",alternatives:["\u0625\u0644\u0649"],normalized:"into"},before:{primary:"\u0642\u0628\u0644",normalized:"before"},after:{primary:"\u0628\u0639\u062f",normalized:"after"},until:{primary:"\u062d\u062a\u0649",normalized:"until"},event:{primary:"\u062d\u062f\u062b",normalized:"event"},from:{primary:"\u0645\u0646",normalized:"from"},connect:{primary:"\u0627\u062a\u0635\u0644",alternatives:["\u0627\u062a\u0635\u0627\u0644"],normalized:"connect"},stream:{primary:"\u062a\u062f\u0641\u0642",alternatives:["\u0628\u062b"],normalized:"stream"},live:{primary:"\u0645\u0628\u0627\u0634\u0631",alternatives:["\u062d\u064a"],normalized:"live"},socket:{primary:"\u0645\u0642\u0628\u0633",alternatives:["websocket"],normalized:"socket"},bind:{primary:"\u0627\u0631\u0628\u0637",alternatives:["\u0631\u0628\u0637","bind"],normalized:"bind"},intercept:{primary:"\u0627\u0639\u062a\u0631\u0636",alternatives:["\u0627\u0639\u062a\u0631\u0627\u0636","intercept"],normalized:"intercept"},worker:{primary:"\u0639\u0627\u0645\u0644",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0645\u0635\u062f\u0631-\u0627\u0644\u0623\u062d\u062f\u0627\u062b"],normalized:"eventsource"}},tokenization:{prefixes:["\u0627\u0644","\u0648","\u0641","\u0628","\u0643","\u0644"]},eventHandler:{eventMarker:{primary:"\u0639\u0646\u062f",alternatives:["\u0641\u064a","\u0644\u062f\u0649","\u0639\u0646\u062f\u0645\u0627","\u062d\u064a\u0646","\u062d\u064a\u0646\u0645\u0627","\u0644\u0645\u0651\u0627","\u0644\u0645\u0627"],position:"before"},temporalMarkers:["\u0639\u0646\u062f\u0645\u0627","\u062d\u064a\u0646","\u0644\u0645\u0651\u0627"],negationMarker:{primary:"\u0639\u062f\u0645",alternatives:["\u0639\u062f\u0645"],position:"before"}}}}}),Kt={};x(Kt,{bengaliProfile:()=>$t});var Vt,Bt=b({"src/generators/profiles/bengali.ts"(){$t={code:"bn",name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be",direction:"ltr",script:"bengali",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u09c1\u09a8","\u09cb","\u09be","\u09c7","\u09bf"],subjectDrop:!0},references:{me:"\u0986\u09ae\u09bf",it:"\u098f\u099f\u09bf",you:"\u0986\u09aa\u09a8\u09bf",result:"\u09ab\u09b2\u09be\u09ab\u09b2",event:"\u0998\u099f\u09a8\u09be",target:"\u09b2\u0995\u09cd\u09b7\u09cd\u09af",body:"\u09ac\u09a1\u09bf"},possessive:{marker:"\u09b0",markerPosition:"between",keywords:{"\u0986\u09ae\u09be\u09b0":"me","\u09a4\u09cb\u09ae\u09be\u09b0":"you","\u0986\u09aa\u09a8\u09be\u09b0":"you","\u09a4\u09be\u09b0":"it","\u098f\u09b0":"it"}},roleMarkers:{patient:{primary:"\u0995\u09c7",position:"after"},destination:{primary:"\u09a4\u09c7",alternatives:["\u098f"],position:"after"},source:{primary:"\u09a5\u09c7\u0995\u09c7",position:"after"},style:{primary:"\u09a6\u09bf\u09af\u09bc\u09c7",position:"after"},event:{primary:"\u09a4\u09c7",position:"after"}},keywords:{toggle:{primary:"\u099f\u0997\u09b2",normalized:"toggle"},add:{primary:"\u09af\u09cb\u0997",alternatives:["\u09af\u09cb\u0997 \u0995\u09b0\u09c1\u09a8"],normalized:"add"},remove:{primary:"\u09b8\u09b0\u09be\u09a8",alternatives:["\u09b8\u09b0\u09bf\u09af\u09bc\u09c7 \u09ab\u09c7\u09b2\u09c1\u09a8","\u09ae\u09c1\u099b\u09c1\u09a8"],normalized:"remove"},put:{primary:"\u09b0\u09be\u0996\u09c1\u09a8",alternatives:["\u09b0\u09be\u0996"],normalized:"put"},append:{primary:"\u099c\u09c1\u09a1\u09bc\u09c1\u09a8",alternatives:[],normalized:"append"},prepend:{primary:"\u09b6\u09c1\u09b0\u09c1\u09a4\u09c7 \u09af\u09cb\u0997",alternatives:[],normalized:"prepend"},take:{primary:"\u09a8\u09bf\u09a8",alternatives:["\u09a8\u09c7"],normalized:"take"},make:{primary:"\u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09c1\u09a8",alternatives:["\u09ac\u09be\u09a8\u09be\u09a8"],normalized:"make"},clone:{primary:"\u0995\u09cd\u09b2\u09cb\u09a8",alternatives:["\u09aa\u09cd\u09b0\u09a4\u09bf\u09b2\u09bf\u09aa\u09bf"],normalized:"clone"},swap:{primary:"\u09ac\u09a6\u09b2",alternatives:[],normalized:"swap"},morph:{primary:"\u09b0\u09c2\u09aa\u09be\u09a8\u09cd\u09a4\u09b0",alternatives:[],normalized:"morph"},set:{primary:"\u09b8\u09c7\u099f",alternatives:["\u09a8\u09bf\u09b0\u09cd\u09a7\u09be\u09b0\u09a3"],normalized:"set"},get:{primary:"\u09aa\u09be\u09a8",normalized:"get"},increment:{primary:"\u09ac\u09c3\u09a6\u09cd\u09a7\u09bf",alternatives:["\u09ac\u09be\u09a1\u09bc\u09be\u09a8"],normalized:"increment"},decrement:{primary:"\u09b9\u09cd\u09b0\u09be\u09b8",alternatives:["\u0995\u09ae\u09be\u09a8"],normalized:"decrement"},log:{primary:"\u09b2\u0997",alternatives:["\u09b0\u09c7\u0995\u09b0\u09cd\u09a1"],normalized:"log"},show:{primary:"\u09a6\u09c7\u0996\u09be\u09a8",alternatives:["\u09a6\u09c7\u0996\u09be\u0993"],normalized:"show"},hide:{primary:"\u09b2\u09c1\u0995\u09be\u09a8",alternatives:["\u09b2\u09c1\u0995\u09be\u0993"],normalized:"hide"},transition:{primary:"\u09b8\u0982\u0995\u09cd\u09b0\u09ae\u09a3",alternatives:[],normalized:"transition"},on:{primary:"\u09a4\u09c7",alternatives:["\u098f"],normalized:"on"},trigger:{primary:"\u099f\u09cd\u09b0\u09bf\u0997\u09be\u09b0",alternatives:[],normalized:"trigger"},send:{primary:"\u09aa\u09be\u09a0\u09be\u09a8",alternatives:["\u09aa\u09be\u09a0\u09be\u0993"],normalized:"send"},focus:{primary:"\u09ab\u09cb\u0995\u09be\u09b8",alternatives:["\u09ae\u09a8\u09cb\u09af\u09cb\u0997"],normalized:"focus"},blur:{primary:"\u099d\u09be\u09aa\u09b8\u09be",alternatives:["\u09ab\u09cb\u0995\u09be\u09b8_\u09b8\u09b0\u09be\u09a8"],normalized:"blur"},empty:{primary:"\u0996\u09be\u09b2\u09bf-\u0995\u09b0\u09c1\u09a8",alternatives:["\u0996\u09be\u09b2\u09bf"],normalized:"empty"},open:{primary:"\u0996\u09c1\u09b2\u09c1\u09a8",normalized:"open"},close:{primary:"\u09ac\u09a8\u09cd\u09a7",normalized:"close"},select:{primary:"\u09a8\u09bf\u09b0\u09cd\u09ac\u09be\u099a\u09a8",normalized:"select"},clear:{primary:"\u09aa\u09b0\u09bf\u09b7\u09cd\u0995\u09be\u09b0",normalized:"clear"},reset:{primary:"\u09b0\u09bf\u09b8\u09c7\u099f",normalized:"reset"},breakpoint:{primary:"\u09ac\u09cd\u09b0\u09c7\u0995\u09aa\u09af\u09bc\u09c7\u09a8\u09cd\u099f",normalized:"breakpoint"},click:{primary:"\u0995\u09cd\u09b2\u09bf\u0995",normalized:"click"},hover:{primary:"\u09b9\u09cb\u09ad\u09be\u09b0",alternatives:["\u0989\u09aa\u09b0\u09c7_\u09b0\u09be\u0996\u09c1\u09a8"],normalized:"hover"},submit:{primary:"\u09b8\u09be\u09ac\u09ae\u09bf\u099f",alternatives:["\u099c\u09ae\u09be"],normalized:"submit"},input:{primary:"\u0987\u09a8\u09aa\u09c1\u099f",alternatives:["\u09aa\u09cd\u09b0\u09ac\u09c7\u09b6"],normalized:"input"},change:{primary:"\u09aa\u09b0\u09bf\u09ac\u09b0\u09cd\u09a4\u09a8",normalized:"change"},go:{primary:"\u09af\u09be\u09a8",alternatives:["\u09af\u09be\u0993"],normalized:"go"},scroll:{primary:"\u09b8\u09cd\u0995\u09cd\u09b0\u09cb\u09b2",normalized:"scroll"},push:{primary:"\u09aa\u09c1\u09b6",alternatives:["\u09a0\u09c7\u09b2\u09c1\u09a8"],normalized:"push"},replace:{primary:"\u09aa\u09cd\u09b0\u09a4\u09bf\u09b8\u09cd\u09a5\u09be\u09aa\u09a8",normalized:"replace"},process:{primary:"\u09aa\u09cd\u09b0\u09b8\u09c7\u09b8",alternatives:["\u09aa\u09cd\u09b0\u0995\u09cd\u09b0\u09bf\u09af\u09bc\u09be"],normalized:"process"},wait:{primary:"\u0985\u09aa\u09c7\u0995\u09cd\u09b7\u09be",normalized:"wait"},fetch:{primary:"\u0986\u09a8\u09c1\u09a8",alternatives:[],normalized:"fetch"},settle:{primary:"\u09b8\u09cd\u09a5\u09bf\u09b0",alternatives:[],normalized:"settle"},if:{primary:"\u09af\u09a6\u09bf",alternatives:[],normalized:"if"},unless:{primary:"\u09af\u09a6\u09bf \u09a8\u09be",normalized:"unless"},when:{primary:"\u09af\u0996\u09a8",normalized:"when"},changes:{primary:"\u09aa\u09b0\u09bf\u09ac\u09b0\u09cd\u09a4\u09bf\u09a4 \u09b9\u09b2\u09c7",normalized:"changes"},where:{primary:"\u0995\u09cb\u09a5\u09be\u09af\u09bc",normalized:"where"},else:{primary:"\u09a8\u09a4\u09c1\u09ac\u09be",alternatives:["\u09a8\u09be \u09b9\u09b2\u09c7"],normalized:"else"},repeat:{primary:"\u09aa\u09c1\u09a8\u09b0\u09be\u09ac\u09c3\u09a4\u09cd\u09a4\u09bf",alternatives:["\u09ac\u09be\u09b0 \u09ac\u09be\u09b0"],normalized:"repeat"},for:{primary:"\u099c\u09a8\u09cd\u09af",alternatives:[],normalized:"for"},while:{primary:"\u09af\u09a4\u0995\u09cd\u09b7\u09a3",alternatives:[],normalized:"while"},forever:{primary:"\u099a\u09bf\u09b0\u0995\u09be\u09b2",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u099a\u09be\u09b2\u09bf\u09af\u09bc\u09c7 \u09af\u09be\u09a8",alternatives:[],normalized:"continue"},halt:{primary:"\u09a5\u09be\u09ae\u09c1\u09a8",alternatives:["\u09a5\u09be\u09ae\u09be\u0993"],normalized:"halt"},throw:{primary:"\u09a8\u09bf\u0995\u09cd\u09b7\u09c7\u09aa",alternatives:["\u099b\u09c1\u0981\u09a1\u09bc\u09c7 \u09a6\u09bf\u09a8"],normalized:"throw"},call:{primary:"\u0995\u09b2",alternatives:["\u09a1\u09be\u0995\u09c1\u09a8"],normalized:"call"},return:{primary:"\u09ab\u09bf\u09b0\u09c1\u09a8",alternatives:["\u09ab\u09c7\u09b0\u09a4 \u09a6\u09bf\u09a8"],normalized:"return"},then:{primary:"\u09a4\u09be\u09b0\u09aa\u09b0",alternatives:["\u09a4\u0996\u09a8"],normalized:"then"},and:{primary:"\u098f\u09ac\u0982",alternatives:[],normalized:"and"},is:{primary:"\u09b9\u09af\u09bc",normalized:"is"},end:{primary:"\u09b6\u09c7\u09b7",alternatives:["\u09b8\u09ae\u09be\u09aa\u09cd\u09a4"],normalized:"end"},js:{primary:"\u099c\u09c7\u098f\u09b8",alternatives:["js"],normalized:"js"},async:{primary:"\u0985\u09cd\u09af\u09be\u09b8\u09bf\u0999\u09cd\u0995",alternatives:[],normalized:"async"},tell:{primary:"\u09ac\u09b2\u09c1\u09a8",alternatives:["\u09ac\u09b2"],normalized:"tell"},default:{primary:"\u09a1\u09bf\u09ab\u09b2\u09cd\u099f",alternatives:[],normalized:"default"},init:{primary:"\u09b6\u09c1\u09b0\u09c1",alternatives:[],normalized:"init"},behavior:{primary:"\u0986\u099a\u09b0\u09a3",alternatives:[],normalized:"behavior"},install:{primary:"\u0987\u09a8\u09b8\u09cd\u099f\u09b2",alternatives:[],normalized:"install"},measure:{primary:"\u09ae\u09be\u09aa\u09c1\u09a8",alternatives:[],normalized:"measure"},beep:{primary:"\u09ac\u09c0\u09aa",alternatives:[],normalized:"beep"},break:{primary:"\u09ad\u09be\u0999\u09c1\u09a8",alternatives:[],normalized:"break"},copy:{primary:"\u0995\u09aa\u09bf",alternatives:[],normalized:"copy"},exit:{primary:"\u09ac\u09c7\u09b0",alternatives:[],normalized:"exit"},pick:{primary:"\u09ac\u09be\u099b\u09c1\u09a8",alternatives:[],normalized:"pick"},render:{primary:"\u09b0\u09c7\u09a8\u09cd\u09a1\u09be\u09b0",alternatives:[],normalized:"render"},into:{primary:"\u09ad\u09bf\u09a4\u09b0\u09c7",normalized:"into"},before:{primary:"\u0986\u0997\u09c7",alternatives:[],normalized:"before"},after:{primary:"\u09aa\u09b0\u09c7",alternatives:[],normalized:"after"},until:{primary:"\u09aa\u09b0\u09cd\u09af\u09a8\u09cd\u09a4",alternatives:[],normalized:"until"},event:{primary:"\u0998\u099f\u09a8\u09be",alternatives:[],normalized:"event"},from:{primary:"\u09a5\u09c7\u0995\u09c7",normalized:"from"},connect:{primary:"\u0995\u09be\u09a8\u09c7\u0995\u09cd\u099f",alternatives:["\u09b8\u0982\u09af\u09cb\u0997","\u09af\u09c1\u0995\u09cd\u09a4"],normalized:"connect"},stream:{primary:"\u09b8\u09cd\u099f\u09cd\u09b0\u09bf\u09ae",alternatives:["\u09b8\u09cd\u09b0\u09cb\u09a4","\u09aa\u09cd\u09b0\u09ac\u09be\u09b9"],normalized:"stream"},live:{primary:"\u09b2\u09be\u0987\u09ad",alternatives:["\u09b8\u09b0\u09be\u09b8\u09b0\u09bf","\u09aa\u09cd\u09b0\u09a4\u09cd\u09af\u0995\u09cd\u09b7"],normalized:"live"},socket:{primary:"\u09b8\u0995\u09c7\u099f",alternatives:["\u0993\u09af\u09bc\u09c7\u09ac\u09b8\u0995\u09c7\u099f"],normalized:"socket"},bind:{primary:"\u09ac\u09be\u0987\u09a8\u09cd\u09a1",alternatives:["bind"],normalized:"bind"},intercept:{primary:"\u0986\u099f\u0995\u09be\u0993",alternatives:["\u0987\u09a8\u09cd\u099f\u09be\u09b0\u09b8\u09c7\u09aa\u09cd\u099f","intercept"],normalized:"intercept"},worker:{primary:"\u0995\u09b0\u09cd\u09ae\u09c0",alternatives:["\u0993\u09af\u09bc\u09be\u09b0\u09cd\u0995\u09be\u09b0","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0987\u09ad\u09c7\u09a8\u09cd\u099f\u09b8\u09cb\u09b0\u09cd\u09b8"],normalized:"eventsource"}},tokenization:{particles:["\u0995\u09c7","\u09a4\u09c7","\u09a5\u09c7\u0995\u09c7","\u09b0","\u098f\u09b0","\u09a6\u09bf\u09af\u09bc\u09c7","\u099c\u09a8\u09cd\u09af","\u09aa\u09b0\u09cd\u09af\u09a8\u09cd\u09a4"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u09a4\u09c7",alternatives:["\u098f","\u09af\u0996\u09a8"],normalized:"on"},sourceMarker:{primary:"\u09a5\u09c7\u0995\u09c7",position:"after"},eventMarker:{primary:"\u09a4\u09c7",alternatives:["\u098f"],position:"after"},temporalMarkers:["\u09af\u0996\u09a8","\u09af\u0996\u09a8\u0987"]}}}}),Dt={};x(Dt,{germanProfile:()=>Vt});var Ft,Ht=b({"src/generators/profiles/german.ts"(){Vt={code:"de",name:"German",nativeName:"Deutsch",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"ich",it:"es",you:"du",result:"Ergebnis",event:"Ereignis",target:"Ziel",body:"K\u00f6rper",document:"dokument",window:"fenster",detail:"detail"},possessive:{marker:"",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mein",it:"sein",you:"dein"},keywords:{mein:"me",meine:"me",meinen:"me",dein:"you",deine:"you",deinen:"you",sein:"it",seine:"it",seinen:"it"}},roleMarkers:{destination:{primary:"auf",alternatives:["zu","in"],position:"before"},source:{primary:"von",alternatives:["aus"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"mit",position:"before"}},keywords:{toggle:{primary:"umschalten",alternatives:["wechseln"],normalized:"toggle"},add:{primary:"hinzuf\u00fcgen",normalized:"add"},remove:{primary:"entfernen",alternatives:["l\u00f6schen"],normalized:"remove"},put:{primary:"setzen",alternatives:["stellen","platzieren"],normalized:"put"},append:{primary:"anh\u00e4ngen",normalized:"append"},prepend:{primary:"voranstellen",normalized:"prepend"},take:{primary:"nehmen",normalized:"take"},make:{primary:"machen",alternatives:["erstellen","erzeugen"],normalized:"make"},clone:{primary:"klonen",alternatives:["duplizieren"],normalized:"clone"},swap:{primary:"austauschen",alternatives:["tauschen","vertauschen"],normalized:"swap"},morph:{primary:"verwandeln",alternatives:["transformieren"],normalized:"morph"},set:{primary:"festlegen",alternatives:["definieren"],normalized:"set"},get:{primary:"holen",alternatives:["bekommen","erhalten"],normalized:"get"},increment:{primary:"erh\u00f6hen",normalized:"increment"},decrement:{primary:"verringern",alternatives:["vermindern"],normalized:"decrement"},log:{primary:"protokollieren",alternatives:["ausgeben"],normalized:"log"},show:{primary:"zeigen",alternatives:["anzeigen"],normalized:"show"},hide:{primary:"verbergen",alternatives:["verstecken"],normalized:"hide"},transition:{primary:"\u00fcbergang",alternatives:["animieren"],normalized:"transition"},on:{primary:"bei",alternatives:["auf"],normalized:"on"},trigger:{primary:"ausl\u00f6sen",normalized:"trigger"},send:{primary:"senden",alternatives:["schicken"],normalized:"send"},focus:{primary:"Fokus",alternatives:["Fokuserhalt","fokussieren"],normalized:"focus"},blur:{primary:"Fokusverlust",alternatives:["verlassen","defokussieren","entfokussieren"],normalized:"blur"},empty:{primary:"leeren",alternatives:["leer"],normalized:"empty"},open:{primary:"\u00f6ffnen",alternatives:["oeffnen"],normalized:"open"},close:{primary:"schlie\u00dfen",alternatives:["schliessen"],normalized:"close"},select:{primary:"markieren",normalized:"select"},clear:{primary:"bereinigen",normalized:"clear"},reset:{primary:"zur\u00fccksetzen",alternatives:["zuruecksetzen"],normalized:"reset"},breakpoint:{primary:"haltepunkt",normalized:"breakpoint"},go:{primary:"gehen",alternatives:["navigieren"],normalized:"go"},scroll:{primary:"scrollen",normalized:"scroll"},push:{primary:"dr\u00fccken",alternatives:["push"],normalized:"push"},replace:{primary:"ersetzen",normalized:"replace"},process:{primary:"verarbeiten",normalized:"process"},wait:{primary:"warten",normalized:"wait"},fetch:{primary:"abrufen",alternatives:["laden"],normalized:"fetch"},settle:{primary:"stabilisieren",normalized:"settle"},if:{primary:"falls",alternatives:["sofern"],normalized:"if"},unless:{primary:"wennnicht",normalized:"unless"},when:{primary:"wenn",normalized:"when"},changes:{primary:"\u00e4ndert",normalized:"changes"},where:{primary:"wo",normalized:"where"},else:{primary:"sonst",alternatives:["ansonsten"],normalized:"else"},repeat:{primary:"wiederholen",normalized:"repeat"},for:{primary:"f\u00fcr",normalized:"for"},while:{primary:"solange",alternatives:["w\u00e4hrend"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"fortfahren",alternatives:["weiter"],normalized:"continue"},halt:{primary:"anhalten",alternatives:["stoppen"],normalized:"halt"},throw:{primary:"werfen",normalized:"throw"},call:{primary:"aufrufen",normalized:"call"},return:{primary:"zur\u00fcckgeben",normalized:"return"},then:{primary:"dann",alternatives:["danach","anschlie\u00dfend"],normalized:"then"},and:{primary:"und",alternatives:["sowie","auch"],normalized:"and"},is:{primary:"ist",normalized:"is"},matches:{primary:"passt",normalized:"matches"},exists:{primary:"existiert",normalized:"exists"},no:{primary:"kein",normalized:"no"},end:{primary:"ende",alternatives:["fertig"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asynchron",normalized:"async"},tell:{primary:"sagen",normalized:"tell"},default:{primary:"standard",normalized:"default"},init:{primary:"Initialisierung",alternatives:["initialisieren"],normalized:"init"},behavior:{primary:"verhalten",normalized:"behavior"},install:{primary:"installieren",normalized:"install"},measure:{primary:"messen",normalized:"measure"},beep:{primary:"piepton",normalized:"beep"},break:{primary:"unterbrechen",normalized:"break"},copy:{primary:"kopieren",normalized:"copy"},exit:{primary:"beenden",normalized:"exit"},pick:{primary:"ausw\u00e4hlen",normalized:"pick"},render:{primary:"rendern",normalized:"render"},into:{primary:"hinein",normalized:"into"},before:{primary:"vor",normalized:"before"},after:{primary:"nach",normalized:"after"},click:{primary:"Klick",alternatives:["Klicken"],normalized:"click"},hover:{primary:"Hover",alternatives:["Schweben"],normalized:"hover"},submit:{primary:"Absenden",alternatives:["Senden"],normalized:"submit"},input:{primary:"Eingabe",normalized:"input"},change:{primary:"\u00c4nderung",alternatives:["\u00c4ndern"],normalized:"change"},resize:{primary:"Gr\u00f6\u00dfen\u00e4nderung",alternatives:["gr\u00f6\u00dfen\u00e4nderung","gr\u00f6ssen\u00e4nderung","Gr\u00f6\u00dfe \u00e4ndern","gr\u00f6\u00dfe\u00e4ndern"],normalized:"resize"},until:{primary:"bis",normalized:"until"},event:{primary:"Ereignis",alternatives:["Event"],normalized:"event"},from:{primary:"von",alternatives:["aus"],normalized:"from"},connect:{primary:"verbinden",alternatives:["Verbindung"],normalized:"connect"},stream:{primary:"stream",alternatives:["Strom"],normalized:"stream"},live:{primary:"direkt",alternatives:["live","echtzeit"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"binden",alternatives:["verknuepfen","bind"],normalized:"bind"},intercept:{primary:"abfangen",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"arbeiter",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["ereignisquelle"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"bei",alternatives:["auf"],normalized:"on"},sourceMarker:{primary:"von",alternatives:["aus"],position:"before"},conditionalKeyword:{primary:"wenn",alternatives:["falls"]},eventMarker:{primary:"bei",alternatives:["beim"],position:"before"},temporalMarkers:["wenn","bei"]}}}}),Ut={};x(Ut,{englishProfile:()=>Ft});var Gt,Zt=b({"src/generators/profiles/english.ts"(){Ft={code:"en",name:"English",nativeName:"English",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!1},references:{me:"me",it:"it",you:"you",result:"result",event:"event",target:"target",body:"body",document:"document",window:"window",detail:"detail"},possessive:{marker:"'s",markerPosition:"after-object",specialForms:{me:"my",it:"its",you:"your"},keywords:{my:"me",your:"you",its:"it"}},roleMarkers:{destination:{primary:"on",alternatives:["to","from"],position:"before"},source:{primary:"from",position:"before"},patient:{primary:"",position:"before"},style:{primary:"with",alternatives:["by","using"],position:"before"},responseType:{primary:"as",position:"before"},method:{primary:"via",alternatives:["using"],position:"before"}},keywords:{toggle:{primary:"toggle"},add:{primary:"add"},remove:{primary:"remove"},put:{primary:"put"},append:{primary:"append"},prepend:{primary:"prepend"},take:{primary:"take"},make:{primary:"make"},clone:{primary:"clone"},swap:{primary:"swap"},morph:{primary:"morph"},set:{primary:"set"},get:{primary:"get"},increment:{primary:"increment"},decrement:{primary:"decrement"},log:{primary:"log"},show:{primary:"show"},hide:{primary:"hide"},transition:{primary:"transition"},on:{primary:"on"},trigger:{primary:"trigger"},send:{primary:"send"},focus:{primary:"focus"},blur:{primary:"blur"},empty:{primary:"empty",normalized:"empty"},open:{primary:"open",normalized:"open"},close:{primary:"close",normalized:"close"},select:{primary:"select",normalized:"select"},clear:{primary:"clear",normalized:"clear"},reset:{primary:"reset",normalized:"reset"},breakpoint:{primary:"breakpoint",normalized:"breakpoint"},go:{primary:"go"},scroll:{primary:"scroll",normalized:"scroll"},push:{primary:"push",normalized:"push"},replace:{primary:"replace",normalized:"replace"},process:{primary:"process",normalized:"process"},wait:{primary:"wait"},fetch:{primary:"fetch"},settle:{primary:"settle"},if:{primary:"if"},when:{primary:"when",normalized:"when"},changes:{primary:"changes",normalized:"changes"},where:{primary:"where",normalized:"where"},else:{primary:"else"},repeat:{primary:"repeat"},for:{primary:"for"},while:{primary:"while"},continue:{primary:"continue"},halt:{primary:"halt"},throw:{primary:"throw"},call:{primary:"call"},return:{primary:"return"},then:{primary:"then"},and:{primary:"and"},end:{primary:"end"},js:{primary:"js"},async:{primary:"async"},tell:{primary:"tell"},default:{primary:"default"},init:{primary:"init"},behavior:{primary:"behavior"},install:{primary:"install"},measure:{primary:"measure"},beep:{primary:"beep"},break:{primary:"break"},copy:{primary:"copy"},exit:{primary:"exit"},pick:{primary:"pick"},render:{primary:"render"},into:{primary:"into"},before:{primary:"before"},after:{primary:"after"},until:{primary:"until"},event:{primary:"event"},from:{primary:"from"},connect:{primary:"connect",normalized:"connect"},stream:{primary:"stream",normalized:"stream"},live:{primary:"live",normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"bind",normalized:"bind"},eventsource:{primary:"eventsource",normalized:"eventsource"},worker:{primary:"worker",normalized:"worker"},intercept:{primary:"intercept",normalized:"intercept"}}}}}),Yt={};x(Yt,{spanishProfile:()=>Gt});var Xt,Qt=b({"src/generators/profiles/spanish.ts"(){Gt={code:"es",name:"Spanish",nativeName:"Espa\u00f1ol",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"yo",it:"ello",you:"t\u00fa",result:"resultado",event:"evento",target:"objetivo",body:"cuerpo",document:"documento",window:"ventana",detail:"detalle"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mi",it:"su",you:"tu"},keywords:{mi:"me",tu:"you",su:"it"}},roleMarkers:{destination:{primary:"en",alternatives:["sobre","a","hacia"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:["conmutar","toggle"],normalized:"toggle"},add:{primary:"agregar",alternatives:["a\u00f1adir"],normalized:"add"},remove:{primary:"quitar",alternatives:["eliminar","remover","sacar","borrar"],normalized:"remove"},put:{primary:"poner",alternatives:["colocar","pon"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"anteponer",normalized:"prepend"},take:{primary:"tomar",normalized:"take"},make:{primary:"hacer",alternatives:["crear"],normalized:"make"},clone:{primary:"clonar",alternatives:["duplicar"],normalized:"clone"},swap:{primary:"intercambiar",alternatives:["permutar"],normalized:"swap"},morph:{primary:"transformar",alternatives:["convertir"],normalized:"morph"},set:{primary:"establecer",alternatives:["fijar","definir","establece"],normalized:"set"},get:{primary:"obtener",alternatives:["conseguir","obt\u00e9n"],normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["disminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["ense\u00f1ar","muestra"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder"],normalized:"hide"},transition:{primary:"transici\u00f3n",alternatives:["animar"],normalized:"transition"},on:{primary:"en",alternatives:["al"],normalized:"on"},trigger:{primary:"disparar",alternatives:["activar"],normalized:"trigger"},send:{primary:"enviar",alternatives:["env\u00eda"],normalized:"send"},focus:{primary:"enfoque",alternatives:["enfocar"],normalized:"focus"},blur:{primary:"p\u00e9rdida de foco",alternatives:["perdida de foco","desenfoque","desenfocar"],normalized:"blur"},open:{primary:"abrir",normalized:"open"},close:{primary:"cerrar",normalized:"close"},select:{primary:"seleccionar",normalized:"select"},clear:{primary:"limpiar",normalized:"clear"},reset:{primary:"reiniciar",alternatives:["restablecer"],normalized:"reset"},breakpoint:{primary:"punto-interrupci\u00f3n",alternatives:["punto-interrupcion"],normalized:"breakpoint"},click:{primary:"clic",alternatives:["hacer clic","click"],normalized:"click"},resize:{primary:"cambio de tama\u00f1o",alternatives:["cambio de tamano","redimensionar"],normalized:"resize"},hover:{primary:"sobrevolar",alternatives:["pasar por encima"],normalized:"hover"},submit:{primary:"env\u00edo",alternatives:["envio","someter"],normalized:"submit"},input:{primary:"entrada",alternatives:["introducir"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiar"],normalized:"change"},load:{primary:"carga",alternatives:["cargar"],normalized:"load"},scroll:{primary:"desplazamiento",alternatives:["desplazar"],normalized:"scroll"},keydown:{primary:"tecla pulsada",alternatives:["tecla presionada","tecla abajo"],normalized:"keydown"},keyup:{primary:"tecla soltada",alternatives:["tecla liberada","tecla arriba"],normalized:"keyup"},mouseover:{primary:"rat\u00f3n encima",alternatives:["raton encima","mouse encima"],normalized:"mouseover"},mouseout:{primary:"rat\u00f3n fuera",alternatives:["raton fuera","mouse fuera"],normalized:"mouseout"},mousedown:{primary:"rat\u00f3n pulsado",alternatives:["raton pulsado","mouse presionado","rat\u00f3n abajo","raton abajo","rat\u00f3nabajo"],normalized:"mousedown"},mouseup:{primary:"rat\u00f3n soltado",alternatives:["raton soltado","mouse soltado","rat\u00f3n arriba","raton arriba","rat\u00f3narriba"],normalized:"mouseup"},go:{primary:"ir",alternatives:["navegar","ve"],normalized:"go"},push:{primary:"empujar",alternatives:["push"],normalized:"push"},replace:{primary:"reemplazar",alternatives:["sustituir"],normalized:"replace"},process:{primary:"procesar",normalized:"process"},wait:{primary:"esperar",normalized:"wait"},fetch:{primary:"buscar",alternatives:["recuperar"],normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"si",normalized:"if"},unless:{primary:"menos",alternatives:["a menos que","salvo"],normalized:"unless"},when:{primary:"cuando",normalized:"when"},changes:{primary:"cambia",normalized:"changes"},where:{primary:"donde",normalized:"where"},else:{primary:"sino",alternatives:["de lo contrario"],normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"mientras",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"detener",alternatives:["parar"],normalized:"halt"},throw:{primary:"lanzar",alternatives:["arrojar"],normalized:"throw"},call:{primary:"llamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"entonces",alternatives:["luego"],normalized:"then"},and:{primary:"y",alternatives:["adem\u00e1s","tambi\u00e9n"],normalized:"and"},or:{primary:"o",normalized:"or"},not:{primary:"no",normalized:"not"},is:{primary:"es",normalized:"is"},exists:{primary:"existe",normalized:"exists"},empty:{primary:"vac\u00edo",alternatives:["vacio"],normalized:"empty"},matches:{primary:"coincide",normalized:"matches"},no:{primary:"ning\u00fan",normalized:"no"},end:{primary:"fin",alternatives:["final","terminar"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"as\u00edncrono",alternatives:["asincrono"],normalized:"async"},tell:{primary:"decir",normalized:"tell"},default:{primary:"predeterminar",alternatives:["por defecto"],normalized:"default"},init:{primary:"inicio",alternatives:["inicializaci\u00f3n","iniciar","inicializar"],normalized:"init"},behavior:{primary:"comportamiento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"pitido",normalized:"beep"},break:{primary:"romper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"salir",normalized:"exit"},pick:{primary:"escoger",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},first:{primary:"primero",alternatives:["primera"],normalized:"first"},last:{primary:"\u00faltimo",alternatives:["ultima"],normalized:"last"},next:{primary:"siguiente",normalized:"next"},previous:{primary:"anterior",normalized:"previous"},closest:{primary:"cercano",normalized:"closest"},parent:{primary:"padre",normalized:"parent"},into:{primary:"dentro",alternatives:["adentro","dentro de"],normalized:"into"},before:{primary:"antes",alternatives:["antes de"],normalized:"before"},after:{primary:"despu\u00e9s",alternatives:["despues","despu\u00e9s de","despues de"],normalized:"after"},out:{primary:"fuera",alternatives:["fuera de"],normalized:"out"},until:{primary:"hasta",alternatives:["hasta que"],normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"},connect:{primary:"conectar",alternatives:["conectarse"],normalized:"connect"},stream:{primary:"transmitir",alternatives:["flujo"],normalized:"stream"},live:{primary:"en-vivo",alternatives:["vivo","directo"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"vincular",alternatives:["enlazar","bind"],normalized:"bind"},intercept:{primary:"interceptar",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"trabajador",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["fuente-de-eventos"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"al",alternatives:["cuando","en"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},eventMarker:{primary:"al",alternatives:["cuando","en"],position:"before"},temporalMarkers:["cuando","al"]}}}}),Jt={};x(Jt,{frenchProfile:()=>Xt});var er,tr=b({"src/generators/profiles/french.ts"(){Xt={code:"fr",name:"French",nativeName:"Fran\u00e7ais",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!1},references:{me:"moi",it:"il",you:"toi",result:"r\u00e9sultat",event:"\u00e9v\u00e9nement",target:"cible",body:"corps",document:"document",window:"fen\u00eatre",detail:"d\u00e9tail"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"ma",it:"sa",you:"ta"},keywords:{mon:"me",ma:"me",mes:"me",ton:"you",ta:"you",tes:"you",son:"it",sa:"it",ses:"it"}},roleMarkers:{destination:{primary:"sur",alternatives:["\u00e0","dans"],position:"before"},source:{primary:"de",alternatives:["depuis"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"avec",position:"before"}},keywords:{toggle:{primary:"basculer",alternatives:["alterner"],normalized:"toggle"},add:{primary:"ajouter",normalized:"add"},remove:{primary:"supprimer",alternatives:["enlever","retirer","retire"],normalized:"remove"},put:{primary:"mettre",alternatives:["placer","mets"],normalized:"put"},append:{primary:"annexer",normalized:"append"},prepend:{primary:"pr\u00e9fixer",normalized:"prepend"},take:{primary:"prendre",normalized:"take"},make:{primary:"faire",alternatives:["cr\u00e9er"],normalized:"make"},clone:{primary:"cloner",alternatives:["dupliquer"],normalized:"clone"},swap:{primary:"\u00e9changer",alternatives:["permuter"],normalized:"swap"},morph:{primary:"transformer",alternatives:["m\u00e9tamorphoser"],normalized:"morph"},set:{primary:"d\u00e9finir",alternatives:["\u00e9tablir"],normalized:"set"},get:{primary:"obtenir",alternatives:["obtiens"],normalized:"get"},increment:{primary:"incr\u00e9menter",alternatives:["augmenter"],normalized:"increment"},decrement:{primary:"d\u00e9cr\u00e9menter",alternatives:["diminuer"],normalized:"decrement"},log:{primary:"enregistrer",alternatives:["journaliser"],normalized:"log"},show:{primary:"montrer",alternatives:["afficher","montre"],normalized:"show"},hide:{primary:"cacher",alternatives:["masquer"],normalized:"hide"},transition:{primary:"transition",alternatives:["animer"],normalized:"transition"},on:{primary:"sur",alternatives:["lors"],normalized:"on"},trigger:{primary:"d\u00e9clencher",normalized:"trigger"},send:{primary:"envoyer",alternatives:["envoie"],normalized:"send"},focus:{primary:"focaliser",alternatives:["concentrer"],normalized:"focus"},blur:{primary:"perte de focus",alternatives:["d\u00e9focaliser"],normalized:"blur"},empty:{primary:"vider",alternatives:["vide"],normalized:"empty"},open:{primary:"ouvrir",normalized:"open"},close:{primary:"fermer",normalized:"close"},select:{primary:"s\u00e9lectionner",alternatives:["selectionner"],normalized:"select"},clear:{primary:"effacer",normalized:"clear"},reset:{primary:"r\u00e9initialiser",alternatives:["reinitialiser"],normalized:"reset"},breakpoint:{primary:"point-arr\u00eat",alternatives:["point-arret"],normalized:"breakpoint"},go:{primary:"aller",alternatives:["naviguer","va"],normalized:"go"},scroll:{primary:"d\u00e9filement",alternatives:["defilement","d\u00e9filer","faire-d\u00e9filer"],normalized:"scroll"},push:{primary:"pousser",normalized:"push"},replace:{primary:"remplacer",normalized:"replace"},process:{primary:"traiter",normalized:"process"},wait:{primary:"attendre",normalized:"wait"},fetch:{primary:"chercher",alternatives:["r\u00e9cup\u00e9rer","r\u00e9cup\u00e8re"],normalized:"fetch"},settle:{primary:"stabiliser",normalized:"settle"},if:{primary:"si",normalized:"if"},unless:{primary:"saufsi",normalized:"unless"},when:{primary:"quand",normalized:"when"},changes:{primary:"change",normalized:"changes"},where:{primary:"o\u00f9",normalized:"where"},else:{primary:"sinon",normalized:"else"},repeat:{primary:"r\u00e9p\u00e9ter",normalized:"repeat"},for:{primary:"pour",normalized:"for"},while:{primary:"pendant",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuer",normalized:"continue"},halt:{primary:"arr\u00eater",alternatives:["stopper"],normalized:"halt"},throw:{primary:"lancer",normalized:"throw"},call:{primary:"appeler",normalized:"call"},return:{primary:"retourner",alternatives:["renvoyer"],normalized:"return"},then:{primary:"puis",alternatives:["ensuite","alors"],normalized:"then"},and:{primary:"et",alternatives:["aussi","\u00e9galement"],normalized:"and"},matches:{primary:"correspond",normalized:"matches"},exists:{primary:"existe",normalized:"exists"},is:{primary:"est",normalized:"is"},no:{primary:"aucun",normalized:"no"},end:{primary:"fin",alternatives:["terminer","finir"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asynchrone",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"d\u00e9faut",normalized:"default"},init:{primary:"initialiser",normalized:"init"},behavior:{primary:"comportement",normalized:"behavior"},install:{primary:"installer",normalized:"install"},measure:{primary:"mesurer",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"interrompre",normalized:"break"},copy:{primary:"copier",normalized:"copy"},exit:{primary:"sortir",normalized:"exit"},pick:{primary:"choisir",normalized:"pick"},render:{primary:"rendu",normalized:"render"},into:{primary:"dans",normalized:"into"},before:{primary:"avant",normalized:"before"},after:{primary:"apr\u00e8s",normalized:"after"},click:{primary:"clic",alternatives:["clique"],normalized:"click"},resize:{primary:"redimensionnement",alternatives:["redimensionner"],normalized:"resize"},hover:{primary:"survol",alternatives:["survoler"],normalized:"hover"},submit:{primary:"soumission",alternatives:["soumettre"],normalized:"submit"},input:{primary:"saisie",alternatives:["entr\u00e9e"],normalized:"input"},change:{primary:"changement",alternatives:["modifier","changer"],normalized:"change"},load:{primary:"charger",alternatives:["chargement"],normalized:"load"},until:{primary:"jusqu'\u00e0",alternatives:["jusque"],normalized:"until"},event:{primary:"\u00e9v\u00e9nement",normalized:"event"},from:{primary:"de",alternatives:["depuis"],normalized:"from"},connect:{primary:"connecter",alternatives:["connexion"],normalized:"connect"},stream:{primary:"flux",alternatives:["streaming"],normalized:"stream"},live:{primary:"en-direct",alternatives:["direct","vif"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"lier",alternatives:["relier","bind"],normalized:"bind"},intercept:{primary:"intercepter",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"travailleur",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["source-d-evenements"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"sur",alternatives:["lors"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["depuis"],position:"before"},conditionalKeyword:{primary:"quand",alternatives:["lorsque"]},eventMarker:{primary:"au",alternatives:["lors du","lors de","sur"],position:"before"},temporalMarkers:["quand","lorsque"]}}}}),rr={};x(rr,{hebrewProfile:()=>er});var ir,ar=b({"src/generators/profiles/he.ts"(){er={code:"he",name:"Hebrew",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea",direction:"rtl",script:"hebrew",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"second",subjectDrop:!0},references:{me:"\u05d0\u05e0\u05d9",it:"\u05d6\u05d4",you:"\u05d0\u05ea\u05d4",result:"\u05ea\u05d5\u05e6\u05d0\u05d4",event:"\u05d0\u05d9\u05e8\u05d5\u05e2",target:"\u05d9\u05e2\u05d3",body:"\u05d2\u05d5\u05e3"},possessive:{marker:"\u05e9\u05dc",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"\u05e9\u05dc\u05d9",it:"\u05e9\u05dc\u05d5",you:"\u05e9\u05dc\u05da"},keywords:{"\u05e9\u05dc\u05d9":"me","\u05e9\u05dc\u05da":"you","\u05e9\u05dc\u05d5":"it","\u05e9\u05dc\u05d4":"it"}},roleMarkers:{destination:{primary:"\u05e2\u05dc",alternatives:["\u05d1","\u05d0\u05dc","\u05dc"],position:"before"},source:{primary:"\u05de",alternatives:["\u05de\u05df","\u05de\u05d0\u05ea"],position:"before"},patient:{primary:"\u05d0\u05ea",position:"before"},style:{primary:"\u05e2\u05dd",alternatives:["\u05d1"],position:"before"}},keywords:{toggle:{primary:"\u05de\u05ea\u05d2",alternatives:["\u05d4\u05d3\u05dc\u05e7 \u05db\u05d1\u05d4"],normalized:"toggle"},add:{primary:"\u05d4\u05d5\u05e1\u05e3",normalized:"add"},remove:{primary:"\u05d4\u05e1\u05e8",alternatives:["\u05de\u05d7\u05e7","\u05d4\u05d5\u05e8\u05d3"],normalized:"remove"},put:{primary:"\u05e9\u05d9\u05dd",alternatives:["\u05d4\u05e0\u05d7","\u05d4\u05db\u05e0\u05e1"],normalized:"put"},append:{primary:"\u05e6\u05e8\u05e3",alternatives:["\u05d4\u05d5\u05e1\u05e3 \u05d1\u05e1\u05d5\u05e3"],normalized:"append"},prepend:{primary:"\u05d4\u05e7\u05d3\u05dd",alternatives:["\u05d4\u05d5\u05e1\u05e3 \u05d1\u05d4\u05ea\u05d7\u05dc\u05d4"],normalized:"prepend"},take:{primary:"\u05e7\u05d7",normalized:"take"},make:{primary:"\u05e6\u05d5\u05e8",alternatives:["\u05d4\u05db\u05df"],normalized:"make"},clone:{primary:"\u05e9\u05db\u05e4\u05dc",normalized:"clone"},swap:{primary:"\u05d4\u05d7\u05dc\u05e3",alternatives:["\u05d4\u05de\u05e8"],normalized:"swap"},morph:{primary:"\u05d4\u05e4\u05d5\u05da",alternatives:["\u05e2\u05e6\u05d1 \u05de\u05d7\u05d3\u05e9"],normalized:"morph"},set:{primary:"\u05e7\u05d1\u05e2",alternatives:["\u05d4\u05d2\u05d3\u05e8"],normalized:"set"},get:{primary:"\u05e7\u05d1\u05dc",alternatives:["\u05d4\u05e9\u05d2"],normalized:"get"},increment:{primary:"\u05d4\u05d2\u05d3\u05dc",alternatives:["\u05d4\u05d5\u05e1\u05e3 \u05d0\u05d7\u05d3"],normalized:"increment"},decrement:{primary:"\u05d4\u05e7\u05d8\u05df",alternatives:["\u05d4\u05e4\u05d7\u05ea"],normalized:"decrement"},log:{primary:"\u05e8\u05e9\u05d5\u05dd",normalized:"log"},show:{primary:"\u05d4\u05e8\u05d0\u05d4",alternatives:["\u05d4\u05e6\u05d2"],normalized:"show"},hide:{primary:"\u05d4\u05e1\u05ea\u05e8",alternatives:["\u05d4\u05d7\u05d1\u05d0"],normalized:"hide"},transition:{primary:"\u05de\u05e2\u05d1\u05e8",alternatives:["\u05d4\u05e0\u05e4\u05e9"],normalized:"transition"},on:{primary:"\u05d1",normalized:"on"},trigger:{primary:"\u05d4\u05e4\u05e2\u05dc",alternatives:["\u05e9\u05d2\u05e8"],normalized:"trigger"},send:{primary:"\u05e9\u05dc\u05d7",normalized:"send"},focus:{primary:"\u05de\u05e7\u05d3",alternatives:["\u05d4\u05ea\u05de\u05e7\u05d3"],normalized:"focus"},blur:{primary:"\u05d8\u05e9\u05d8\u05e9",alternatives:["\u05d4\u05e1\u05e8 \u05de\u05d9\u05e7\u05d5\u05d3"],normalized:"blur"},empty:{primary:"\u05e8\u05d5\u05e7\u05df",normalized:"empty"},open:{primary:"\u05e4\u05ea\u05d7",normalized:"open"},close:{primary:"\u05e1\u05d2\u05d5\u05e8",normalized:"close"},select:{primary:"\u05e1\u05de\u05df",normalized:"select"},clear:{primary:"\u05e0\u05e7\u05d4",normalized:"clear"},reset:{primary:"\u05d0\u05e4\u05e1",normalized:"reset"},breakpoint:{primary:"\u05e0\u05e7\u05d5\u05d3\u05ea-\u05e2\u05e6\u05d9\u05e8\u05d4",alternatives:["breakpoint"],normalized:"breakpoint"},go:{primary:"\u05dc\u05da",alternatives:["\u05e0\u05d5\u05d5\u05d8"],normalized:"go"},scroll:{primary:"\u05d2\u05dc\u05d5\u05dc",normalized:"scroll"},push:{primary:"\u05d3\u05d7\u05d5\u05e3",alternatives:["\u05d4\u05d5\u05e1\u05e3-\u05dc\u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d4"],normalized:"push"},replace:{primary:"\u05d4\u05d7\u05dc\u05e3_\u05db\u05ea\u05d5\u05d1\u05ea",alternatives:["\u05e9\u05e0\u05d4_\u05db\u05ea\u05d5\u05d1\u05ea"],normalized:"replace"},process:{primary:"\u05e2\u05d1\u05d3",alternatives:["\u05e2\u05d9\u05d1\u05d5\u05d3"],normalized:"process"},wait:{primary:"\u05d7\u05db\u05d4",alternatives:["\u05d4\u05de\u05ea\u05df"],normalized:"wait"},fetch:{primary:"\u05d4\u05d1\u05d0",alternatives:["\u05d8\u05e2\u05df"],normalized:"fetch"},settle:{primary:"\u05d4\u05ea\u05d9\u05d9\u05e6\u05d1",normalized:"settle"},if:{primary:"\u05d0\u05dd",normalized:"if"},unless:{primary:"\u05d0\u05dc\u05d0",normalized:"unless"},when:{primary:"\u05db\u05d0\u05e9\u05e8",alternatives:["\u05db\u05e9"],normalized:"when"},changes:{primary:"\u05de\u05e9\u05ea\u05e0\u05d4",normalized:"changes"},where:{primary:"\u05d0\u05d9\u05e4\u05d4",alternatives:["\u05d4\u05d9\u05db\u05df"],normalized:"where"},else:{primary:"\u05d0\u05d7\u05e8\u05ea",alternatives:["\u05d0\u05dd \u05dc\u05d0"],normalized:"else"},repeat:{primary:"\u05d7\u05d6\u05d5\u05e8",normalized:"repeat"},for:{primary:"\u05e2\u05d1\u05d5\u05e8",alternatives:["\u05dc\u05db\u05dc"],normalized:"for"},while:{primary:"\u05db\u05dc \u05e2\u05d5\u05d3",alternatives:["\u05d1\u05d6\u05de\u05df"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\u05d4\u05de\u05e9\u05da",normalized:"continue"},halt:{primary:"\u05e2\u05e6\u05d5\u05e8",alternatives:["\u05d4\u05e4\u05e1\u05e7"],normalized:"halt"},throw:{primary:"\u05d6\u05e8\u05d5\u05e7",normalized:"throw"},call:{primary:"\u05e7\u05e8\u05d0",alternatives:["\u05d6\u05de\u05df"],normalized:"call"},return:{primary:"\u05d4\u05d7\u05d6\u05e8",normalized:"return"},then:{primary:"\u05d0\u05d6",alternatives:["\u05d5\u05d0\u05d6"],normalized:"then"},and:{primary:"\u05d5\u05d2\u05dd",alternatives:["\u05d2\u05dd"],normalized:"and"},end:{primary:"\u05e1\u05d5\u05e3",alternatives:["\u05e1\u05d9\u05d5\u05dd"],normalized:"end"},js:{primary:"js",alternatives:["\u05d2\u05f3\u05d0\u05d5\u05d5\u05d4\u05e1\u05e7\u05e8\u05d9\u05e4\u05d8"],normalized:"js"},async:{primary:"\u05d0\u05e1\u05d9\u05e0\u05db\u05e8\u05d5\u05e0\u05d9",normalized:"async"},tell:{primary:"\u05d0\u05de\u05d5\u05e8",normalized:"tell"},default:{primary:"\u05d1\u05e8\u05d9\u05e8\u05ea \u05de\u05d7\u05d3\u05dc",normalized:"default"},init:{primary:"\u05d0\u05ea\u05d7\u05dc",alternatives:["\u05d4\u05ea\u05d7\u05dc"],normalized:"init"},behavior:{primary:"\u05d4\u05ea\u05e0\u05d4\u05d2\u05d5\u05ea",normalized:"behavior"},install:{primary:"\u05d4\u05ea\u05e7\u05df",normalized:"install"},measure:{primary:"\u05de\u05d3\u05d5\u05d3",normalized:"measure"},beep:{primary:"\u05d1\u05d9\u05e4",normalized:"beep"},break:{primary:"\u05e9\u05d1\u05d5\u05e8",normalized:"break"},copy:{primary:"\u05d4\u05e2\u05ea\u05e7",normalized:"copy"},exit:{primary:"\u05e6\u05d0",normalized:"exit"},pick:{primary:"\u05d1\u05d7\u05e8",normalized:"pick"},render:{primary:"\u05e8\u05e0\u05d3\u05e8",normalized:"render"},into:{primary:"\u05dc\u05ea\u05d5\u05da",alternatives:["\u05d0\u05dc"],normalized:"into"},before:{primary:"\u05dc\u05e4\u05e0\u05d9",normalized:"before"},after:{primary:"\u05d0\u05d7\u05e8\u05d9",normalized:"after"},click:{primary:"\u05dc\u05d7\u05d9\u05e6\u05d4",alternatives:["\u05e7\u05dc\u05d9\u05e7"],normalized:"click"},hover:{primary:"\u05e8\u05d9\u05d7\u05d5\u05e3",normalized:"hover"},submit:{primary:"\u05e9\u05dc\u05d9\u05d7\u05d4",alternatives:["\u05d4\u05d2\u05e9\u05d4"],normalized:"submit"},input:{primary:"\u05e7\u05dc\u05d8",alternatives:["\u05d4\u05d6\u05e0\u05d4"],normalized:"input"},change:{primary:"\u05e9\u05d9\u05e0\u05d5\u05d9",alternatives:["\u05e2\u05d3\u05db\u05d5\u05df"],normalized:"change"},until:{primary:"\u05e2\u05d3",normalized:"until"},event:{primary:"\u05d0\u05d9\u05e8\u05d5\u05e2",normalized:"event"},from:{primary:"\u05de",alternatives:["\u05de\u05d0\u05ea"],normalized:"from"},connect:{primary:"\u05d4\u05ea\u05d7\u05d1\u05e8",alternatives:["\u05d7\u05d1\u05e8","\u05d4\u05ea\u05d7\u05d1\u05e8\u05d5\u05ea"],normalized:"connect"},stream:{primary:"\u05d4\u05d6\u05e8\u05dd",alternatives:["\u05e1\u05d8\u05e8\u05d9\u05dd","\u05e9\u05d9\u05d3\u05d5\u05e8"],normalized:"stream"},live:{primary:"\u05d7\u05d9",alternatives:["\u05d1\u05d6\u05de\u05df-\u05d0\u05de\u05ea","\u05dc\u05d9\u05d9\u05d1"],normalized:"live"},socket:{primary:"\u05e9\u05e7\u05e2",alternatives:["\u05e1\u05d5\u05e7\u05d8","\u05d5\u05d5\u05d1-\u05e1\u05d5\u05e7\u05d8","socket"],normalized:"socket"},bind:{primary:"\u05e7\u05e9\u05d5\u05e8",alternatives:["\u05d0\u05d2\u05d3","bind"],normalized:"bind"},intercept:{primary:"\u05d9\u05d9\u05e8\u05d8",alternatives:["\u05d9\u05d9\u05e8\u05d5\u05d8","intercept"],normalized:"intercept"},worker:{primary:"\u05e2\u05d5\u05d1\u05d3",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u05de\u05e7\u05d5\u05e8-\u05d0\u05d9\u05e8\u05d5\u05e2\u05d9\u05dd"],normalized:"eventsource"}},tokenization:{prefixes:["\u05d4","\u05d5","\u05d1","\u05db","\u05dc","\u05de","\u05e9"]},eventHandler:{keyword:{primary:"\u05d1",normalized:"on"},sourceMarker:{primary:"\u05de",alternatives:["\u05de\u05d0\u05ea"],position:"before"},conditionalKeyword:{primary:"\u05db\u05d0\u05e9\u05e8",alternatives:["\u05db\u05e9","\u05d0\u05dd"]},eventMarker:{primary:"\u05d1",alternatives:["\u05db\u05e9"],position:"before"},temporalMarkers:["\u05db\u05d0\u05e9\u05e8","\u05db\u05e9"]}}}}),nr={};x(nr,{hindiProfile:()=>ir});var or,sr=b({"src/generators/profiles/hindi.ts"(){ir={code:"hi",name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940",direction:"ltr",script:"devanagari",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"end",suffixes:["\u0947\u0902","\u093e","\u0940","\u0947","\u094b"],subjectDrop:!0},references:{me:"\u092e\u0948\u0902",it:"\u092f\u0939",you:"\u0906\u092a",result:"\u092a\u0930\u093f\u0923\u093e\u092e",event:"\u0918\u091f\u0928\u093e",target:"\u0932\u0915\u094d\u0937\u094d\u092f",body:"\u092c\u0949\u0921\u0940",document:"\u0926\u0938\u094d\u0924\u093e\u0935\u0947\u091c\u093c",window:"\u0935\u093f\u0902\u0921\u094b",detail:"\u0935\u093f\u0935\u0930\u0923"},possessive:{marker:"\u0915\u093e",markerPosition:"between",keywords:{"\u092e\u0947\u0930\u093e":"me","\u092e\u0947\u0930\u0940":"me","\u092e\u0947\u0930\u0947":"me","\u0924\u0947\u0930\u093e":"you","\u0924\u0947\u0930\u0940":"you","\u0924\u0947\u0930\u0947":"you","\u0906\u092a\u0915\u093e":"you","\u0906\u092a\u0915\u0940":"you","\u0906\u092a\u0915\u0947":"you","\u0909\u0938\u0915\u093e":"it","\u0909\u0938\u0915\u0940":"it","\u0909\u0938\u0915\u0947":"it","\u0907\u0938\u0915\u093e":"it","\u0907\u0938\u0915\u0940":"it","\u0907\u0938\u0915\u0947":"it"}},roleMarkers:{patient:{primary:"\u0915\u094b",position:"after"},destination:{primary:"\u092e\u0947\u0902",alternatives:["\u092a\u0930"],position:"after"},source:{primary:"\u0938\u0947",position:"after"},style:{primary:"\u0938\u0947",position:"after"},event:{primary:"\u092a\u0930",position:"after"}},keywords:{toggle:{primary:"\u091f\u0949\u0917\u0932",alternatives:["\u092c\u0926\u0932\u0947\u0902","\u092c\u0926\u0932"],normalized:"toggle"},add:{primary:"\u091c\u094b\u0921\u093c\u0947\u0902",alternatives:["\u091c\u094b\u0921\u093c"],normalized:"add"},remove:{primary:"\u0939\u091f\u093e\u090f\u0902",alternatives:["\u0939\u091f\u093e","\u092e\u093f\u091f\u093e\u090f\u0902"],normalized:"remove"},put:{primary:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093e\u0932\u0947\u0902","\u0921\u093e\u0932"],normalized:"put"},append:{primary:"\u0938\u0902\u0932\u0917\u094d\u0928",alternatives:[],normalized:"append"},prepend:{primary:"\u091c\u094b\u0921\u093c\u0947\u0902_\u0936\u0941\u0930\u0942",alternatives:[],normalized:"prepend"},take:{primary:"\u0932\u0947\u0902",alternatives:["\u0932\u0947"],normalized:"take"},make:{primary:"\u092c\u0928\u093e\u090f\u0902",alternatives:["\u092c\u0928\u093e"],normalized:"make"},clone:{primary:"\u0915\u094d\u0932\u094b\u0928",alternatives:["\u092a\u094d\u0930\u0924\u093f\u0932\u093f\u092a\u093f"],normalized:"clone"},swap:{primary:"\u0935\u093f\u0928\u093f\u092e\u092f",alternatives:[],normalized:"swap"},morph:{primary:"\u0930\u0942\u092a\u093e\u0902\u0924\u0930",alternatives:[],normalized:"morph"},set:{primary:"\u0938\u0947\u091f",alternatives:["\u0928\u093f\u0930\u094d\u0927\u093e\u0930\u093f\u0924"],normalized:"set"},get:{primary:"\u092a\u094d\u0930\u093e\u092a\u094d\u0924",alternatives:["\u092a\u093e\u090f\u0902"],normalized:"get"},increment:{primary:"\u092c\u0922\u093c\u093e\u090f\u0902",alternatives:["\u092c\u0922\u093c\u093e"],normalized:"increment"},decrement:{primary:"\u0918\u091f\u093e\u090f\u0902",alternatives:["\u0918\u091f\u093e"],normalized:"decrement"},log:{primary:"\u0932\u0949\u0917",alternatives:["\u0926\u0930\u094d\u091c"],normalized:"log"},show:{primary:"\u0926\u093f\u0916\u093e\u090f\u0902",alternatives:["\u0926\u093f\u0916\u093e"],normalized:"show"},hide:{primary:"\u091b\u093f\u092a\u093e\u090f\u0902",alternatives:["\u091b\u093f\u092a\u093e"],normalized:"hide"},transition:{primary:"\u0938\u0902\u0915\u094d\u0930\u092e\u0923",alternatives:[],normalized:"transition"},on:{primary:"\u092a\u0930",alternatives:[],normalized:"on"},trigger:{primary:"\u091f\u094d\u0930\u093f\u0917\u0930",alternatives:[],normalized:"trigger"},send:{primary:"\u092d\u0947\u091c\u0947\u0902",alternatives:["\u092d\u0947\u091c"],normalized:"send"},focus:{primary:"\u092b\u094b\u0915\u0938",alternatives:["\u0915\u0947\u0902\u0926\u094d\u0930\u093f\u0924"],normalized:"focus"},blur:{primary:"\u0927\u0941\u0902\u0927\u0932\u093e",alternatives:["\u092b\u094b\u0915\u0938_\u0939\u091f\u093e\u090f\u0902"],normalized:"blur"},empty:{primary:"\u0916\u093e\u0932\u0940-\u0915\u0930\u0947\u0902",alternatives:["\u0916\u093e\u0932\u0940"],normalized:"empty"},open:{primary:"\u0916\u094b\u0932\u0947\u0902",normalized:"open"},close:{primary:"\u092c\u0902\u0926-\u0915\u0930\u0947\u0902",normalized:"close"},select:{primary:"\u091a\u093f\u0939\u094d\u0928\u093f\u0924-\u0915\u0930\u0947\u0902",normalized:"select"},clear:{primary:"\u0938\u093e\u092b\u093c-\u0915\u0930\u0947\u0902",alternatives:["\u0938\u093e\u092b-\u0915\u0930\u0947\u0902"],normalized:"clear"},reset:{primary:"\u0930\u0940\u0938\u0947\u091f",normalized:"reset"},breakpoint:{primary:"\u092c\u094d\u0930\u0947\u0915\u092a\u094d\u0935\u093e\u0907\u0902\u091f",normalized:"breakpoint"},click:{primary:"\u0915\u094d\u0932\u093f\u0915",normalized:"click"},hover:{primary:"\u0939\u094b\u0935\u0930",alternatives:["\u090a\u092a\u0930_\u0930\u0916\u0947\u0902"],normalized:"hover"},submit:{primary:"\u0938\u092c\u092e\u093f\u091f",alternatives:["\u091c\u092e\u093e"],normalized:"submit"},input:{primary:"\u0907\u0928\u092a\u0941\u091f",alternatives:[],normalized:"input"},change:{primary:"\u092c\u0926\u0932\u093e\u0935",alternatives:["\u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928"],normalized:"change"},go:{primary:"\u091c\u093e\u090f\u0902",alternatives:["\u091c\u093e"],normalized:"go"},scroll:{primary:"\u0938\u094d\u0915\u094d\u0930\u0949\u0932",normalized:"scroll"},push:{primary:"\u0927\u0915\u0947\u0932\u0947\u0902",alternatives:["\u092a\u0941\u0936"],normalized:"push"},replace:{primary:"\u092c\u0926\u0932\u0947\u0902_\u092f\u0942\u0906\u0930\u090f\u0932",alternatives:["\u092a\u094d\u0930\u0924\u093f\u0938\u094d\u0925\u093e\u092a\u093f\u0924"],normalized:"replace"},process:{primary:"\u0938\u0902\u0938\u093e\u0927\u093f\u0924",alternatives:["\u092a\u094d\u0930\u0938\u0902\u0938\u094d\u0915\u0943\u0924"],normalized:"process"},wait:{primary:"\u092a\u094d\u0930\u0924\u0940\u0915\u094d\u0937\u093e",alternatives:["\u0930\u0941\u0915\u0947\u0902"],normalized:"wait"},fetch:{primary:"\u0932\u093e\u090f\u0902",alternatives:[],normalized:"fetch"},settle:{primary:"\u0938\u094d\u0925\u093f\u0930",alternatives:[],normalized:"settle"},if:{primary:"\u0905\u0917\u0930",alternatives:["\u092f\u0926\u093f"],normalized:"if"},when:{primary:"\u091c\u092c",normalized:"when"},changes:{primary:"\u092c\u0926\u0932\u0928\u0947 \u092a\u0930",normalized:"changes"},where:{primary:"\u0915\u0939\u093e\u0901",normalized:"where"},else:{primary:"\u0935\u0930\u0928\u093e",alternatives:["\u0928\u0939\u0940\u0902 \u0924\u094b"],normalized:"else"},repeat:{primary:"\u0926\u094b\u0939\u0930\u093e\u090f\u0902",alternatives:["\u0926\u094b\u0939\u0930\u093e"],normalized:"repeat"},for:{primary:"\u0915\u0947 \u0932\u093f\u090f",alternatives:["\u0939\u0947\u0924\u0941"],normalized:"for"},while:{primary:"\u091c\u092c \u0924\u0915",alternatives:[],normalized:"while"},forever:{primary:"\u0939\u092e\u0947\u0936\u093e",normalized:"forever",alternatives:["forever"]},unless:{primary:"\u091c\u092c \u0924\u0915 \u0928\u0939\u0940\u0902",normalized:"unless"},no:{primary:"\u0915\u094b\u0908 \u0928\u0939\u0940\u0902",normalized:"no"},continue:{primary:"\u091c\u093e\u0930\u0940",alternatives:[],normalized:"continue"},halt:{primary:"\u0930\u094b\u0915\u0947\u0902",alternatives:["\u0930\u094b\u0915"],normalized:"halt"},throw:{primary:"\u092b\u0947\u0902\u0915\u0947\u0902",alternatives:["\u092b\u0947\u0902\u0915"],normalized:"throw"},call:{primary:"\u0915\u0949\u0932",alternatives:["\u092c\u0941\u0932\u093e\u090f\u0902"],normalized:"call"},return:{primary:"\u0932\u094c\u091f\u093e\u090f\u0902",alternatives:["\u0932\u094c\u091f\u093e"],normalized:"return"},then:{primary:"\u092b\u093f\u0930",alternatives:["\u0924\u092c"],normalized:"then"},and:{primary:"\u0914\u0930",alternatives:[],normalized:"and"},matches:{primary:"\u092e\u0947\u0932 \u0916\u093e\u0924\u093e",normalized:"matches"},exists:{primary:"\u092e\u094c\u091c\u0942\u0926",normalized:"exists"},end:{primary:"\u0938\u092e\u093e\u092a\u094d\u0924",alternatives:["\u0905\u0902\u0924"],normalized:"end"},js:{primary:"\u091c\u0947\u090f\u0938",alternatives:["js"],normalized:"js"},async:{primary:"\u0905\u0938\u093f\u0902\u0915",alternatives:[],normalized:"async"},tell:{primary:"\u092c\u0924\u093e\u090f\u0902",alternatives:["\u092c\u0924\u093e"],normalized:"tell"},default:{primary:"\u0921\u093f\u092b\u093c\u0949\u0932\u094d\u091f",alternatives:[],normalized:"default"},init:{primary:"\u092a\u094d\u0930\u093e\u0930\u0902\u092d",alternatives:[],normalized:"init"},behavior:{primary:"\u0935\u094d\u092f\u0935\u0939\u093e\u0930",alternatives:[],normalized:"behavior"},install:{primary:"\u0907\u0902\u0938\u094d\u091f\u0949\u0932",alternatives:[],normalized:"install"},measure:{primary:"\u092e\u093e\u092a\u0947\u0902",alternatives:[],normalized:"measure"},beep:{primary:"\u092c\u0940\u092a",alternatives:[],normalized:"beep"},break:{primary:"\u0924\u094b\u0921\u093c\u0947\u0902",alternatives:[],normalized:"break"},copy:{primary:"\u0915\u0949\u092a\u0940",alternatives:[],normalized:"copy"},exit:{primary:"\u092c\u093e\u0939\u0930",alternatives:[],normalized:"exit"},pick:{primary:"\u091a\u0941\u0928\u0947\u0902",alternatives:[],normalized:"pick"},render:{primary:"\u0930\u0947\u0902\u0921\u0930",alternatives:[],normalized:"render"},into:{primary:"\u092e\u0947\u0902",alternatives:[],normalized:"into"},before:{primary:"\u0938\u0947 \u092a\u0939\u0932\u0947",alternatives:["\u092a\u0939\u0932\u0947"],normalized:"before"},after:{primary:"\u0915\u0947 \u092c\u093e\u0926",alternatives:["\u092c\u093e\u0926"],normalized:"after"},until:{primary:"\u0924\u0915",alternatives:[],normalized:"until"},event:{primary:"\u0918\u091f\u0928\u093e",alternatives:[],normalized:"event"},from:{primary:"\u0938\u0947",normalized:"from"},connect:{primary:"\u0915\u0928\u0947\u0915\u094d\u091f",alternatives:["\u0938\u0902\u092f\u094b\u091c\u093f\u0924"],normalized:"connect"},stream:{primary:"\u0938\u094d\u091f\u094d\u0930\u0940\u092e",alternatives:["\u0927\u093e\u0930\u093e","\u092a\u094d\u0930\u0935\u093e\u0939"],normalized:"stream"},live:{primary:"\u0932\u093e\u0907\u0935",alternatives:["\u0938\u091c\u0940\u0935","\u092a\u094d\u0930\u0924\u094d\u092f\u0915\u094d\u0937"],normalized:"live"},socket:{primary:"\u0938\u0949\u0915\u0947\u091f",alternatives:["\u0935\u0947\u092c\u0938\u0949\u0915\u0947\u091f"],normalized:"socket"},worker:{primary:"worker",alternatives:["\u0935\u0930\u094d\u0915\u0930"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0907\u0935\u0947\u0902\u091f\u0938\u094b\u0930\u094d\u0938"],normalized:"eventsource"},bind:{primary:"bind",alternatives:["\u092c\u093e\u0907\u0902\u0921","\u092c\u093e\u0902\u0927\u0947\u0902"],normalized:"bind"},intercept:{primary:"intercept",alternatives:["\u0907\u0902\u091f\u0930\u0938\u0947\u092a\u094d\u091f"],normalized:"intercept"}},tokenization:{particles:["\u0915\u094b","\u092e\u0947\u0902","\u092a\u0930","\u0938\u0947","\u0915\u093e","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"],boundaryStrategy:"space"},eventHandler:{keyword:{primary:"\u092a\u0930",alternatives:[],normalized:"on"},sourceMarker:{primary:"\u0938\u0947",position:"after"},eventMarker:{primary:"\u092a\u0930",alternatives:[],position:"after"},temporalMarkers:["\u091c\u092c","\u091c\u092c \u092d\u0940"]}}}}),lr={};x(lr,{indonesianProfile:()=>or});var pr,mr=b({"src/generators/profiles/indonesian.ts"(){or={code:"id",name:"Indonesian",nativeName:"Bahasa Indonesia",regions:["priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"itu",you:"anda",result:"hasil",event:"peristiwa",target:"target",body:"badan",document:"dokumen",window:"jendela",detail:"detail"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"saya",it:"nya",you:"anda"},keywords:{saya:"me",aku:"me",ku:"me",my:"me",anda:"you",kamu:"you",mu:"you",nya:"it",dia:"it",miliknya:"it"},connectors:["punya"]},roleMarkers:{destination:{primary:"pada",alternatives:["ke","di"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"alihkan",normalized:"toggle"},add:{primary:"tambah",alternatives:["tambahkan"],normalized:"add"},remove:{primary:"hapus",alternatives:["buang","hilangkan"],normalized:"remove"},put:{primary:"taruh",alternatives:["letakkan","masukkan"],normalized:"put"},append:{primary:"sisipkan",normalized:"append"},prepend:{primary:"awali",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["bikin","ciptakan"],normalized:"make"},clone:{primary:"klon",alternatives:["tiru"],normalized:"clone"},swap:{primary:"tukar",alternatives:["ganti"],normalized:"swap"},morph:{primary:"ubah",alternatives:["transformasi"],normalized:"morph"},set:{primary:"atur",alternatives:["tetapkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:["peroleh"],normalized:"get"},increment:{primary:"tingkatkan",alternatives:["naikkan"],normalized:"increment"},decrement:{primary:"turunkan",alternatives:["kurangi"],normalized:"decrement"},log:{primary:"catat",alternatives:["rekam","cetak"],normalized:"log"},show:{primary:"tampilkan",alternatives:["perlihatkan"],normalized:"show"},hide:{primary:"sembunyikan",alternatives:["tutup"],normalized:"hide"},transition:{primary:"transisi",alternatives:["animasikan"],normalized:"transition"},on:{primary:"pada",alternatives:["saat"],normalized:"on"},trigger:{primary:"picu",alternatives:["jalankan"],normalized:"trigger"},send:{primary:"kirim",alternatives:["kirimkan"],normalized:"send"},focus:{primary:"fokus",alternatives:["fokuskan"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},empty:{primary:"kosongkan",alternatives:["kosong"],normalized:"empty"},open:{primary:"buka",normalized:"open"},close:{primary:"tutupkan",normalized:"close"},select:{primary:"tandai",normalized:"select"},clear:{primary:"bersihkan",normalized:"clear"},reset:{primary:"setel-ulang",alternatives:["reset"],normalized:"reset"},breakpoint:{primary:"titik-henti",normalized:"breakpoint"},go:{primary:"pergi",alternatives:["pindah","navigasi"],normalized:"go"},scroll:{primary:"gulir",alternatives:["gulung"],normalized:"scroll"},push:{primary:"dorong",alternatives:["push"],normalized:"push"},replace:{primary:"ganti_url",alternatives:["gantikan_url"],normalized:"replace"},process:{primary:"proses",normalized:"process"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"muat",normalized:"fetch"},settle:{primary:"stabilkan",normalized:"settle"},if:{primary:"jika",alternatives:["kalau","bila"],normalized:"if"},unless:{primary:"kecuali",normalized:"unless"},when:{primary:"ketika",normalized:"when"},changes:{primary:"berubah",normalized:"changes"},where:{primary:"di_mana",normalized:"where"},else:{primary:"selainnya",alternatives:["lainnya"],normalized:"else"},repeat:{primary:"ulangi",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selama",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"lanjutkan",alternatives:["terus"],normalized:"continue"},halt:{primary:"hentikan",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"kembalikan",alternatives:["kembali"],normalized:"return"},then:{primary:"lalu",alternatives:["kemudian","setelah itu"],normalized:"then"},and:{primary:"dan",alternatives:["juga","serta"],normalized:"and"},matches:{primary:"cocok",normalized:"matches"},end:{primary:"selesai",alternatives:["akhir","tamat"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"asinkron",normalized:"async"},tell:{primary:"katakan",alternatives:["beritahu"],normalized:"tell"},default:{primary:"bawaan",normalized:"default"},init:{primary:"inisialisasi",alternatives:["mulai"],normalized:"init"},behavior:{primary:"perilaku",normalized:"behavior"},install:{primary:"pasang",alternatives:["instal"],normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"putuskan",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"olah",normalized:"render"},into:{primary:"ke dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"sesudah",alternatives:["setelah"],normalized:"after"},click:{primary:"klik",alternatives:["tekan"],normalized:"click"},hover:{primary:"hover",alternatives:["arahkan"],normalized:"hover"},submit:{primary:"ajukan",normalized:"submit"},input:{primary:"masuk",alternatives:["input","masukan"],normalized:"input"},change:{primary:"berubah",normalized:"change"},until:{primary:"sampai",normalized:"until"},event:{primary:"peristiwa",alternatives:["event"],normalized:"event"},from:{primary:"dari",normalized:"from"},connect:{primary:"sambungkan",alternatives:["hubungkan","koneksi"],normalized:"connect"},stream:{primary:"alirkan",alternatives:["streaming"],normalized:"stream"},live:{primary:"langsung",alternatives:["live"],normalized:"live"},socket:{primary:"soket",alternatives:["socket","websocket"],normalized:"socket"},bind:{primary:"ikat",alternatives:["kaitkan","bind"],normalized:"bind"},intercept:{primary:"cegat",alternatives:["tangkap","intercept"],normalized:"intercept"},worker:{primary:"pekerja",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["sumber peristiwa"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"pada",alternatives:["ketika","saat"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"},conditionalKeyword:{primary:"ketika",alternatives:["saat","waktu"]},eventMarker:{primary:"saat",alternatives:["ketika","pada"],position:"before"},temporalMarkers:["ketika","saat"]}}}}),cr={};x(cr,{italianProfile:()=>pr});var dr,ur=b({"src/generators/profiles/italian.ts"(){pr={code:"it",name:"Italian",nativeName:"Italiano",regions:["western"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0},references:{me:"io",it:"esso",you:"tu",result:"risultato",event:"evento",target:"obiettivo",body:"corpo",document:"documento",window:"finestra",detail:"dettaglio"},possessive:{marker:"di",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"mio",it:"suo",you:"tuo"},keywords:{mio:"me",mia:"me",miei:"me",mie:"me",tuo:"you",tua:"you",tuoi:"you",tue:"you",suo:"it",sua:"it",suoi:"it",sue:"it"}},roleMarkers:{destination:{primary:"in",alternatives:["su","a"],position:"before"},source:{primary:"da",alternatives:["di"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"con",position:"before"}},keywords:{toggle:{primary:"commutare",alternatives:["alternare"],normalized:"toggle"},add:{primary:"aggiungere",alternatives:["aggiungi"],normalized:"add"},remove:{primary:"rimuovere",alternatives:["eliminare","togliere"],normalized:"remove"},put:{primary:"mettere",alternatives:["inserire"],normalized:"put"},append:{primary:"accodare",normalized:"append"},prepend:{primary:"anteporre",normalized:"prepend"},take:{primary:"prendere",normalized:"take"},make:{primary:"fare",alternatives:["creare"],normalized:"make"},clone:{primary:"clonare",normalized:"clone"},swap:{primary:"scambiare",normalized:"swap"},morph:{primary:"trasformare",alternatives:["convertire"],normalized:"morph"},set:{primary:"impostare",alternatives:["definire"],normalized:"set"},get:{primary:"ottenere",normalized:"get"},increment:{primary:"incrementare",alternatives:["aumentare"],normalized:"increment"},decrement:{primary:"decrementare",alternatives:["diminuire"],normalized:"decrement"},log:{primary:"registrare",normalized:"log"},show:{primary:"mostrare",alternatives:["visualizzare"],normalized:"show"},hide:{primary:"nascondere",normalized:"hide"},transition:{primary:"transizione",alternatives:["animare"],normalized:"transition"},on:{primary:"su",alternatives:["al"],normalized:"on"},trigger:{primary:"scatenare",alternatives:["attivare"],normalized:"trigger"},send:{primary:"inviare",normalized:"send"},focus:{primary:"focalizzare",normalized:"focus"},blur:{primary:"sfuocare",normalized:"blur"},empty:{primary:"svuotare",alternatives:["vuoto"],normalized:"empty"},open:{primary:"aprire",normalized:"open"},close:{primary:"chiudere",normalized:"close"},select:{primary:"selezionare",normalized:"select"},clear:{primary:"cancellare",normalized:"clear"},reset:{primary:"reimpostare",normalized:"reset"},breakpoint:{primary:"punto-interruzione",normalized:"breakpoint"},go:{primary:"andare",alternatives:["navigare","vai"],normalized:"go"},scroll:{primary:"scorrere",alternatives:["scroll"],normalized:"scroll"},push:{primary:"spingere",alternatives:["push"],normalized:"push"},replace:{primary:"sostituire",normalized:"replace"},process:{primary:"elaborare",alternatives:["processare"],normalized:"process"},wait:{primary:"aspettare",alternatives:["attendere"],normalized:"wait"},fetch:{primary:"recuperare",normalized:"fetch"},settle:{primary:"stabilizzare",normalized:"settle"},if:{primary:"se",normalized:"if"},unless:{primary:"salvo",normalized:"unless"},when:{primary:"quando",normalized:"when"},changes:{primary:"cambia",normalized:"changes"},where:{primary:"dove",normalized:"where"},else:{primary:"altrimenti",normalized:"else"},repeat:{primary:"ripetere",normalized:"repeat"},for:{primary:"per",normalized:"for"},while:{primary:"mentre",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuare",normalized:"continue"},halt:{primary:"fermare",normalized:"halt"},throw:{primary:"lanciare",normalized:"throw"},call:{primary:"chiamare",normalized:"call"},return:{primary:"ritornare",normalized:"return"},then:{primary:"allora",alternatives:["poi","quindi"],normalized:"then"},and:{primary:"e",alternatives:["anche"],normalized:"and"},matches:{primary:"corrisponde",normalized:"matches"},no:{primary:"nessun",normalized:"no"},end:{primary:"fine",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asincrono",normalized:"async"},tell:{primary:"dire",normalized:"tell"},default:{primary:"predefinito",normalized:"default"},init:{primary:"inizializzare",alternatives:["inizia"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"installare",normalized:"install"},measure:{primary:"misurare",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"interrompere",normalized:"break"},copy:{primary:"copiare",normalized:"copy"},exit:{primary:"uscire",normalized:"exit"},pick:{primary:"scegliere",normalized:"pick"},render:{primary:"renderizzare",normalized:"render"},into:{primary:"in",alternatives:["dentro"],normalized:"into"},before:{primary:"prima",normalized:"before"},after:{primary:"dopo",normalized:"after"},click:{primary:"clic",alternatives:["clicca"],normalized:"click"},resize:{primary:"ridimensiona",normalized:"resize"},hover:{primary:"passaggio",alternatives:["sorvolo"],normalized:"hover"},submit:{primary:"invio",alternatives:["sottomettere"],normalized:"submit"},input:{primary:"inserimento",alternatives:["input"],normalized:"input"},change:{primary:"cambio",alternatives:["cambiamento"],normalized:"change"},load:{primary:"carica",alternatives:["caricamento"],normalized:"load"},until:{primary:"fino",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"da",alternatives:["di"],normalized:"from"},connect:{primary:"connettere",alternatives:["connettersi","collegare"],normalized:"connect"},stream:{primary:"trasmettere",alternatives:["flusso","streaming"],normalized:"stream"},live:{primary:"in-diretta",alternatives:["diretta","dal-vivo","vivo"],normalized:"live"},socket:{primary:"socket",alternatives:["presa","websocket"],normalized:"socket"},bind:{primary:"vincolare",alternatives:["legare","bind"],normalized:"bind"},intercept:{primary:"intercettare",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"lavoratore",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["sorgente-eventi"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"su",alternatives:["al"],normalized:"on"},sourceMarker:{primary:"da",alternatives:["di"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"al",alternatives:["allo","alla","su"],position:"before"},temporalMarkers:["quando","al"]}}}}),yr={};x(yr,{japaneseProfile:()=>dr});var vr,fr=b({"src/generators/profiles/japanese.ts"(){dr={code:"ja",name:"Japanese",nativeName:"\u65e5\u672c\u8a9e",regions:["east-asian","priority"],direction:"ltr",script:"cjk",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"end",suffixes:["\u308b","\u3066","\u305f","\u307e\u3059","\u306a\u3044"],subjectDrop:!0},references:{me:"\u81ea\u5206",it:"\u305d\u308c",you:"\u3042\u306a\u305f",result:"\u7d50\u679c",event:"\u30a4\u30d9\u30f3\u30c8",target:"\u30bf\u30fc\u30b2\u30c3\u30c8",body:"\u30dc\u30c7\u30a3",document:"\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8",window:"\u30a6\u30a3\u30f3\u30c9\u30a6",detail:"\u8a73\u7d30"},possessive:{marker:"\u306e",markerPosition:"between",keywords:{"\u79c1\u306e":"me","\u3042\u306a\u305f\u306e":"you","\u305d\u306e":"it"}},roleMarkers:{patient:{primary:"\u3092",position:"after"},destination:{primary:"\u306b",alternatives:["\u3078","\u3067","\u306e"],position:"after"},source:{primary:"\u304b\u3089",position:"after"},style:{primary:"\u3067",position:"after"},event:{primary:"\u3092",position:"after"}},keywords:{toggle:{primary:"\u5207\u308a\u66ff\u3048",alternatives:["\u5207\u308a\u66ff\u3048\u308b","\u30c8\u30b0\u30eb","\u30c8\u30b0\u30eb\u3059\u308b"],normalized:"toggle"},add:{primary:"\u8ffd\u52a0",alternatives:["\u8ffd\u52a0\u3059\u308b","\u52a0\u3048\u308b"],normalized:"add"},remove:{primary:"\u524a\u9664",alternatives:["\u524a\u9664\u3059\u308b","\u53d6\u308a\u9664\u304f"],normalized:"remove"},put:{primary:"\u7f6e\u304f",alternatives:["\u5165\u308c\u308b"],normalized:"put"},append:{primary:"\u672b\u5c3e\u8ffd\u52a0",alternatives:["\u672b\u5c3e\u306b\u8ffd\u52a0","\u30a2\u30da\u30f3\u30c9"],normalized:"append"},prepend:{primary:"\u5148\u982d\u8ffd\u52a0",alternatives:["\u5148\u982d\u306b\u8ffd\u52a0","\u30d7\u30ea\u30da\u30f3\u30c9"],normalized:"prepend"},take:{primary:"\u53d6\u308b",normalized:"take"},make:{primary:"\u4f5c\u308b",alternatives:["\u4f5c\u6210"],normalized:"make"},clone:{primary:"\u8907\u88fd",alternatives:["\u30af\u30ed\u30fc\u30f3"],normalized:"clone"},swap:{primary:"\u4ea4\u63db",alternatives:["\u30b9\u30ef\u30c3\u30d7","\u5165\u308c\u66ff\u3048"],normalized:"swap"},morph:{primary:"\u5909\u5f62",alternatives:["\u30e2\u30fc\u30d5","\u5909\u63db"],normalized:"morph"},set:{primary:"\u8a2d\u5b9a",alternatives:["\u8a2d\u5b9a\u3059\u308b"],normalized:"set"},get:{primary:"\u53d6\u5f97",alternatives:["\u53d6\u5f97\u3059\u308b","\u30b2\u30c3\u30c8"],normalized:"get"},increment:{primary:"\u5897\u52a0",alternatives:["\u5897\u3084\u3059","\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8"],normalized:"increment"},decrement:{primary:"\u6e1b\u5c11",alternatives:["\u6e1b\u3089\u3059","\u30c7\u30af\u30ea\u30e1\u30f3\u30c8"],normalized:"decrement"},log:{primary:"\u8a18\u9332",alternatives:["\u30ed\u30b0","\u51fa\u529b"],normalized:"log"},show:{primary:"\u8868\u793a",alternatives:["\u8868\u793a\u3059\u308b","\u898b\u305b\u308b"],normalized:"show"},hide:{primary:"\u96a0\u3059",alternatives:["\u975e\u8868\u793a","\u975e\u8868\u793a\u306b\u3059\u308b"],normalized:"hide"},transition:{primary:"\u9077\u79fb",alternatives:["\u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3","\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3"],normalized:"transition"},on:{primary:"\u3067",alternatives:["\u6642"],normalized:"on"},trigger:{primary:"\u5f15\u304d\u91d1",alternatives:["\u767a\u706b","\u30c8\u30ea\u30ac\u30fc"],normalized:"trigger"},send:{primary:"\u9001\u308b",alternatives:["\u9001\u4fe1"],normalized:"send"},focus:{primary:"\u30d5\u30a9\u30fc\u30ab\u30b9",normalized:"focus"},blur:{primary:"\u30d5\u30a9\u30fc\u30ab\u30b9\u89e3\u9664",alternatives:["\u30d5\u30a9\u30fc\u30ab\u30b9\u30a2\u30a6\u30c8","\u30d6\u30e9\u30fc","\u307c\u304b\u3057"],normalized:"blur"},empty:{primary:"\u7a7a\u306b",alternatives:["\u7a7a\u306b\u3059\u308b"],normalized:"empty"},open:{primary:"\u958b\u304f",alternatives:["\u30aa\u30fc\u30d7\u30f3"],normalized:"open"},close:{primary:"\u9589\u3058\u308b",alternatives:["\u30af\u30ed\u30fc\u30ba"],normalized:"close"},select:{primary:"\u9078\u3076",alternatives:["\u30bb\u30ec\u30af\u30c8"],normalized:"select"},clear:{primary:"\u30af\u30ea\u30a2",alternatives:["\u6d88\u53bb"],normalized:"clear"},reset:{primary:"\u30ea\u30bb\u30c3\u30c8",alternatives:["\u518d\u8a2d\u5b9a"],normalized:"reset"},breakpoint:{primary:"\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8",normalized:"breakpoint"},go:{primary:"\u79fb\u52d5",alternatives:["\u884c\u304f","\u30ca\u30d3\u30b2\u30fc\u30c8"],normalized:"go"},scroll:{primary:"\u30b9\u30af\u30ed\u30fc\u30eb",normalized:"scroll"},push:{primary:"\u30d7\u30c3\u30b7\u30e5",normalized:"push"},replace:{primary:"\u7f6e\u63db",alternatives:["\u7f6e\u304d\u63db\u3048"],normalized:"replace"},process:{primary:"\u51e6\u7406",normalized:"process"},wait:{primary:"\u5f85\u3064",alternatives:["\u5f85\u6a5f"],normalized:"wait"},fetch:{primary:"\u30d5\u30a7\u30c3\u30c1",normalized:"fetch"},settle:{primary:"\u5b89\u5b9a",alternatives:["\u843d\u3061\u7740\u304f"],normalized:"settle"},if:{primary:"\u3082\u3057",normalized:"if"},when:{primary:"\u3068\u304d",alternatives:["\u3068\u304d\u306b"],normalized:"when"},changes:{primary:"\u5909\u308f\u3063\u305f\u3089",normalized:"changes"},where:{primary:"\u3069\u3053",normalized:"where"},else:{primary:"\u305d\u3046\u3067\u306a\u3051\u308c\u3070",alternatives:["\u305d\u308c\u4ee5\u5916"],normalized:"else"},unless:{primary:"\u306a\u3044\u9650\u308a",normalized:"unless"},repeat:{primary:"\u7e70\u308a\u8fd4\u3057",alternatives:["\u7e70\u308a\u8fd4\u3059","\u30ea\u30d4\u30fc\u30c8"],normalized:"repeat"},for:{primary:"\u305f\u3081\u306b",alternatives:["\u5404"],normalized:"for"},while:{primary:"\u306e\u9593",alternatives:["\u9593"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\u7d9a\u3051\u308b",alternatives:["\u7d99\u7d9a"],normalized:"continue"},halt:{primary:"\u505c\u6b62",alternatives:["\u6b62\u3081\u308b","\u30cf\u30eb\u30c8"],normalized:"halt"},throw:{primary:"\u6295\u3052\u308b",alternatives:["\u30b9\u30ed\u30fc"],normalized:"throw"},call:{primary:"\u547c\u3073\u51fa\u3057",alternatives:["\u30b3\u30fc\u30eb","\u547c\u3076"],normalized:"call"},return:{primary:"\u623b\u308b",alternatives:["\u8fd4\u3059","\u30ea\u30bf\u30fc\u30f3"],normalized:"return"},then:{primary:"\u305d\u308c\u304b\u3089",alternatives:["\u6b21\u306b","\u306a\u3089\u3070","\u306a\u3089"],normalized:"then"},and:{primary:"\u307e\u305f",alternatives:["\u3068","\u305d\u3057\u3066"],normalized:"and"},matches:{primary:"\u4e00\u81f4\u3059\u308b",normalized:"matches"},exists:{primary:"\u5b58\u5728\u3059\u308b",normalized:"exists"},is:{primary:"\u3067\u3042\u308b",normalized:"is"},no:{primary:"\u306a\u3044",normalized:"no"},end:{primary:"\u7d42\u308f\u308a",alternatives:["\u304a\u308f\u308a"],normalized:"end"},js:{primary:"JS\u5b9f\u884c",alternatives:["js"],normalized:"js"},async:{primary:"\u975e\u540c\u671f",alternatives:["\u30a2\u30b7\u30f3\u30af"],normalized:"async"},tell:{primary:"\u4f1d\u3048\u308b",alternatives:["\u30c6\u30eb"],normalized:"tell"},default:{primary:"\u65e2\u5b9a",alternatives:["\u30c7\u30d5\u30a9\u30eb\u30c8"],normalized:"default"},init:{primary:"\u521d\u671f\u5316",normalized:"init"},behavior:{primary:"\u632f\u308b\u821e\u3044",alternatives:["\u30d3\u30d8\u30a4\u30d3\u30a2"],normalized:"behavior"},install:{primary:"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb",alternatives:["\u5c0e\u5165"],normalized:"install"},measure:{primary:"\u6e2c\u5b9a",alternatives:["\u8a08\u6e2c","\u30e1\u30b8\u30e3\u30fc"],normalized:"measure"},beep:{primary:"\u30d3\u30fc\u30d7",normalized:"beep"},break:{primary:"\u4e2d\u65ad",normalized:"break"},copy:{primary:"\u30b3\u30d4\u30fc",normalized:"copy"},exit:{primary:"\u9000\u51fa",normalized:"exit"},pick:{primary:"\u9078\u629e",normalized:"pick"},render:{primary:"\u63cf\u753b",normalized:"render"},into:{primary:"\u3078",alternatives:["\u306b"],normalized:"into"},before:{primary:"\u524d\u306b",alternatives:["\u524d"],normalized:"before"},after:{primary:"\u5f8c\u306b",alternatives:["\u5f8c"],normalized:"after"},until:{primary:"\u307e\u3067",alternatives:["\u8fc4"],normalized:"until"},event:{primary:"\u30a4\u30d9\u30f3\u30c8",alternatives:["\u4e8b\u8c61"],normalized:"event"},from:{primary:"\u304b\u3089",normalized:"from"},connect:{primary:"\u63a5\u7d9a",alternatives:["\u63a5\u7d9a\u3059\u308b"],normalized:"connect"},stream:{primary:"\u30b9\u30c8\u30ea\u30fc\u30e0",alternatives:["\u914d\u4fe1"],normalized:"stream"},live:{primary:"\u30e9\u30a4\u30d6",alternatives:["\u5b9f\u6642\u9593"],normalized:"live"},socket:{primary:"\u30bd\u30b1\u30c3\u30c8",alternatives:["websocket"],normalized:"socket"},bind:{primary:"\u30d0\u30a4\u30f3\u30c9",alternatives:["\u7d50\u3073\u3064\u3051\u308b","bind"],normalized:"bind"},intercept:{primary:"\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30c8",alternatives:["\u508d\u53d7","intercept"],normalized:"intercept"},worker:{primary:"\u30ef\u30fc\u30ab\u30fc",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u30a4\u30d9\u30f3\u30c8\u30bd\u30fc\u30b9"],normalized:"eventsource"}},tokenization:{particles:["\u3092","\u306b","\u3067","\u304b\u3089","\u306e","\u304c","\u306f","\u3082","\u3078","\u3068"],boundaryStrategy:"particle"},eventHandler:{eventMarker:{primary:"\u3067",position:"after"},temporalMarkers:["\u6642","\u3068\u304d"]}}}}),hr={};x(hr,{koreanProfile:()=>vr});var gr,kr=b({"src/generators/profiles/korean.ts"(){vr={code:"ko",name:"Korean",nativeName:"\ud55c\uad6d\uc5b4",regions:["east-asian","priority"],direction:"ltr",script:"hangul",wordOrder:"SOV",markingStrategy:"particle",usesSpaces:!0,verb:{position:"end",suffixes:["\ub2e4","\uc694","\ub2c8\ub2e4","\uc138\uc694"],subjectDrop:!0},references:{me:"\ub098",it:"\uadf8\uac83",you:"\ub108",result:"\uacb0\uacfc",event:"\uc774\ubca4\ud2b8",target:"\ub300\uc0c1",body:"\ubc14\ub514",document:"\ubb38\uc11c",window:"\ucc3d",detail:"\uc138\ubd80"},possessive:{marker:"\uc758",markerPosition:"between",specialForms:{me:"\ub0b4",it:"\uadf8\uac83\uc758",you:"\ub124"},keywords:{"\ub0b4":"me","\ub124":"you","\uadf8\uc758":"it"}},roleMarkers:{patient:{primary:"\uc744",alternatives:["\ub97c"],position:"after"},destination:{primary:"\uc5d0",alternatives:["\uc73c\ub85c","\ub85c","\uc758"],position:"after"},source:{primary:"\uc5d0\uc11c",alternatives:["\ubd80\ud130"],position:"after"},style:{primary:"\ub85c",alternatives:["\uc73c\ub85c"],position:"after"},event:{primary:"\uc744",alternatives:["\ub97c"],position:"after"}},keywords:{toggle:{primary:"\ud1a0\uae00",normalized:"toggle"},add:{primary:"\ucd94\uac00",normalized:"add"},remove:{primary:"\uc81c\uac70",alternatives:["\uc0ad\uc81c"],normalized:"remove"},put:{primary:"\ub123\ub2e4",alternatives:["\ub123\uae30","\ub193\uae30","\ub123\uc73c\uc138\uc694"],normalized:"put"},append:{primary:"\ub367\ubd99\uc774\ub2e4",alternatives:["\ub05d\uc5d0\ucd94\uac00"],normalized:"append"},prepend:{primary:"\uc55e\uc5d0\ucd94\uac00",alternatives:["\uc120\ub450\ucd94\uac00"],normalized:"prepend"},take:{primary:"\uac00\uc838\uc624\ub2e4",alternatives:["\uac00\uc838\uc624\uc138\uc694"],normalized:"take"},make:{primary:"\ub9cc\ub4e4\ub2e4",normalized:"make"},clone:{primary:"\ubcf5\uc81c",normalized:"clone"},swap:{primary:"\uad50\ud658",alternatives:["\ubc14\uafb8\ub2e4"],normalized:"swap"},morph:{primary:"\ubcc0\ud615",alternatives:["\ubcc0\ud658"],normalized:"morph"},set:{primary:"\uc124\uc815",normalized:"set"},get:{primary:"\uc5bb\ub2e4",alternatives:["\uc5bb\uc73c\uc138\uc694"],normalized:"get"},increment:{primary:"\uc99d\uac00",normalized:"increment"},decrement:{primary:"\uac10\uc18c",normalized:"decrement"},log:{primary:"\ub85c\uadf8",normalized:"log"},show:{primary:"\ubcf4\uc774\ub2e4",alternatives:["\ud45c\uc2dc","\ubcf4\uc774\uae30","\ubcf4\uc774\uc138\uc694"],normalized:"show"},hide:{primary:"\uc228\uae30\ub2e4",alternatives:["\uc228\uae30\uae30","\uc228\uae30\uc138\uc694"],normalized:"hide"},transition:{primary:"\ud2b8\ub79c\uc9c0\uc158",alternatives:["\uc804\ud658"],normalized:"transition"},on:{primary:"\uc5d0",alternatives:["\uc2dc","\ud560 \ub54c"],normalized:"on"},trigger:{primary:"\ud2b8\ub9ac\uac70",normalized:"trigger"},send:{primary:"\ubcf4\ub0b4\ub2e4",alternatives:["\ubcf4\ub0b4\uc138\uc694"],normalized:"send"},focus:{primary:"\ud3ec\ucee4\uc2a4",normalized:"focus"},blur:{primary:"\ud3ec\ucee4\uc2a4\uc544\uc6c3",alternatives:["\ube14\ub7ec"],normalized:"blur"},empty:{primary:"\ube44\uc6b0\uae30",alternatives:["\ube44\uc5b4\uc788\ub294"],normalized:"empty"},open:{primary:"\uc5f4\uae30",normalized:"open"},close:{primary:"\ub2eb\uae30",normalized:"close"},select:{primary:"\uace0\ub974\uae30",normalized:"select"},clear:{primary:"\uc9c0\uc6b0\uae30",normalized:"clear"},reset:{primary:"\uc7ac\uc124\uc815",normalized:"reset"},breakpoint:{primary:"\uc911\ub2e8\uc810",normalized:"breakpoint"},click:{primary:"\ud074\ub9ad",normalized:"click"},hover:{primary:"\ud638\ubc84",normalized:"hover"},submit:{primary:"\uc81c\ucd9c",normalized:"submit"},input:{primary:"\uc785\ub825",normalized:"input"},change:{primary:"\ubcc0\uacbd",normalized:"change"},go:{primary:"\uc774\ub3d9",normalized:"go"},scroll:{primary:"\uc2a4\ud06c\ub864",normalized:"scroll"},push:{primary:"\ud478\uc2dc",normalized:"push"},replace:{primary:"\uad50\uccb4",alternatives:["\ubc14\uafb8\uae30"],normalized:"replace"},process:{primary:"\ucc98\ub9ac",normalized:"process"},wait:{primary:"\ub300\uae30",normalized:"wait"},fetch:{primary:"\ud328\uce58",alternatives:["\uac00\uc838\uc624\uae30"],normalized:"fetch"},settle:{primary:"\uc548\uc815",normalized:"settle"},if:{primary:"\ub9cc\uc57d",normalized:"if"},when:{primary:"\ub54c",normalized:"when"},changes:{primary:"\ubcc0\uacbd\ub418\uba74",normalized:"changes"},where:{primary:"\uc5b4\ub514",normalized:"where"},else:{primary:"\uc544\ub2c8\uba74",normalized:"else"},unless:{primary:"\uc544\ub2c8\ub77c\uba74",normalized:"unless"},repeat:{primary:"\ubc18\ubcf5",normalized:"repeat"},for:{primary:"\uac01\uac01",normalized:"for"},while:{primary:"\ub3d9\uc548",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"\uacc4\uc18d",normalized:"continue"},halt:{primary:"\uc815\uc9c0",normalized:"halt"},throw:{primary:"\ub358\uc9c0\ub2e4",normalized:"throw"},call:{primary:"\ud638\ucd9c",normalized:"call"},return:{primary:"\ubc18\ud658",normalized:"return"},then:{primary:"\uadf8\ub2e4\uc74c",alternatives:["\uadf8\ub7f0\ud6c4"],normalized:"then"},and:{primary:"\uadf8\ub9ac\uace0",alternatives:["\ub610\ud55c","\ubc0f"],normalized:"and"},matches:{primary:"\uc77c\uce58",normalized:"matches"},exists:{primary:"\uc874\uc7ac",normalized:"exists"},no:{primary:"\uc5c6\uc74c",normalized:"no"},end:{primary:"\ub05d",alternatives:["\ub9c8\uce68"],normalized:"end"},js:{primary:"JS\uc2e4\ud589",alternatives:["js"],normalized:"js"},async:{primary:"\ube44\ub3d9\uae30",normalized:"async"},tell:{primary:"\ub9d0\ud558\ub2e4",normalized:"tell"},default:{primary:"\uae30\ubcf8\uac12",normalized:"default"},init:{primary:"\ucd08\uae30\ud654",normalized:"init"},behavior:{primary:"\ub3d9\uc791",normalized:"behavior"},install:{primary:"\uc124\uce58",normalized:"install"},measure:{primary:"\uce21\uc815",normalized:"measure"},beep:{primary:"\ube44\ud504",normalized:"beep"},break:{primary:"\uc911\ub2e8",normalized:"break"},copy:{primary:"\ubcf5\uc0ac",normalized:"copy"},exit:{primary:"\ub098\uac00\uae30",normalized:"exit"},pick:{primary:"\uc120\ud0dd",normalized:"pick"},render:{primary:"\ub80c\ub354\ub9c1",normalized:"render"},into:{primary:"\uc73c\ub85c",normalized:"into"},before:{primary:"\uc804\uc5d0",normalized:"before"},after:{primary:"\ud6c4\uc5d0",normalized:"after"},until:{primary:"\uae4c\uc9c0",normalized:"until"},event:{primary:"\uc774\ubca4\ud2b8",normalized:"event"},from:{primary:"\uc5d0\uc11c",normalized:"from"},connect:{primary:"\uc5f0\uacb0",alternatives:["\uc811\uc18d"],normalized:"connect"},stream:{primary:"\uc2a4\ud2b8\ub9bc",alternatives:["\uc2a4\ud2b8\ub9ac\ubc0d"],normalized:"stream"},live:{primary:"\uc2e4\uc2dc\uac04",alternatives:["\ub77c\uc774\ube0c"],normalized:"live"},socket:{primary:"\uc18c\ucf13",alternatives:["websocket"],normalized:"socket"},bind:{primary:"\ubc14\uc778\ub4dc",alternatives:["bind"],normalized:"bind"},intercept:{primary:"\uac00\ub85c\ucc44\uae30",alternatives:["\uc778\ud130\uc149\ud2b8","intercept"],normalized:"intercept"},worker:{primary:"\uc6cc\ucee4",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\uc774\ubca4\ud2b8\uc18c\uc2a4"],normalized:"eventsource"}},tokenization:{particles:["\uc744","\ub97c","\uc774","\uac00","\uc740","\ub294","\uc5d0","\uc5d0\uc11c","\uc73c\ub85c","\ub85c","\uc640","\uacfc","\ub3c4"],boundaryStrategy:"space"},eventHandler:{eventMarker:{primary:"\ud560 \ub54c",alternatives:["\ud560\ub54c","\ub54c","\uc5d0"],position:"after"},temporalMarkers:["\ud560 \ub54c","\ud560\ub54c","\ub54c"]}}}}),zr={};x(zr,{malayProfile:()=>gr});var wr,br=b({"src/generators/profiles/ms.ts"(){gr={code:"ms",name:"Malay",nativeName:"Melayu",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"saya",it:"ia",you:"kamu",result:"hasil",event:"peristiwa",target:"sasaran",body:"badan",document:"dokumen",window:"tetingkap",detail:"perincian"},possessive:{marker:"",markerPosition:"after-object",keywords:{saya:"me",saya_punya:"me",aku:"me",awak:"you",kamu:"you",anda:"you",dia:"it",ia:"it",nya:"it","-ku":"me","-mu":"you","-nya":"it"}},roleMarkers:{destination:{primary:"ke",alternatives:["pada"],position:"before"},source:{primary:"dari",position:"before"},patient:{primary:"",position:"before"},style:{primary:"dengan",position:"before"}},keywords:{toggle:{primary:"togol",alternatives:["tukar"],normalized:"toggle"},add:{primary:"tambah",normalized:"add"},remove:{primary:"buang",alternatives:["padam"],normalized:"remove"},put:{primary:"letak",alternatives:["letakkan"],normalized:"put"},append:{primary:"tambah_hujung",normalized:"append"},prepend:{primary:"tambah_mula",normalized:"prepend"},take:{primary:"ambil",normalized:"take"},make:{primary:"buat",alternatives:["cipta"],normalized:"make"},clone:{primary:"klon",alternatives:[],normalized:"clone"},swap:{primary:"tukar_tempat",normalized:"swap"},morph:{primary:"ubah_bentuk",normalized:"morph"},set:{primary:"tetapkan",alternatives:["setkan"],normalized:"set"},get:{primary:"dapatkan",alternatives:[],normalized:"get"},increment:{primary:"tambah_satu",normalized:"increment"},decrement:{primary:"kurang_satu",normalized:"decrement"},log:{primary:"catat",alternatives:["log"],normalized:"log"},show:{primary:"tunjuk",alternatives:[],normalized:"show"},hide:{primary:"sembunyi",alternatives:["sorok"],normalized:"hide"},transition:{primary:"peralihan",normalized:"transition"},on:{primary:"apabila",alternatives:["ketika"],normalized:"on"},trigger:{primary:"cetuskan",normalized:"trigger"},send:{primary:"hantar",normalized:"send"},focus:{primary:"fokus",normalized:"focus"},blur:{primary:"kabur",normalized:"blur"},empty:{primary:"kosongkan",alternatives:["kosong"],normalized:"empty"},open:{primary:"buka",normalized:"open"},close:{primary:"tutup",normalized:"close"},select:{primary:"tandai",normalized:"select"},clear:{primary:"bersihkan",normalized:"clear"},reset:{primary:"set-semula",alternatives:["reset"],normalized:"reset"},breakpoint:{primary:"titik-henti",normalized:"breakpoint"},go:{primary:"pergi",alternatives:["pindah"],normalized:"go"},scroll:{primary:"tatal",alternatives:["skrol","scroll"],normalized:"scroll"},push:{primary:"tolak",alternatives:["push"],normalized:"push"},replace:{primary:"ganti_url",alternatives:["gantikan_url"],normalized:"replace"},process:{primary:"proses",normalized:"process"},wait:{primary:"tunggu",normalized:"wait"},fetch:{primary:"ambil_dari",alternatives:["muat"],normalized:"fetch"},settle:{primary:"selesai",normalized:"settle"},if:{primary:"jika",alternatives:["kalau"],normalized:"if"},unless:{primary:"kecuali",normalized:"unless"},when:{primary:"bila",normalized:"when"},changes:{primary:"berubah",normalized:"changes"},where:{primary:"di_mana",normalized:"where"},else:{primary:"kalau_tidak",alternatives:["jika_tidak"],normalized:"else"},repeat:{primary:"ulang",normalized:"repeat"},for:{primary:"untuk",normalized:"for"},while:{primary:"selagi",alternatives:["semasa"],normalized:"while"},forever:{primary:"selamanya",normalized:"forever",alternatives:["forever"]},continue:{primary:"teruskan",normalized:"continue"},halt:{primary:"henti",alternatives:["berhenti"],normalized:"halt"},throw:{primary:"lempar",normalized:"throw"},call:{primary:"panggil",normalized:"call"},return:{primary:"pulang",alternatives:["kembali"],normalized:"return"},then:{primary:"kemudian",alternatives:["lepas_itu"],normalized:"then"},and:{primary:"dan",normalized:"and"},matches:{primary:"sepadan",normalized:"matches"},exists:{primary:"wujud",normalized:"exists"},is:{primary:"adalah",normalized:"is"},no:{primary:"tiada",normalized:"no"},end:{primary:"tamat",alternatives:["habis"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"tak_segerak",normalized:"async"},tell:{primary:"beritahu",normalized:"tell"},default:{primary:"lalai",normalized:"default"},init:{primary:"mula",alternatives:["mulakan"],normalized:"init"},behavior:{primary:"kelakuan",normalized:"behavior"},install:{primary:"pasang",normalized:"install"},measure:{primary:"ukur",normalized:"measure"},beep:{primary:"bunyi",normalized:"beep"},break:{primary:"pecah",normalized:"break"},copy:{primary:"salin",normalized:"copy"},exit:{primary:"keluar",normalized:"exit"},pick:{primary:"pilih",normalized:"pick"},render:{primary:"papar",normalized:"render"},into:{primary:"ke_dalam",normalized:"into"},before:{primary:"sebelum",normalized:"before"},after:{primary:"selepas",alternatives:["lepas"],normalized:"after"},until:{primary:"sehingga",alternatives:["sampai"],normalized:"until"},event:{primary:"peristiwa",normalized:"event"},from:{primary:"dari",normalized:"from"},connect:{primary:"sambung",alternatives:["hubungkan"],normalized:"connect"},stream:{primary:"strim",alternatives:["penstriman","aliran"],normalized:"stream"},live:{primary:"langsung",alternatives:["siaran-langsung"],normalized:"live"},socket:{primary:"soket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"ikat",alternatives:["kaitkan","bind"],normalized:"bind"},intercept:{primary:"pintas",alternatives:["cegat","intercept"],normalized:"intercept"},worker:{primary:"pekerja",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["sumber_peristiwa"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"apabila",alternatives:["ketika"],normalized:"on"},sourceMarker:{primary:"dari",position:"before"},eventMarker:{primary:"apabila",alternatives:["ketika"],position:"before"}}}}}),xr={};x(xr,{polishProfile:()=>wr});var Tr,Sr=b({"src/generators/profiles/polish.ts"(){wr={code:"pl",name:"Polish",nativeName:"Polski",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"imperative",verb:{position:"start",subjectDrop:!0,suffixes:["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107"]},references:{me:"ja",it:"to",you:"ty",result:"wynik",event:"zdarzenie",target:"cel",body:"body",document:"dokument",window:"okno",detail:"szczeg\u00f3\u0142"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"m\u00f3j",it:"jego",you:"tw\u00f3j"},keywords:{"m\u00f3j":"me",moja:"me",moje:"me","tw\u00f3j":"you",twoja:"you",twoje:"you",jego:"it",jej:"it"}},roleMarkers:{destination:{primary:"do",alternatives:["w","na"],position:"before"},source:{primary:"z",alternatives:["od","ze"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"z",alternatives:["ze"],position:"before"}},keywords:{toggle:{primary:"prze\u0142\u0105cz",alternatives:["przelacz"],normalized:"toggle",form:"imperative"},add:{primary:"dodaj",normalized:"add",form:"imperative"},remove:{primary:"usu\u0144",alternatives:["usun","wyczy\u015b\u0107","wyczysc"],normalized:"remove",form:"imperative"},put:{primary:"umie\u015b\u0107",alternatives:["umiesc","wstaw"],normalized:"put",form:"imperative"},append:{primary:"do\u0142\u0105cz",alternatives:["dolacz"],normalized:"append",form:"imperative"},prepend:{primary:"poprzed\u017a",alternatives:["poprzedz"],normalized:"prepend",form:"imperative"},take:{primary:"we\u017a",alternatives:["wez"],normalized:"take",form:"imperative"},make:{primary:"utw\u00f3rz",alternatives:["utworz","stw\u00f3rz","stworz"],normalized:"make",form:"imperative"},clone:{primary:"sklonuj",normalized:"clone",form:"imperative"},swap:{primary:"zamie\u0144",alternatives:["zamien"],normalized:"swap",form:"imperative"},morph:{primary:"przekszta\u0142\u0107",alternatives:["przeksztalc"],normalized:"morph",form:"imperative"},set:{primary:"ustaw",alternatives:["okre\u015bl","okresl"],normalized:"set",form:"imperative"},get:{primary:"uzyskaj",normalized:"get",form:"imperative"},increment:{primary:"zwi\u0119ksz",alternatives:["zwieksz"],normalized:"increment",form:"imperative"},decrement:{primary:"zmniejsz",normalized:"decrement",form:"imperative"},log:{primary:"loguj",alternatives:["wypisz"],normalized:"log",form:"imperative"},show:{primary:"poka\u017c",alternatives:["pokaz","wy\u015bwietl","wyswietl"],normalized:"show",form:"imperative"},hide:{primary:"ukryj",alternatives:["schowaj"],normalized:"hide",form:"imperative"},transition:{primary:"animuj",alternatives:["przej\u015bcie","przejscie"],normalized:"transition",form:"imperative"},on:{primary:"gdy",alternatives:["przy","na"],normalized:"on"},trigger:{primary:"wyzw\u00f3l",alternatives:["wyzwol"],normalized:"trigger",form:"imperative"},send:{primary:"wy\u015blij",alternatives:["wyslij"],normalized:"send",form:"imperative"},focus:{primary:"skup",alternatives:["skupienie"],normalized:"focus",form:"imperative"},blur:{primary:"rozmyj",alternatives:["odskup"],normalized:"blur",form:"imperative"},empty:{primary:"opr\u00f3\u017cnij",alternatives:["oproznij","pusty"],normalized:"empty"},open:{primary:"otw\u00f3rz",alternatives:["otworz"],normalized:"open"},close:{primary:"zamknij",normalized:"close"},select:{primary:"zaznacz",normalized:"select"},clear:{primary:"zeruj",normalized:"clear"},reset:{primary:"zresetuj",normalized:"reset"},breakpoint:{primary:"punkt-przerwania",normalized:"breakpoint"},go:{primary:"id\u017a",alternatives:["idz","przejd\u017a","przejdz","nawiguj"],normalized:"go",form:"imperative"},scroll:{primary:"przewi\u0144",alternatives:["przewin"],normalized:"scroll",form:"imperative"},push:{primary:"wepchnij",alternatives:["push"],normalized:"push",form:"imperative"},replace:{primary:"nadpisz",alternatives:["zamie\u0144_url","zamien_url"],normalized:"replace",form:"imperative"},process:{primary:"przetw\u00f3rz",alternatives:["przetworz"],normalized:"process",form:"imperative"},wait:{primary:"czekaj",alternatives:["poczekaj"],normalized:"wait",form:"imperative"},fetch:{primary:"pobierz",alternatives:["za\u0142aduj","zaladuj"],normalized:"fetch",form:"imperative"},settle:{primary:"ustabilizuj",normalized:"settle",form:"imperative"},if:{primary:"je\u015bli",alternatives:["jesli","je\u017celi","jezeli"],normalized:"if"},unless:{primary:"chyba",normalized:"unless"},when:{primary:"kiedy",normalized:"when"},changes:{primary:"zmienia",normalized:"changes"},where:{primary:"gdzie",normalized:"where"},else:{primary:"inaczej",alternatives:["wpp"],normalized:"else"},repeat:{primary:"powt\u00f3rz",alternatives:["powtorz"],normalized:"repeat",form:"imperative"},for:{primary:"dla",alternatives:["ka\u017cdy","kazdy"],normalized:"for"},while:{primary:"dop\u00f3ki",alternatives:["dopoki","podczas"],normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"kontynuuj",alternatives:["dalej"],normalized:"continue",form:"imperative"},halt:{primary:"zatrzymaj",alternatives:["stop"],normalized:"halt",form:"imperative"},throw:{primary:"rzu\u0107",alternatives:["rzuc"],normalized:"throw",form:"imperative"},call:{primary:"wywo\u0142aj",alternatives:["wywolaj"],normalized:"call",form:"imperative"},return:{primary:"zwr\u00f3\u0107",alternatives:["zwroc"],normalized:"return",form:"imperative"},then:{primary:"wtedy",alternatives:["potem","nast\u0119pnie","nastepnie"],normalized:"then"},and:{primary:"i",alternatives:["oraz"],normalized:"and"},matches:{primary:"pasuje",normalized:"matches"},no:{primary:"brak",normalized:"no"},end:{primary:"koniec",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",alternatives:["asynchronicznie"],normalized:"async"},tell:{primary:"powiedz",normalized:"tell",form:"imperative"},default:{primary:"domy\u015blnie",alternatives:["domyslnie"],normalized:"default"},init:{primary:"inicjuj",normalized:"init",form:"imperative"},behavior:{primary:"zachowanie",normalized:"behavior"},install:{primary:"zainstaluj",normalized:"install",form:"imperative"},measure:{primary:"zmierz",normalized:"measure",form:"imperative"},beep:{primary:"sygna\u0142",normalized:"beep"},break:{primary:"przerwij",normalized:"break"},copy:{primary:"kopiuj",normalized:"copy"},exit:{primary:"wyjd\u017a",normalized:"exit"},pick:{primary:"wybierz",normalized:"pick"},render:{primary:"renderuj",normalized:"render"},into:{primary:"do",alternatives:["w"],normalized:"into"},before:{primary:"przed",normalized:"before"},after:{primary:"po",normalized:"after"},click:{primary:"klikni\u0119ciu",alternatives:["klikniecie","klik"],normalized:"click"},resize:{primary:"zmiana rozmiaru",alternatives:["zmie\u0144 rozmiar","zmie\u0144rozmiar"],normalized:"resize"},hover:{primary:"najechaniu",alternatives:["hover"],normalized:"hover"},submit:{primary:"wys\u0142aniu",alternatives:["wyslaniu","submit"],normalized:"submit"},input:{primary:"wprowadzeniu",alternatives:["input","wej\u015bcie"],normalized:"input"},change:{primary:"zmianie",alternatives:["zmiana"],normalized:"change"},until:{primary:"a\u017c",alternatives:["az"],normalized:"until"},event:{primary:"zdarzenie",normalized:"event"},from:{primary:"z",alternatives:["od","ze"],normalized:"from"},connect:{primary:"po\u0142\u0105cz",alternatives:["pod\u0142\u0105cz"],normalized:"connect"},stream:{primary:"transmituj",alternatives:["strumie\u0144","streamuj"],normalized:"stream"},live:{primary:"na-\u017cywo",alternatives:["na-bie\u017c\u0105co","live","\u017cywy"],normalized:"live"},socket:{primary:"gniazdo",alternatives:["socket","websocket"],normalized:"socket"},bind:{primary:"powi\u0105\u017c",alternatives:["zwi\u0105za\u0107","bind"],normalized:"bind"},intercept:{primary:"przechwy\u0107",alternatives:["przechwytuj","intercept"],normalized:"intercept"},worker:{primary:"pracownik",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u017ar\u00f3d\u0142o-zdarze\u0144"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"gdy",alternatives:["przy","na"],normalized:"on"},sourceMarker:{primary:"na",alternatives:["w","przy"],position:"before"},conditionalKeyword:{primary:"kiedy",alternatives:["gdy","je\u015bli"]},eventMarker:{primary:"przy",alternatives:["na","gdy"],position:"before"},temporalMarkers:["kiedy","gdy","przy"]}}}}),jr={};x(jr,{portugueseProfile:()=>Tr});var Er,Lr=b({"src/generators/profiles/portuguese.ts"(){Tr={code:"pt",name:"Portuguese",nativeName:"Portugu\u00eas",regions:["western","priority"],direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"eu",it:"ele",you:"voc\u00ea",result:"resultado",event:"evento",target:"alvo",body:"corpo",document:"documento",window:"janela",detail:"detalhe"},possessive:{marker:"de",markerPosition:"before-property",usePossessiveAdjectives:!0,specialForms:{me:"meu",it:"seu",you:"teu"},keywords:{meu:"me",minha:"me",teu:"you",tua:"you",seu:"it",sua:"it"}},roleMarkers:{destination:{primary:"em",alternatives:["para","a"],position:"before"},source:{primary:"de",alternatives:["desde"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"com",position:"before"}},keywords:{toggle:{primary:"alternar",alternatives:[],normalized:"toggle"},add:{primary:"adicionar",alternatives:["acrescentar"],normalized:"add"},remove:{primary:"remover",alternatives:["eliminar","apagar","remova"],normalized:"remove"},put:{primary:"colocar",alternatives:["p\u00f4r","por","coloque"],normalized:"put"},append:{primary:"anexar",normalized:"append"},prepend:{primary:"preceder",normalized:"prepend"},take:{primary:"pegar",alternatives:["pegue"],normalized:"take"},make:{primary:"fazer",alternatives:["criar"],normalized:"make"},clone:{primary:"clonar",alternatives:[],normalized:"clone"},swap:{primary:"trocar",alternatives:["substituir"],normalized:"swap"},morph:{primary:"transformar",alternatives:["converter"],normalized:"morph"},set:{primary:"definir",alternatives:["configurar","defina"],normalized:"set"},get:{primary:"obter",alternatives:["obtenha"],normalized:"get"},increment:{primary:"incrementar",alternatives:["aumentar"],normalized:"increment"},decrement:{primary:"decrementar",alternatives:["diminuir"],normalized:"decrement"},log:{primary:"registrar",alternatives:["imprimir"],normalized:"log"},show:{primary:"mostrar",alternatives:["exibir"],normalized:"show"},hide:{primary:"ocultar",alternatives:["esconder","esconda"],normalized:"hide"},transition:{primary:"transi\u00e7\u00e3o",alternatives:["animar"],normalized:"transition"},on:{primary:"em",alternatives:["ao"],normalized:"on"},trigger:{primary:"disparar",alternatives:["ativar"],normalized:"trigger"},send:{primary:"enviar",normalized:"send"},focus:{primary:"foco",alternatives:["focar"],normalized:"focus"},blur:{primary:"perda de foco",alternatives:["desfocar"],normalized:"blur"},empty:{primary:"esvaziar",alternatives:["vazio"],normalized:"empty"},open:{primary:"abrir",normalized:"open"},close:{primary:"fechar",normalized:"close"},select:{primary:"selecionar",normalized:"select"},clear:{primary:"limpar",normalized:"clear"},reset:{primary:"redefinir",alternatives:["resetar"],normalized:"reset"},breakpoint:{primary:"ponto-interrup\u00e7\u00e3o",alternatives:["ponto-interrupcao"],normalized:"breakpoint"},go:{primary:"ir",alternatives:["navegar","v\u00e1"],normalized:"go"},scroll:{primary:"rolagem",alternatives:["rolar","deslocamento","scroll"],normalized:"scroll"},push:{primary:"empurrar",alternatives:["push"],normalized:"push"},replace:{primary:"repor",alternatives:["recolocar"],normalized:"replace"},process:{primary:"processar",normalized:"process"},wait:{primary:"esperar",alternatives:["aguardar"],normalized:"wait"},fetch:{primary:"buscar",alternatives:["busque"],normalized:"fetch"},settle:{primary:"estabilizar",normalized:"settle"},if:{primary:"se",normalized:"if"},unless:{primary:"salvo",alternatives:["a_menos"],normalized:"unless"},when:{primary:"quando",normalized:"when"},changes:{primary:"muda",normalized:"changes"},where:{primary:"onde",normalized:"where"},else:{primary:"sen\u00e3o",normalized:"else"},repeat:{primary:"repetir",normalized:"repeat"},for:{primary:"para",normalized:"for"},while:{primary:"enquanto",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"continuar",normalized:"continue"},halt:{primary:"parar",normalized:"halt"},throw:{primary:"lan\u00e7ar",normalized:"throw"},call:{primary:"chamar",normalized:"call"},return:{primary:"retornar",alternatives:["devolver"],normalized:"return"},then:{primary:"ent\u00e3o",alternatives:["logo"],normalized:"then"},and:{primary:"e",alternatives:["tamb\u00e9m","al\u00e9m disso"],normalized:"and"},matches:{primary:"corresponde",normalized:"matches"},exists:{primary:"existe",normalized:"exists"},is:{primary:"\u00e9",normalized:"is"},no:{primary:"nenhum",normalized:"no"},end:{primary:"fim",alternatives:["final","t\u00e9rmino"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"ass\u00edncrono",normalized:"async"},tell:{primary:"dizer",normalized:"tell"},default:{primary:"padr\u00e3o",normalized:"default"},init:{primary:"inicializa\u00e7\u00e3o",alternatives:["iniciar","inicializar"],normalized:"init"},behavior:{primary:"comportamento",normalized:"behavior"},install:{primary:"instalar",normalized:"install"},measure:{primary:"medir",normalized:"measure"},beep:{primary:"apitar",normalized:"beep"},break:{primary:"interromper",normalized:"break"},copy:{primary:"copiar",normalized:"copy"},exit:{primary:"sair",normalized:"exit"},pick:{primary:"escolher",normalized:"pick"},render:{primary:"renderizar",normalized:"render"},into:{primary:"dentro",alternatives:["dentro de"],normalized:"into"},before:{primary:"antes",normalized:"before"},after:{primary:"depois",normalized:"after"},click:{primary:"clique",alternatives:["clicar"],normalized:"click"},resize:{primary:"redimensionamento",alternatives:["redimensionar"],normalized:"resize"},hover:{primary:"sobrevoar",alternatives:["passar"],normalized:"hover"},submit:{primary:"envio",alternatives:["submeter","submiss\u00e3o"],normalized:"submit"},input:{primary:"entrada",alternatives:["inser\u00e7\u00e3o"],normalized:"input"},change:{primary:"altera\u00e7\u00e3o",alternatives:["mudan\u00e7a"],normalized:"change"},mousedown:{primary:"mouse pressionado",alternatives:["rato pressionado","mouse baixo","mouseBaixo"],normalized:"mousedown"},mouseup:{primary:"mouse solto",alternatives:["mouse liberado","rato libertado","mouse cima","mouseCima"],normalized:"mouseup"},until:{primary:"at\u00e9",normalized:"until"},event:{primary:"evento",normalized:"event"},from:{primary:"de",alternatives:["desde"],normalized:"from"},connect:{primary:"conectar",alternatives:["conex\u00e3o"],normalized:"connect"},stream:{primary:"transmitir",alternatives:["fluxo"],normalized:"stream"},live:{primary:"ao-vivo",alternatives:["vivo","direto"],normalized:"live"},socket:{primary:"soquete",alternatives:["websocket"],normalized:"socket"},bind:{primary:"vincular",alternatives:["ligar","bind"],normalized:"bind"},intercept:{primary:"interceptar",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"trabalhador",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["fonte-de-eventos"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"em",alternatives:["ao"],normalized:"on"},sourceMarker:{primary:"de",alternatives:["desde"],position:"before"},conditionalKeyword:{primary:"quando",alternatives:["se"]},eventMarker:{primary:"ao",alternatives:["no","em"],position:"before"},temporalMarkers:["quando","ao"]}}}}),Cr={};x(Cr,{quechuaProfile:()=>Er});var Pr,_r=b({"src/generators/profiles/quechua.ts"(){Er={code:"qu",name:"Quechua",nativeName:"Runasimi",direction:"ltr",script:"latin",wordOrder:"SOV",markingStrategy:"postposition",usesSpaces:!0,verb:{position:"end",subjectDrop:!0},references:{me:"noqa",it:"chay",you:"qam",result:"rurasqa",event:"ruwakuq",target:"punta",body:"kurku",document:"qillqa",window:"k_iri",detail:"sut_iy"},possessive:{marker:"-pa",markerPosition:"after-object",keywords:{"\u00f1uqapa":"me","\u00f1uqaypa":"me",noqaq:"me",qampa:"you",paypa:"it",chay:"it"},connectors:["paq","pa"]},roleMarkers:{patient:{primary:"ta",position:"after"},destination:{primary:"man",alternatives:["pa"],position:"after"},source:{primary:"manta",position:"after"},style:{primary:"wan",position:"after"},event:{primary:"pi",position:"after"}},keywords:{toggle:{primary:"t'ikray",alternatives:["tikray"],normalized:"toggle"},add:{primary:"yapay",alternatives:["yapaykuy"],normalized:"add"},remove:{primary:"qichuy",alternatives:["hurquy","anchuchiy"],normalized:"remove"},put:{primary:"churay",alternatives:["tiyachiy"],normalized:"put"},append:{primary:"qatichiy",alternatives:["qhipaman_yapay"],normalized:"append"},prepend:{primary:"\u00f1awpachiy",normalized:"prepend"},take:{primary:"hapiy",normalized:"take"},make:{primary:"ruray",alternatives:["kamay"],normalized:"make"},clone:{primary:"kikinchay",alternatives:[],normalized:"clone"},swap:{primary:"t'inkuy",alternatives:["rantikunakuy","rantin_tikray"],normalized:"swap"},morph:{primary:"tukunay",alternatives:[],normalized:"morph"},set:{primary:"churanay",alternatives:["kamaykuy"],normalized:"set"},get:{primary:"taripay",normalized:"get"},increment:{primary:"yapachiy",normalized:"increment"},decrement:{primary:"pisiyachiy",normalized:"decrement"},log:{primary:"qillqakuy",alternatives:["willakuy"],normalized:"log"},show:{primary:"rikuchiy",alternatives:["qawachiy"],normalized:"show"},hide:{primary:"pakay",alternatives:["pakakuy"],normalized:"hide"},transition:{primary:"pasay",alternatives:[],normalized:"transition"},on:{primary:"chaypim",alternatives:["kaypi"],normalized:"on"},trigger:{primary:"kuyuchiy",alternatives:["kichay"],normalized:"trigger"},send:{primary:"kachay",alternatives:["apachiy"],normalized:"send"},focus:{primary:"qhawachiy",alternatives:["qhaway"],normalized:"focus"},blur:{primary:"paqariy",alternatives:["mana qhawachiy"],normalized:"blur"},empty:{primary:"ch'usaq",alternatives:["chusaq"],normalized:"empty"},open:{primary:"paskay",normalized:"open"},close:{primary:"wichqay",normalized:"close"},select:{primary:"marcay",normalized:"select"},clear:{primary:"pichay",normalized:"clear"},reset:{primary:"musuqchay",normalized:"reset"},breakpoint:{primary:"sayachinay",normalized:"breakpoint"},go:{primary:"riy",alternatives:["puriy"],normalized:"go"},scroll:{primary:"kunray",alternatives:[],normalized:"scroll"},push:{primary:"tanqay",normalized:"push"},replace:{primary:"tikray_url",alternatives:[],normalized:"replace"},process:{primary:"rurariy",normalized:"process"},wait:{primary:"suyay",normalized:"wait"},fetch:{primary:"apamuy",alternatives:["taripakaramuy"],normalized:"fetch"},settle:{primary:"tiyakuy",normalized:"settle"},if:{primary:"sichus",normalized:"if"},unless:{primary:"mana sichus",normalized:"unless"},when:{primary:"maykama",normalized:"when"},changes:{primary:"tukurikun",normalized:"changes"},where:{primary:"maypi",normalized:"where"},else:{primary:"manachus",alternatives:["hukniraq"],normalized:"else"},repeat:{primary:"kutipay",alternatives:["muyu"],normalized:"repeat"},for:{primary:"sapankaq",normalized:"for"},while:{primary:"kaykamaqa",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"qatipay",normalized:"continue"},halt:{primary:"sayay",alternatives:[],normalized:"halt"},throw:{primary:"chanqay",normalized:"throw"},call:{primary:"waqyay",alternatives:["qayay"],normalized:"call"},return:{primary:"kutimuy",alternatives:["kutichiy"],normalized:"return"},then:{primary:"chaymantataq",alternatives:["hinaspa","chaymanta"],normalized:"then"},and:{primary:"hinallataq",alternatives:["ima","chaymantawan"],normalized:"and"},matches:{primary:"tupan",normalized:"matches"},exists:{primary:"tiyan",normalized:"exists"},is:{primary:"kanqa",normalized:"is"},end:{primary:"tukukuy",alternatives:["tukuy","puchukay"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"mana waqtalla",normalized:"async"},tell:{primary:"niy",alternatives:[],normalized:"tell"},default:{primary:"\u00f1awpaq_kaq",alternatives:["qallariy"],normalized:"default"},init:{primary:"qallarichiy",normalized:"init"},behavior:{primary:"ruwana",normalized:"behavior"},install:{primary:"tarpuy",normalized:"install"},measure:{primary:"tupuy",normalized:"measure"},beep:{primary:"waqay",normalized:"beep"},break:{primary:"p'akiy",normalized:"break"},copy:{primary:"qillqay",normalized:"copy"},exit:{primary:"lluqsiy",normalized:"exit"},pick:{primary:"akllay",normalized:"pick"},render:{primary:"rikurichiy",normalized:"render"},into:{primary:"ukuman",normalized:"into"},before:{primary:"\u00f1awpaq",normalized:"before"},after:{primary:"qhipa",normalized:"after"},until:{primary:"kama",alternatives:["-kama"],normalized:"until"},event:{primary:"ruwakuq",alternatives:["imayna"],normalized:"event"},from:{primary:"manta",alternatives:["-manta"],normalized:"from"},click:{primary:"\u00f1itiy",normalized:"click"},load:{primary:"apakuy",normalized:"load"},submit:{primary:"apaykachay",normalized:"submit"},hover:{primary:"hawachiy",normalized:"hover"},input:{primary:"yaykuchiy",normalized:"input"},change:{primary:"kambiay",normalized:"change"},connect:{primary:"tinkiy",alternatives:["watay","hukllachay"],normalized:"connect"},stream:{primary:"phawachiy",alternatives:["sururichiy","ch'uquchiy"],normalized:"stream"},live:{primary:"kawsachkaq",alternatives:["kunan-pacha","kawsay"],normalized:"live"},socket:{primary:"tinkina",alternatives:["t'oqo","tinkiy-tinkina"],normalized:"socket"},bind:{primary:"bind",alternatives:["watachiy"],normalized:"bind"},intercept:{primary:"hark'ay",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"llamk'aq",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["kawsay-pukyu"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"pi",alternatives:["kaqtin"]},sourceMarker:{primary:"manta",position:"after"},eventMarker:{primary:"pi",alternatives:["kaqtin","kaqpi"],position:"after"}}}}}),Wr={};x(Wr,{russianProfile:()=>Pr});var Ar,qr=b({"src/generators/profiles/russian.ts"(){Pr={code:"ru",name:"Russian",nativeName:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",direction:"ltr",script:"cyrillic",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u044c","\u0442\u044c\u0441\u044f","\u0438\u0442\u044c","\u0438\u0442\u044c\u0441\u044f","\u0430\u0442\u044c","\u0430\u0442\u044c\u0441\u044f","\u0435\u0442\u044c","\u0435\u0442\u044c\u0441\u044f"]},references:{me:"\u044f",it:"\u044d\u0442\u043e",you:"\u0442\u044b",result:"\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442",event:"\u0441\u043e\u0431\u044b\u0442\u0438\u0435",target:"\u0446\u0435\u043b\u044c",body:"\u0442\u0435\u043b\u043e",document:"\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442",window:"\u043e\u043a\u043d\u043e",detail:"\u0434\u0435\u0442\u0430\u043b\u0438"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043c\u043e\u0439",it:"\u0435\u0433\u043e",you:"\u0442\u0432\u043e\u0439"},keywords:{"\u043c\u043e\u0439":"me","\u043c\u043e\u044f":"me","\u043c\u043e\u0451":"me","\u043c\u043e\u0438":"me","\u0442\u0432\u043e\u0439":"you","\u0442\u0432\u043e\u044f":"you","\u0442\u0432\u043e\u0451":"you","\u0442\u0432\u043e\u0438":"you","\u0435\u0433\u043e":"it","\u0435\u0451":"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043d\u0430","\u043a"],position:"before"},source:{primary:"\u0438\u0437",alternatives:["\u043e\u0442","\u0441"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0441",alternatives:["\u0441\u043e"],position:"before"}},keywords:{toggle:{primary:"\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c",alternatives:["\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c",alternatives:["\u0434\u043e\u0431\u0430\u0432\u044c"],normalized:"add",form:"infinitive"},remove:{primary:"\u0443\u0434\u0430\u043b\u0438\u0442\u044c",alternatives:["\u0443\u0434\u0430\u043b\u0438","\u0443\u0431\u0440\u0430\u0442\u044c","\u0443\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c",alternatives:["\u043f\u043e\u043b\u043e\u0436\u0438","\u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c","\u043f\u043e\u043c\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c","\u0432\u0441\u0442\u0430\u0432\u044c"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c",alternatives:["\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0435\u0446","\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c_\u0432_\u043a\u043e\u043d\u0435\u0446"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043d\u0430\u0447\u0430\u043b\u043e",alternatives:["\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c_\u0432_\u043d\u0430\u0447\u0430\u043b\u043e"],normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044f\u0442\u044c",alternatives:["\u0432\u043e\u0437\u044c\u043c\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u043e\u0437\u0434\u0430\u0442\u044c",alternatives:["\u0441\u043e\u0437\u0434\u0430\u0439"],normalized:"make",form:"infinitive"},clone:{primary:"\u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c",alternatives:["\u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c",alternatives:["\u043f\u043e\u043c\u0435\u043d\u044f\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c",alternatives:["\u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c",alternatives:["\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044c","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c",alternatives:["\u043f\u043e\u043b\u0443\u0447\u0438"],normalized:"get",form:"infinitive"},increment:{primary:"\u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c",alternatives:["\u0443\u0432\u0435\u043b\u0438\u0447\u044c"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c",alternatives:["\u0443\u043c\u0435\u043d\u044c\u0448\u0438"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c",alternatives:["\u0437\u0430\u043f\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c",alternatives:["\u043f\u043e\u043a\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u043a\u0440\u044b\u0442\u044c",alternatives:["\u0441\u043a\u0440\u043e\u0439","\u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c","\u0441\u043f\u0440\u044f\u0447\u044c"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c",alternatives:["\u0430\u043d\u0438\u043c\u0438\u0440\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043f\u0440\u0438",normalized:"on"},trigger:{primary:"\u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u0442\u044c",alternatives:["\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c","\u0437\u0430\u043f\u0443\u0441\u0442\u0438"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c",alternatives:["\u043e\u0442\u043f\u0440\u0430\u0432\u044c"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c",alternatives:["\u0441\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u0439","\u0444\u043e\u043a\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u0430\u0437\u043c\u044b\u0442\u044c",alternatives:["\u0440\u0430\u0437\u043c\u043e\u0439"],normalized:"blur",form:"infinitive"},empty:{primary:"\u043e\u043f\u0443\u0441\u0442\u043e\u0448\u0438\u0442\u044c",alternatives:["\u043f\u0443\u0441\u0442\u043e\u0439"],normalized:"empty"},open:{primary:"\u043e\u0442\u043a\u0440\u044b\u0442\u044c",normalized:"open"},close:{primary:"\u0437\u0430\u043a\u0440\u044b\u0442\u044c",normalized:"close"},select:{primary:"\u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c",normalized:"select"},clear:{primary:"\u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",normalized:"clear"},reset:{primary:"\u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c",normalized:"reset"},breakpoint:{primary:"\u0442\u043e\u0447\u043a\u0430-\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430",normalized:"breakpoint"},click:{primary:"\u043a\u043b\u0438\u043a",alternatives:["\u043a\u043b\u0438\u043a\u0435","\u043d\u0430\u0436\u0430\u0442\u0438\u0438"],normalized:"click"},hover:{primary:"\u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438",alternatives:["\u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0435"],normalized:"hover"},submit:{primary:"\u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435",alternatives:["\u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430"],normalized:"submit"},input:{primary:"\u0432\u0432\u043e\u0434\u0435",alternatives:["\u0432\u0432\u043e\u0434"],normalized:"input"},change:{primary:"\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438",alternatives:["\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435"],normalized:"change"},load:{primary:"\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430",alternatives:["\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435"],normalized:"load"},go:{primary:"\u043f\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043f\u0435\u0440\u0435\u0439\u0434\u0438","\u0438\u0434\u0442\u0438","\u0438\u0434\u0438"],normalized:"go",form:"infinitive"},scroll:{primary:"\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c",alternatives:["\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438"],normalized:"scroll",form:"infinitive"},push:{primary:"\u0432\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c",alternatives:["\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c"],normalized:"push",form:"infinitive"},replace:{primary:"\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c",alternatives:["\u0437\u0430\u043c\u0435\u043d\u0438"],normalized:"replace",form:"infinitive"},process:{primary:"\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c",alternatives:["\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0439"],normalized:"process",form:"infinitive"},wait:{primary:"\u0436\u0434\u0430\u0442\u044c",alternatives:["\u0436\u0434\u0438","\u043f\u043e\u0434\u043e\u0436\u0434\u0438"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c",alternatives:["\u0437\u0430\u0433\u0440\u0443\u0437\u0438"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c",normalized:"settle",form:"infinitive"},if:{primary:"\u0435\u0441\u043b\u0438",normalized:"if"},unless:{primary:"\u043a\u0440\u043e\u043c\u0435",normalized:"unless"},when:{primary:"\u043a\u043e\u0433\u0434\u0430",normalized:"when"},changes:{primary:"\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f",normalized:"changes"},where:{primary:"\u0433\u0434\u0435",normalized:"where"},else:{primary:"\u0438\u043d\u0430\u0447\u0435",normalized:"else"},repeat:{primary:"\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c",alternatives:["\u043f\u043e\u0432\u0442\u043e\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043b\u044f",alternatives:["\u043a\u0430\u0436\u0434\u044b\u0439"],normalized:"for"},while:{primary:"\u043f\u043e\u043a\u0430",normalized:"while"},forever:{primary:"\u0432\u0441\u0435\u0433\u0434\u0430",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c",alternatives:["\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438"],normalized:"continue",form:"infinitive"},halt:{primary:"\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c",alternatives:["\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0441\u044c","\u0441\u0442\u043e\u043f"],normalized:"halt",form:"infinitive"},throw:{primary:"\u0431\u0440\u043e\u0441\u0438\u0442\u044c",alternatives:["\u0431\u0440\u043e\u0441\u044c"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u044b\u0437\u0432\u0430\u0442\u044c",alternatives:["\u0432\u044b\u0437\u043e\u0432\u0438"],normalized:"call",form:"infinitive"},return:{primary:"\u0432\u0435\u0440\u043d\u0443\u0442\u044c",alternatives:["\u0432\u0435\u0440\u043d\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u0437\u0430\u0442\u0435\u043c",alternatives:["\u043f\u043e\u0442\u043e\u043c","\u0442\u043e\u0433\u0434\u0430"],normalized:"then"},and:{primary:"\u0438",normalized:"and"},matches:{primary:"\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442",normalized:"matches"},exists:{primary:"\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442",normalized:"exists"},is:{primary:"\u0435\u0441\u0442\u044c",normalized:"is"},no:{primary:"\u043d\u0435\u0442",normalized:"no"},end:{primary:"\u043a\u043e\u043d\u0435\u0446",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043a\u0430\u0437\u0430\u0442\u044c",alternatives:["\u0441\u043a\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u043f\u043e_\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",normalized:"default"},init:{primary:"\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c",alternatives:["\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435",normalized:"behavior"},install:{primary:"\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c",normalized:"install",form:"infinitive"},measure:{primary:"\u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c",alternatives:["\u0438\u0437\u043c\u0435\u0440\u044c"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043a",normalized:"beep"},break:{primary:"\u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c",normalized:"break"},copy:{primary:"\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c",normalized:"copy"},exit:{primary:"\u0432\u044b\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u044b\u0431\u0440\u0430\u0442\u044c",normalized:"pick"},render:{primary:"\u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0432\u043e"],normalized:"into"},before:{primary:"\u0434\u043e",alternatives:["\u043f\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043f\u043e\u0441\u043b\u0435",normalized:"after"},until:{primary:"\u043f\u043e\u043a\u0430_\u043d\u0435",normalized:"until"},event:{primary:"\u0441\u043e\u0431\u044b\u0442\u0438\u0435",normalized:"event"},from:{primary:"\u0438\u0437",alternatives:["\u043e\u0442","\u0441"],normalized:"from"},connect:{primary:"\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c",alternatives:["\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c","\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f"],normalized:"connect"},stream:{primary:"\u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c",alternatives:["\u043f\u043e\u0442\u043e\u043a","\u0441\u0442\u0440\u0438\u043c"],normalized:"stream"},live:{primary:"\u0432-\u043f\u0440\u044f\u043c\u043e\u043c-\u044d\u0444\u0438\u0440\u0435",alternatives:["\u043f\u0440\u044f\u043c\u043e\u0439-\u044d\u0444\u0438\u0440","\u0432\u0436\u0438\u0432\u0443\u044e","\u0436\u0438\u0432\u043e\u0439"],normalized:"live"},socket:{primary:"\u0441\u043e\u043a\u0435\u0442",alternatives:["\u0433\u043d\u0435\u0437\u0434\u043e","websocket","socket"],normalized:"socket"},bind:{primary:"\u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c",alternatives:["\u0441\u0432\u044f\u0437\u0430\u0442\u044c","bind"],normalized:"bind"},intercept:{primary:"\u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044c",alternatives:["\u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438","intercept"],normalized:"intercept"},worker:{primary:"\u0440\u0430\u0431\u043e\u0447\u0438\u0439",alternatives:["\u0432\u043e\u0440\u043a\u0435\u0440","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a-\u0441\u043e\u0431\u044b\u0442\u0438\u0439"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"\u043f\u0440\u0438",normalized:"on"},sourceMarker:{primary:"\u043d\u0430",alternatives:["\u0432","\u043f\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043f\u0440\u0438",position:"before"},temporalMarkers:["\u043a\u043e\u0433\u0434\u0430","\u0435\u0441\u043b\u0438"]}}}}),Mr={};x(Mr,{swahiliProfile:()=>Ar});var Or,Rr=b({"src/generators/profiles/swahili.ts"(){Ar={code:"sw",name:"Swahili",nativeName:"Kiswahili",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,verb:{position:"start",subjectDrop:!0},references:{me:"mimi",it:"hiyo",you:"wewe",result:"matokeo",event:"tukio",target:"lengo",body:"mwili",document:"hati",window:"dirisha",detail:"maelezo"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"yangu",it:"yake",you:"yako"},keywords:{wangu:"me",yangu:"me",langu:"me",changu:"me",wako:"you",yako:"you",lako:"you",chako:"you",wake:"it",yake:"it",lake:"it",chake:"it"}},roleMarkers:{destination:{primary:"kwenye",alternatives:["kwa"],position:"before"},source:{primary:"kutoka",position:"before"},patient:{primary:"",position:"before"},style:{primary:"na",position:"before"}},keywords:{toggle:{primary:"badilisha",normalized:"toggle"},add:{primary:"ongeza",normalized:"add"},remove:{primary:"ondoa",alternatives:["futa","toa"],normalized:"remove"},put:{primary:"weka",alternatives:["tia"],normalized:"put"},append:{primary:"ambatanisha",normalized:"append"},prepend:{primary:"tanguliza",normalized:"prepend"},take:{primary:"chukua",normalized:"take"},make:{primary:"tengeneza",alternatives:["unda"],normalized:"make"},clone:{primary:"nakili",alternatives:["rudufu"],normalized:"clone"},swap:{primary:"badilishana",alternatives:["badalisha"],normalized:"swap"},morph:{primary:"geuza",alternatives:["badilisha umbo"],normalized:"morph"},set:{primary:"seti",normalized:"set"},get:{primary:"pata",alternatives:["pokea"],normalized:"get"},increment:{primary:"ongezeko",normalized:"increment"},decrement:{primary:"punguza",normalized:"decrement"},log:{primary:"andika",alternatives:["rekodi"],normalized:"log"},show:{primary:"onyesha",normalized:"show"},hide:{primary:"ficha",alternatives:["mficho"],normalized:"hide"},transition:{primary:"hamisha",alternatives:["animisha","mpito"],normalized:"transition"},on:{primary:"unapo",alternatives:["kwenye"],normalized:"on"},trigger:{primary:"chochea",normalized:"trigger"},send:{primary:"tuma",alternatives:["peleka"],normalized:"send"},focus:{primary:"lenga",alternatives:["angazia"],normalized:"focus"},blur:{primary:"blur",normalized:"blur"},empty:{primary:"toa-kila-kitu",alternatives:["mwaga","tupu"],normalized:"empty"},open:{primary:"fungua",normalized:"open"},close:{primary:"funga",normalized:"close"},select:{primary:"alama",normalized:"select"},clear:{primary:"safisha",normalized:"clear"},reset:{primary:"anzisha-upya",normalized:"reset"},breakpoint:{primary:"nukta-simama",normalized:"breakpoint"},go:{primary:"nenda",alternatives:["enda","elekea"],normalized:"go"},scroll:{primary:"sogeza",alternatives:["skroli"],normalized:"scroll"},push:{primary:"sukuma",alternatives:["push"],normalized:"push"},replace:{primary:"badilisha_url",alternatives:["badili_url"],normalized:"replace"},process:{primary:"shughulikia",alternatives:["changanua"],normalized:"process"},wait:{primary:"subiri",alternatives:["ngoja"],normalized:"wait"},fetch:{primary:"leta",alternatives:["pakia"],normalized:"fetch"},settle:{primary:"tulia",alternatives:["imarika"],normalized:"settle"},if:{primary:"kama",alternatives:["ikiwa"],normalized:"if"},unless:{primary:"isipokuwa",normalized:"unless"},when:{primary:"wakati",normalized:"when"},changes:{primary:"inabadilika",normalized:"changes"},where:{primary:"wapi",normalized:"where"},else:{primary:"vinginevyo",alternatives:["sivyo"],normalized:"else"},repeat:{primary:"rudia",normalized:"repeat"},for:{primary:"kwa",normalized:"for"},while:{primary:"kadri",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"endelea",normalized:"continue"},halt:{primary:"simama",alternatives:["acha"],normalized:"halt"},throw:{primary:"tupa",normalized:"throw"},call:{primary:"ita",normalized:"call"},return:{primary:"rudisha",alternatives:["rejea"],normalized:"return"},then:{primary:"kisha",alternatives:["halafu","baadaye"],normalized:"then"},and:{primary:"na",alternatives:["pia","vilevile"],normalized:"and"},is:{primary:"ni",normalized:"is"},matches:{primary:"inafanana",normalized:"matches"},no:{primary:"hakuna",normalized:"no"},end:{primary:"mwisho",alternatives:["maliza","tamati"],normalized:"end"},js:{primary:"js",alternatives:["javascript"],normalized:"js"},async:{primary:"isiyo sawia",normalized:"async"},tell:{primary:"sema",alternatives:["ambia"],normalized:"tell"},default:{primary:"chaguo-msingi",alternatives:["msingi"],normalized:"default"},init:{primary:"anzisha",alternatives:["anza"],normalized:"init"},behavior:{primary:"tabia",normalized:"behavior"},install:{primary:"sakinisha",normalized:"install"},measure:{primary:"pima",normalized:"measure"},beep:{primary:"lia",normalized:"beep"},break:{primary:"vunja",normalized:"break"},copy:{primary:"nakala",normalized:"copy"},exit:{primary:"toka",normalized:"exit"},pick:{primary:"chagua",normalized:"pick"},render:{primary:"chora",normalized:"render"},into:{primary:"ndani",normalized:"into"},before:{primary:"kabla",normalized:"before"},after:{primary:"baada",normalized:"after"},until:{primary:"hadi",normalized:"until"},event:{primary:"tukio",normalized:"event"},from:{primary:"kutoka",normalized:"from"},connect:{primary:"unganisha",alternatives:["unga","ungana"],normalized:"connect"},stream:{primary:"tiririsha",alternatives:["mtiririko","strimu"],normalized:"stream"},live:{primary:"moja-kwa-moja",alternatives:["mubashara","hai"],normalized:"live"},socket:{primary:"soketi",alternatives:["tundu","soketi-wavuti"],normalized:"socket"},bind:{primary:"ambatisha",alternatives:["funganisha","bind"],normalized:"bind"},intercept:{primary:"zuia",alternatives:["nasa","intercept"],normalized:"intercept"},worker:{primary:"mfanyakazi",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["chanzo-matukio"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"unapo",alternatives:["kwenye","kwa","wakati"]},sourceMarker:{primary:"kutoka",position:"before"},conditionalKeyword:{primary:"unapo",alternatives:["anapo","tunapo","mnapo","wanapo"]},eventMarker:{primary:"unapo",alternatives:["kwenye","kwa","wakati"],position:"before"}}}}}),Nr={};x(Nr,{thaiProfile:()=>Or});var $r,Ir=b({"src/generators/profiles/thai.ts"(){Or={code:"th",name:"Thai",nativeName:"\u0e44\u0e17\u0e22",direction:"ltr",script:"thai",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,defaultVerbForm:"base",verb:{position:"second",subjectDrop:!0},references:{me:"\u0e09\u0e31\u0e19",it:"\u0e21\u0e31\u0e19",you:"\u0e04\u0e38\u0e13",result:"\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c",event:"\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c",target:"\u0e40\u0e1b\u0e49\u0e32\u0e2b\u0e21\u0e32\u0e22",body:"\u0e1a\u0e2d\u0e14\u0e35\u0e49"},possessive:{marker:"\u0e02\u0e2d\u0e07",markerPosition:"between",keywords:{"\u0e02\u0e2d\u0e07\u0e09\u0e31\u0e19":"me","\u0e02\u0e2d\u0e07\u0e1c\u0e21":"me","\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13":"you","\u0e02\u0e2d\u0e07\u0e21\u0e31\u0e19":"it","\u0e02\u0e2d\u0e07\u0e40\u0e02\u0e32":"it","\u0e02\u0e2d\u0e07\u0e40\u0e18\u0e2d":"it"}},roleMarkers:{patient:{primary:"",position:"before"},destination:{primary:"\u0e43\u0e19",alternatives:["\u0e44\u0e1b\u0e22\u0e31\u0e07"],position:"before"},source:{primary:"\u0e08\u0e32\u0e01",position:"before"},style:{primary:"\u0e14\u0e49\u0e27\u0e22",position:"before"}},keywords:{toggle:{primary:"\u0e2a\u0e25\u0e31\u0e1a",alternatives:[],normalized:"toggle"},add:{primary:"\u0e40\u0e1e\u0e34\u0e48\u0e21",alternatives:[],normalized:"add"},remove:{primary:"\u0e25\u0e1a",alternatives:["\u0e25\u0e1a\u0e2d\u0e2d\u0e01"],normalized:"remove"},put:{primary:"\u0e43\u0e2a\u0e48",alternatives:["\u0e27\u0e32\u0e07"],normalized:"put"},append:{primary:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e17\u0e49\u0e32\u0e22",alternatives:[],normalized:"append"},prepend:{primary:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e2b\u0e19\u0e49\u0e32",alternatives:[],normalized:"prepend"},take:{primary:"\u0e23\u0e31\u0e1a",alternatives:[],normalized:"take"},make:{primary:"\u0e2a\u0e23\u0e49\u0e32\u0e07",alternatives:[],normalized:"make"},clone:{primary:"\u0e42\u0e04\u0e25\u0e19",alternatives:["\u0e2a\u0e33\u0e40\u0e19\u0e32"],normalized:"clone"},swap:{primary:"\u0e2a\u0e25\u0e31\u0e1a\u0e17\u0e35\u0e48",alternatives:[],normalized:"swap"},morph:{primary:"\u0e41\u0e1b\u0e25\u0e07\u0e23\u0e48\u0e32\u0e07",alternatives:[],normalized:"morph"},set:{primary:"\u0e15\u0e31\u0e49\u0e07",alternatives:["\u0e01\u0e33\u0e2b\u0e19\u0e14"],normalized:"set"},get:{primary:"\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32",alternatives:[],normalized:"get"},increment:{primary:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e48\u0e32",alternatives:[],normalized:"increment"},decrement:{primary:"\u0e25\u0e14\u0e04\u0e48\u0e32",alternatives:[],normalized:"decrement"},log:{primary:"\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01",alternatives:[],normalized:"log"},show:{primary:"\u0e41\u0e2a\u0e14\u0e07",alternatives:[],normalized:"show"},hide:{primary:"\u0e0b\u0e48\u0e2d\u0e19",alternatives:[],normalized:"hide"},transition:{primary:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e1c\u0e48\u0e32\u0e19",alternatives:[],normalized:"transition"},on:{primary:"\u0e40\u0e21\u0e37\u0e48\u0e2d",alternatives:["\u0e15\u0e2d\u0e19"],normalized:"on"},trigger:{primary:"\u0e17\u0e23\u0e34\u0e01\u0e40\u0e01\u0e2d\u0e23\u0e4c",alternatives:[],normalized:"trigger"},send:{primary:"\u0e2a\u0e48\u0e07",alternatives:[],normalized:"send"},focus:{primary:"\u0e42\u0e1f\u0e01\u0e31\u0e2a",alternatives:[],normalized:"focus"},blur:{primary:"\u0e40\u0e1a\u0e25\u0e2d",alternatives:[],normalized:"blur"},empty:{primary:"\u0e25\u0e49\u0e32\u0e07",alternatives:["\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e27\u0e48\u0e32\u0e07","\u0e27\u0e48\u0e32\u0e07"],normalized:"empty"},open:{primary:"\u0e40\u0e1b\u0e34\u0e14",normalized:"open"},close:{primary:"\u0e1b\u0e34\u0e14",normalized:"close"},select:{primary:"\u0e17\u0e33\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22",normalized:"select"},clear:{primary:"\u0e40\u0e04\u0e25\u0e35\u0e22\u0e23\u0e4c",normalized:"clear"},reset:{primary:"\u0e23\u0e35\u0e40\u0e0b\u0e47\u0e15",normalized:"reset"},breakpoint:{primary:"\u0e08\u0e38\u0e14\u0e1e\u0e31\u0e01",normalized:"breakpoint"},click:{primary:"\u0e04\u0e25\u0e34\u0e01",normalized:"click"},hover:{primary:"\u0e42\u0e2e\u0e40\u0e27\u0e2d\u0e23\u0e4c",alternatives:["\u0e27\u0e32\u0e07\u0e40\u0e21\u0e32\u0e2a\u0e4c"],normalized:"hover"},submit:{primary:"\u0e22\u0e37\u0e48\u0e19",alternatives:["\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25"],normalized:"submit"},input:{primary:"\u0e1b\u0e49\u0e2d\u0e19",alternatives:["\u0e01\u0e23\u0e2d\u0e01"],normalized:"input"},changes:{primary:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19",normalized:"changes"},change:{primary:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19",alternatives:["\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07"],normalized:"change"},go:{primary:"\u0e44\u0e1b",alternatives:["\u0e44\u0e1b\u0e17\u0e35\u0e48"],normalized:"go"},scroll:{primary:"\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19",normalized:"scroll"},push:{primary:"\u0e14\u0e31\u0e19",alternatives:["\u0e1c\u0e25\u0e31\u0e01"],normalized:"push"},replace:{primary:"\u0e41\u0e17\u0e19\u0e17\u0e35\u0e48",alternatives:["\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19-url"],normalized:"replace"},process:{primary:"\u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25",alternatives:["\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23"],normalized:"process"},wait:{primary:"\u0e23\u0e2d",alternatives:[],normalized:"wait"},fetch:{primary:"\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25",alternatives:[],normalized:"fetch"},settle:{primary:"\u0e04\u0e07\u0e17\u0e35\u0e48",alternatives:[],normalized:"settle"},if:{primary:"\u0e16\u0e49\u0e32",alternatives:["\u0e2b\u0e32\u0e01"],normalized:"if"},unless:{primary:"unless",normalized:"unless"},when:{primary:"\u0e02\u0e13\u0e30\u0e17\u0e35\u0e48",normalized:"when"},where:{primary:"\u0e17\u0e35\u0e48\u0e44\u0e2b\u0e19",normalized:"where"},else:{primary:"\u0e44\u0e21\u0e48\u0e07\u0e31\u0e49\u0e19",alternatives:["\u0e44\u0e21\u0e48\u0e40\u0e0a\u0e48\u0e19\u0e19\u0e31\u0e49\u0e19"],normalized:"else"},repeat:{primary:"\u0e17\u0e33\u0e0b\u0e49\u0e33",alternatives:[],normalized:"repeat"},for:{primary:"\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a",alternatives:[],normalized:"for"},while:{primary:"\u0e43\u0e19\u0e02\u0e13\u0e30\u0e17\u0e35\u0e48",alternatives:[],normalized:"while"},forever:{primary:"\u0e15\u0e25\u0e2d\u0e14\u0e44\u0e1b",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u0e15\u0e48\u0e2d\u0e44\u0e1b",alternatives:[],normalized:"continue"},halt:{primary:"\u0e2b\u0e22\u0e38\u0e14",alternatives:[],normalized:"halt"},throw:{primary:"\u0e42\u0e22\u0e19",alternatives:[],normalized:"throw"},call:{primary:"\u0e40\u0e23\u0e35\u0e22\u0e01",alternatives:[],normalized:"call"},return:{primary:"\u0e04\u0e37\u0e19\u0e04\u0e48\u0e32",alternatives:["\u0e01\u0e25\u0e31\u0e1a"],normalized:"return"},then:{primary:"\u0e41\u0e25\u0e49\u0e27",alternatives:[],normalized:"then"},and:{primary:"\u0e41\u0e25\u0e30",alternatives:[],normalized:"and"},exists:{primary:"\u0e21\u0e35\u0e2d\u0e22\u0e39\u0e48",normalized:"exists"},end:{primary:"\u0e08\u0e1a",alternatives:[],normalized:"end"},js:{primary:"\u0e40\u0e08\u0e40\u0e2d\u0e2a",alternatives:["js"],normalized:"js"},async:{primary:"\u0e2d\u0e30\u0e0b\u0e34\u0e07\u0e04\u0e4c",alternatives:[],normalized:"async"},tell:{primary:"\u0e1a\u0e2d\u0e01",alternatives:[],normalized:"tell"},default:{primary:"\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19",alternatives:[],normalized:"default"},init:{primary:"\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19",alternatives:[],normalized:"init"},behavior:{primary:"\u0e1e\u0e24\u0e15\u0e34\u0e01\u0e23\u0e23\u0e21",alternatives:[],normalized:"behavior"},install:{primary:"\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07",alternatives:[],normalized:"install"},measure:{primary:"\u0e27\u0e31\u0e14",alternatives:[],normalized:"measure"},beep:{primary:"\u0e1a\u0e35\u0e4a\u0e1a",alternatives:[],normalized:"beep"},break:{primary:"\u0e02\u0e31\u0e14\u0e08\u0e31\u0e07\u0e2b\u0e27\u0e30",alternatives:[],normalized:"break"},copy:{primary:"\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01",alternatives:[],normalized:"copy"},exit:{primary:"\u0e2d\u0e2d\u0e01",alternatives:[],normalized:"exit"},pick:{primary:"\u0e40\u0e25\u0e37\u0e2d\u0e01",alternatives:[],normalized:"pick"},render:{primary:"\u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25",alternatives:[],normalized:"render"},into:{primary:"\u0e43\u0e19",alternatives:[],normalized:"into"},before:{primary:"\u0e01\u0e48\u0e2d\u0e19",alternatives:[],normalized:"before"},after:{primary:"\u0e2b\u0e25\u0e31\u0e07",alternatives:[],normalized:"after"},until:{primary:"\u0e08\u0e19\u0e16\u0e36\u0e07",alternatives:[],normalized:"until"},event:{primary:"\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c",alternatives:[],normalized:"event"},from:{primary:"\u0e08\u0e32\u0e01",normalized:"from"},connect:{primary:"\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d",alternatives:["\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21"],normalized:"connect"},stream:{primary:"\u0e2a\u0e15\u0e23\u0e35\u0e21",alternatives:["\u0e2a\u0e15\u0e23\u0e35\u0e21\u0e21\u0e34\u0e48\u0e07","\u0e01\u0e23\u0e30\u0e41\u0e2a"],normalized:"stream"},live:{primary:"\u0e44\u0e25\u0e1f\u0e4c",alternatives:["\u0e2a\u0e14","\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],normalized:"live"},socket:{primary:"\u0e0b\u0e47\u0e2d\u0e01\u0e40\u0e01\u0e47\u0e15",alternatives:["websocket","\u0e40\u0e27\u0e47\u0e1a\u0e0b\u0e47\u0e2d\u0e01\u0e40\u0e01\u0e47\u0e15","socket"],normalized:"socket"},intercept:{primary:"\u0e14\u0e31\u0e01\u0e08\u0e31\u0e1a",alternatives:["intercept","\u0e2a\u0e01\u0e31\u0e14\u0e01\u0e31\u0e49\u0e19"],normalized:"intercept"},worker:{primary:"\u0e40\u0e27\u0e34\u0e23\u0e4c\u0e01\u0e40\u0e01\u0e2d\u0e23\u0e4c",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0e2d\u0e35\u0e40\u0e27\u0e19\u0e15\u0e4c\u0e0b\u0e2d\u0e23\u0e4c\u0e2a"],normalized:"eventsource"},bind:{primary:"\u0e1c\u0e39\u0e01",alternatives:["bind"],normalized:"bind"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u0e40\u0e21\u0e37\u0e48\u0e2d",alternatives:["\u0e15\u0e2d\u0e19"],normalized:"on"},sourceMarker:{primary:"\u0e08\u0e32\u0e01",position:"before"},eventMarker:{primary:"\u0e40\u0e21\u0e37\u0e48\u0e2d",alternatives:["\u0e15\u0e2d\u0e19"],position:"before"},temporalMarkers:["\u0e40\u0e21\u0e37\u0e48\u0e2d","\u0e15\u0e2d\u0e19"]}}}}),Kr={};x(Kr,{tagalogProfile:()=>$r});var Vr,Br=b({"src/generators/profiles/tl.ts"(){$r={code:"tl",name:"Tagalog",nativeName:"Tagalog",direction:"ltr",script:"latin",wordOrder:"VSO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"ako",it:"ito",you:"ikaw",result:"resulta",event:"pangyayari",target:"target",body:"katawan",document:"dokumento",window:"bintana",detail:"detalye"},possessive:{marker:"ng",markerPosition:"between",keywords:{ko:"me",akin:"me",aking:"me",mo:"you",iyo:"you",niya:"it",nito:"it",kaniya:"it"}},roleMarkers:{destination:{primary:"sa",alternatives:["bago","matapos"],position:"before"},source:{primary:"mula_sa",position:"before"},patient:{primary:"",position:"before"},style:{primary:"nang",position:"before"}},keywords:{toggle:{primary:"palitan",alternatives:["itoggle"],normalized:"toggle"},add:{primary:"idagdag",alternatives:["magdagdag"],normalized:"add"},remove:{primary:"alisin",alternatives:["tanggalin"],normalized:"remove"},put:{primary:"ilagay",alternatives:["maglagay"],normalized:"put"},append:{primary:"idagdag_sa_dulo",normalized:"append"},prepend:{primary:"idagdag_sa_simula",normalized:"prepend"},take:{primary:"kumuha",normalized:"take"},make:{primary:"gumawa",alternatives:["lumikha"],normalized:"make"},clone:{primary:"i-clone",normalized:"clone"},swap:{primary:"palitan_pwesto",alternatives:["magpalit"],normalized:"swap"},morph:{primary:"baguhin",normalized:"morph"},set:{primary:"itakda",alternatives:["magtakda"],normalized:"set"},get:{primary:"kunin",normalized:"get"},increment:{primary:"dagdagan",alternatives:["taasan"],normalized:"increment"},decrement:{primary:"bawasan",alternatives:["ibaba"],normalized:"decrement"},log:{primary:"itala",normalized:"log"},show:{primary:"ipakita",alternatives:["magpakita"],normalized:"show"},hide:{primary:"itago",alternatives:["magtago"],normalized:"hide"},transition:{primary:"lumipat",normalized:"transition"},on:{primary:"kapag",normalized:"on"},trigger:{primary:"palitawin",alternatives:["magpatugtog"],normalized:"trigger"},send:{primary:"ipadala",alternatives:["magpadala"],normalized:"send"},focus:{primary:"ituon",normalized:"focus"},blur:{primary:"alisin_tuon",normalized:"blur"},empty:{primary:"walang-laman",alternatives:["alisin-laman","walang_laman"],normalized:"empty"},open:{primary:"buksan",normalized:"open"},close:{primary:"isara",normalized:"close"},select:{primary:"piliin",normalized:"select"},clear:{primary:"burahin",normalized:"clear"},reset:{primary:"i-reset",normalized:"reset"},breakpoint:{primary:"breakpoint",normalized:"breakpoint"},go:{primary:"pumunta",alternatives:["punta"],normalized:"go"},scroll:{primary:"iscroll",alternatives:["mag_scroll","scroll"],normalized:"scroll"},push:{primary:"itulak",alternatives:["ipush"],normalized:"push"},replace:{primary:"palitan_url",alternatives:["ireplace"],normalized:"replace"},process:{primary:"iproseso",alternatives:["proseso"],normalized:"process"},wait:{primary:"maghintay",alternatives:["hintay"],normalized:"wait"},fetch:{primary:"kuhanin_mula",alternatives:["kunin_mula"],normalized:"fetch"},settle:{primary:"magpatahimik",normalized:"settle"},if:{primary:"kung",normalized:"if"},unless:{primary:"maliban_kung",normalized:"unless"},when:{primary:"tuwing",normalized:"when"},changes:{primary:"nagbabago",normalized:"changes"},where:{primary:"kung_saan",normalized:"where"},else:{primary:"kung_hindi",alternatives:["kundi"],normalized:"else"},repeat:{primary:"ulitin",alternatives:["paulit-ulit"],normalized:"repeat"},for:{primary:"para_sa",normalized:"for"},while:{primary:"habang",normalized:"while"},forever:{primary:"magpakailanman",normalized:"forever",alternatives:["forever"]},continue:{primary:"magpatuloy",normalized:"continue"},halt:{primary:"itigil",alternatives:["huminto"],normalized:"halt"},throw:{primary:"ihagis",alternatives:["itapon"],normalized:"throw"},call:{primary:"tawagin",alternatives:["tawagan","tumawag"],normalized:"call"},return:{primary:"ibalik",alternatives:["bumalik"],normalized:"return"},then:{primary:"pagkatapos",alternatives:["saka"],normalized:"then"},and:{primary:"at",normalized:"and"},matches:{primary:"tumutugma",normalized:"matches"},is:{primary:"ay",normalized:"is"},end:{primary:"wakas",alternatives:["tapos"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"async",alternatives:["sabay"],normalized:"async"},tell:{primary:"sabihin",alternatives:["magsabi"],normalized:"tell"},default:{primary:"pamantayan",alternatives:["default","unang_halaga"],normalized:"default"},init:{primary:"simulan",alternatives:["magsimula"],normalized:"init"},behavior:{primary:"ugali",alternatives:["kilos"],normalized:"behavior"},install:{primary:"ikabit",alternatives:["mag-install"],normalized:"install"},measure:{primary:"sukatin",normalized:"measure"},beep:{primary:"tunog",normalized:"beep"},break:{primary:"putulin",normalized:"break"},copy:{primary:"kopyahin",normalized:"copy"},exit:{primary:"lumabas",normalized:"exit"},pick:{primary:"pumili",normalized:"pick"},render:{primary:"irender",normalized:"render"},into:{primary:"sa",normalized:"into"},before:{primary:"bago",normalized:"before"},after:{primary:"matapos",normalized:"after"},until:{primary:"hanggang",normalized:"until"},event:{primary:"pangyayari",normalized:"event"},from:{primary:"mula",alternatives:["galing"],normalized:"from"},connect:{primary:"ikonekta",alternatives:["kumonekta","connect"],normalized:"connect"},stream:{primary:"i-stream",alternatives:["stream","agos"],normalized:"stream"},live:{primary:"live",alternatives:["tuwiran","direkta"],normalized:"live"},socket:{primary:"socket",alternatives:["websocket"],normalized:"socket"},worker:{primary:"worker",alternatives:["manggagawa"],normalized:"worker"},eventsource:{primary:"eventsource",normalized:"eventsource"},intercept:{primary:"intercept",alternatives:["harangin","humarang"],normalized:"intercept"},bind:{primary:"itali",alternatives:["iugnay","bind"],normalized:"bind"}},eventHandler:{keyword:{primary:"kapag",normalized:"on"},sourceMarker:{primary:"mula_sa",alternatives:["galing_sa"],position:"before"},eventMarker:{primary:"kapag",position:"before"}}}}}),Dr={};x(Dr,{turkishProfile:()=>Vr});var Fr,Hr=b({"src/generators/profiles/turkish.ts"(){Vr={code:"tr",name:"Turkish",nativeName:"T\u00fcrk\u00e7e",regions:["priority"],direction:"ltr",script:"latin",wordOrder:"SOV",markingStrategy:"case-suffix",usesSpaces:!0,markersOptional:!0,verb:{position:"end",suffixes:["mek","mak","yor","di","mi\u015f"],subjectDrop:!0},references:{me:"ben",it:"o",you:"sen",result:"sonu\u00e7",event:"olay",target:"hedef",body:"g\u00f6vde",document:"belge",window:"pencere",detail:"detay"},possessive:{marker:"\u0131n",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"benim",it:"onun",you:"senin"},keywords:{benim:"me",senin:"you",onun:"it"}},roleMarkers:{patient:{primary:"i",alternatives:["\u0131","u","\u00fc","yi","y\u0131","yu","y\u00fc","ni","n\u0131","nu","n\u00fc"],position:"after"},destination:{primary:"e",alternatives:["a","ye","ya","ne","na","de","da","te","ta","\u0131n","in","un","\u00fcn","n\u0131n","nin","nun","n\u00fcn"],position:"after"},source:{primary:"den",alternatives:["dan","ten","tan"],position:"after"},style:{primary:"le",alternatives:["la","yle","yla","ile"],position:"after"},event:{primary:"i",alternatives:["\u0131","u","\u00fc"],position:"after"}},keywords:{toggle:{primary:"de\u011fi\u015ftir",alternatives:["a\u00e7/kapat"],normalized:"toggle"},add:{primary:"ekle",normalized:"add"},remove:{primary:"kald\u0131r",alternatives:["sil"],normalized:"remove"},put:{primary:"koy",normalized:"put"},append:{primary:"ili\u015ftir",normalized:"append"},prepend:{primary:"ba\u015f\u0131naekle",normalized:"prepend"},take:{primary:"tut",normalized:"take"},make:{primary:"yap",normalized:"make"},clone:{primary:"klonla",normalized:"clone"},swap:{primary:"takas",normalized:"swap"},morph:{primary:"d\u00f6n\u00fc\u015ft\u00fcr",alternatives:["\u015fekil de\u011fi\u015ftir"],normalized:"morph"},set:{primary:"ayarla",alternatives:["belirle"],normalized:"set"},get:{primary:"al",normalized:"get"},increment:{primary:"art\u0131r",normalized:"increment"},decrement:{primary:"azalt",normalized:"decrement"},log:{primary:"kaydet",normalized:"log"},show:{primary:"g\u00f6ster",normalized:"show"},hide:{primary:"gizle",normalized:"hide"},transition:{primary:"ge\u00e7i\u015f",normalized:"transition"},on:{primary:"\u00fczerinde",alternatives:["zaman"],normalized:"on"},trigger:{primary:"tetikle",normalized:"trigger"},send:{primary:"g\u00f6nder",normalized:"send"},focus:{primary:"odaklanma",alternatives:["odak"],normalized:"focus"},blur:{primary:"odak kayb\u0131",alternatives:["odak kaybi","bulan\u0131k","bulan\u0131kl\u0131k","bulanik"],normalized:"blur"},empty:{primary:"bo\u015falt",alternatives:["bosalt","bo\u015f"],normalized:"empty"},open:{primary:"a\u00e7",alternatives:["ac"],normalized:"open"},close:{primary:"kapat",normalized:"close"},select:{primary:"vurgula",normalized:"select"},clear:{primary:"temizle",normalized:"clear"},reset:{primary:"s\u0131f\u0131rla",alternatives:["sifirla"],normalized:"reset"},breakpoint:{primary:"kesme-noktas\u0131",alternatives:["kesme-noktasi"],normalized:"breakpoint"},click:{primary:"t\u0131klama",alternatives:["t\u0131kla","tiklama","t\u0131k","tik"],normalized:"click"},hover:{primary:"\u00fczerine gelme",alternatives:["\u00fczerinde gezinme"],normalized:"hover"},submit:{primary:"g\u00f6nderme",normalized:"submit"},input:{primary:"girdi",alternatives:["giri\u015f","giris"],normalized:"input"},change:{primary:"de\u011fi\u015fiklik",alternatives:["de\u011fi\u015fim","degisim"],normalized:"change"},load:{primary:"y\u00fckle",normalized:"load"},go:{primary:"git",normalized:"go"},scroll:{primary:"kayd\u0131rma",alternatives:["kaydirma","kayd\u0131r","kaydir"],normalized:"scroll"},push:{primary:"itele",alternatives:["push"],normalized:"push"},replace:{primary:"de\u011fi\u015ftir_url",alternatives:["degistir_url"],normalized:"replace"},process:{primary:"i\u015fle",alternatives:["isle"],normalized:"process"},wait:{primary:"bekle",normalized:"wait"},fetch:{primary:"getir",normalized:"fetch"},settle:{primary:"sabitlen",normalized:"settle"},if:{primary:"e\u011fer",normalized:"if"},unless:{primary:"de\u011filse",normalized:"unless"},when:{primary:"iken",alternatives:["durumunda","oldu\u011funda"],normalized:"when"},changes:{primary:"de\u011fi\u015fti\u011finde",normalized:"changes"},where:{primary:"nerede",normalized:"where"},else:{primary:"yoksa",normalized:"else"},repeat:{primary:"tekrarla",normalized:"repeat"},for:{primary:"i\u00e7in",normalized:"for"},while:{primary:"s\u00fcresince",normalized:"while"},forever:{primary:"forever",normalized:"forever"},continue:{primary:"devam",normalized:"continue"},halt:{primary:"durdur",normalized:"halt"},throw:{primary:"f\u0131rlat",normalized:"throw"},call:{primary:"\u00e7a\u011f\u0131r",normalized:"call"},return:{primary:"d\u00f6n",normalized:"return"},then:{primary:"ard\u0131ndan",alternatives:["daha sonra","ardindan"],normalized:"then"},and:{primary:"ve",alternatives:["ayr\u0131ca","hem de"],normalized:"and"},or:{primary:"veya",normalized:"or"},not:{primary:"de\u011fil",alternatives:["degil"],normalized:"not"},matches:{primary:"e\u015fle\u015fir",normalized:"matches"},is:{primary:"dir",normalized:"is"},no:{primary:"yok",normalized:"no"},end:{primary:"son",alternatives:["biti\u015f","bitti"],normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"asenkron",normalized:"async"},tell:{primary:"s\u00f6yle",normalized:"tell"},default:{primary:"varsay\u0131lan",normalized:"default"},init:{primary:"ba\u015flat",normalized:"init"},behavior:{primary:"davran\u0131\u015f",normalized:"behavior"},install:{primary:"kur",alternatives:["y\u00fcklemek"],normalized:"install"},measure:{primary:"\u00f6l\u00e7",normalized:"measure"},beep:{primary:"bip",normalized:"beep"},break:{primary:"dur",normalized:"break"},copy:{primary:"kopyala",normalized:"copy"},exit:{primary:"\u00e7\u0131k",normalized:"exit"},pick:{primary:"se\u00e7",normalized:"pick"},render:{primary:"render",normalized:"render"},into:{primary:"i\u00e7ine",normalized:"into"},before:{primary:"\u00f6nce",normalized:"before"},after:{primary:"sonra",normalized:"after"},until:{primary:"kadar",normalized:"until"},event:{primary:"olay",normalized:"event"},from:{primary:"den",alternatives:["dan"],normalized:"from"},connect:{primary:"ba\u011flan",alternatives:["ba\u011fla","ba\u011flant\u0131"],normalized:"connect"},stream:{primary:"yay\u0131nla",alternatives:["ak\u0131t","ak\u0131\u015f"],normalized:"stream"},live:{primary:"canl\u0131",alternatives:["ger\u00e7ek-zamanl\u0131"],normalized:"live"},socket:{primary:"soket",alternatives:["websocket"],normalized:"socket"},bind:{primary:"bind",normalized:"bind"},intercept:{primary:"yakala",alternatives:["araya-gir","intercept"],normalized:"intercept"},worker:{primary:"i\u015f\u00e7i",alternatives:["worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["olay-kayna\u011f\u0131"],normalized:"eventsource"}},eventHandler:{eventMarker:{primary:"da",alternatives:["de","ta","te"],position:"after"},temporalMarkers:["d\u0131\u011f\u0131nda","di\u011finde"]}}}}),Ur={};x(Ur,{ukrainianProfile:()=>Fr});var Gr,Zr=b({"src/generators/profiles/ukrainian.ts"(){Fr={code:"uk",name:"Ukrainian",nativeName:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",direction:"ltr",script:"cyrillic",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"infinitive",verb:{position:"start",subjectDrop:!0,suffixes:["\u0442\u0438","\u0442\u0438\u0441\u044f","\u0438\u0442\u0438","\u0438\u0442\u0438\u0441\u044f","\u0430\u0442\u0438","\u0430\u0442\u0438\u0441\u044f","\u0456\u0442\u0438","\u0456\u0442\u0438\u0441\u044f"]},references:{me:"\u044f",it:"\u0446\u0435",you:"\u0442\u0438",result:"\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442",event:"\u043f\u043e\u0434\u0456\u044f",target:"\u0446\u0456\u043b\u044c",body:"\u0442\u0456\u043b\u043e",document:"\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442",window:"\u0432\u0456\u043a\u043d\u043e",detail:"\u0434\u0435\u0442\u0430\u043b\u0456"},possessive:{marker:"",markerPosition:"after-object",usePossessiveAdjectives:!0,specialForms:{me:"\u043c\u0456\u0439",it:"\u0439\u043e\u0433\u043e",you:"\u0442\u0432\u0456\u0439"},keywords:{"\u043c\u0456\u0439":"me","\u043c\u043e\u044f":"me","\u043c\u043e\u0454":"me","\u043c\u043e\u0457":"me","\u0442\u0432\u0456\u0439":"you","\u0442\u0432\u043e\u044f":"you","\u0442\u0432\u043e\u0454":"you","\u0442\u0432\u043e\u0457":"you","\u0439\u043e\u0433\u043e":"it","\u0457\u0457":"it"}},roleMarkers:{destination:{primary:"\u0432",alternatives:["\u043d\u0430","\u0434\u043e"],position:"before"},source:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"\u0437",alternatives:["\u0456\u0437"],position:"before"}},keywords:{toggle:{primary:"\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0443\u0442\u0438",alternatives:["\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0438"],normalized:"toggle",form:"infinitive"},add:{primary:"\u0434\u043e\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043e\u0434\u0430\u0439"],normalized:"add",form:"infinitive"},remove:{primary:"\u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043b\u0438","\u043f\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043f\u0440\u0438\u0431\u0435\u0440\u0438"],normalized:"remove",form:"infinitive"},put:{primary:"\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438",alternatives:["\u043f\u043e\u043a\u043b\u0430\u0434\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438\u0442\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"],normalized:"put",form:"infinitive"},append:{primary:"\u0434\u043e\u043f\u0438\u0441\u0430\u0442\u0438",alternatives:["\u0434\u043e\u0434\u0430\u0442\u0438 \u0432 \u043a\u0456\u043d\u0435\u0446\u044c","\u0434\u043e\u0434\u0430\u0442\u0438_\u0432_\u043a\u0456\u043d\u0435\u0446\u044c"],normalized:"append",form:"infinitive"},prepend:{primary:"\u0434\u043e\u0434\u0430\u0442\u0438 \u043d\u0430 \u043f\u043e\u0447\u0430\u0442\u043e\u043a",alternatives:["\u0434\u043e\u0434\u0430\u0442\u0438_\u043d\u0430_\u043f\u043e\u0447\u0430\u0442\u043e\u043a"],normalized:"prepend",form:"infinitive"},take:{primary:"\u0432\u0437\u044f\u0442\u0438",alternatives:["\u0432\u0456\u0437\u044c\u043c\u0438"],normalized:"take",form:"infinitive"},make:{primary:"\u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438",alternatives:["\u0441\u0442\u0432\u043e\u0440\u0438"],normalized:"make",form:"infinitive"},clone:{primary:"\u043a\u043b\u043e\u043d\u0443\u0432\u0430\u0442\u0438",alternatives:["\u043a\u043b\u043e\u043d\u0443\u0439"],normalized:"clone",form:"infinitive"},swap:{primary:"\u043f\u043e\u043c\u0456\u043d\u044f\u0442\u0438",alternatives:["\u043f\u043e\u043c\u0456\u043d\u044f\u0439"],normalized:"swap",form:"infinitive"},morph:{primary:"\u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0443\u0439"],normalized:"morph",form:"infinitive"},set:{primary:"\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"],normalized:"set",form:"infinitive"},get:{primary:"\u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438",alternatives:["\u043e\u0442\u0440\u0438\u043c\u0430\u0439"],normalized:"get",form:"infinitive"},increment:{primary:"\u0437\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043b\u044c\u0448"],normalized:"increment",form:"infinitive"},decrement:{primary:"\u0437\u043c\u0435\u043d\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043c\u0435\u043d\u0448"],normalized:"decrement",form:"infinitive"},log:{primary:"\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u0438",alternatives:["\u0437\u0430\u043f\u0438\u0448\u0438"],normalized:"log",form:"infinitive"},show:{primary:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043f\u043e\u043a\u0430\u0436\u0438"],normalized:"show",form:"infinitive"},hide:{primary:"\u0441\u0445\u043e\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043e\u0432\u0430\u0439","\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438","\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0439"],normalized:"hide",form:"infinitive"},transition:{primary:"\u0430\u043d\u0456\u043c\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0430\u043d\u0456\u043c\u0443\u0439"],normalized:"transition",form:"infinitive"},on:{primary:"\u043f\u0440\u0438",normalized:"on"},trigger:{primary:"\u0456\u043d\u0456\u0446\u0456\u044e\u0432\u0430\u0442\u0438",alternatives:["\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438","\u0437\u0430\u043f\u0443\u0441\u0442\u0438"],normalized:"trigger",form:"infinitive"},send:{primary:"\u043d\u0430\u0434\u0456\u0441\u043b\u0430\u0442\u0438",alternatives:["\u043d\u0430\u0434\u0456\u0448\u043b\u0438"],normalized:"send",form:"infinitive"},focus:{primary:"\u0441\u0444\u043e\u043a\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0444\u043e\u043a\u0443\u0441\u0443\u0439","\u0444\u043e\u043a\u0443\u0441"],normalized:"focus",form:"infinitive"},blur:{primary:"\u0440\u043e\u0437\u0444\u043e\u043a\u0443\u0441\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0440\u043e\u0437\u0444\u043e\u043a\u0443\u0441\u0443\u0439"],normalized:"blur",form:"infinitive"},empty:{primary:"\u0441\u043f\u043e\u0440\u043e\u0436\u043d\u0438\u0442\u0438",alternatives:["\u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439"],normalized:"empty"},open:{primary:"\u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438",normalized:"open"},close:{primary:"\u0437\u0430\u043a\u0440\u0438\u0442\u0438",normalized:"close"},select:{primary:"\u0432\u0438\u0434\u0456\u043b\u0438\u0442\u0438",normalized:"select"},clear:{primary:"\u043e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",normalized:"clear"},reset:{primary:"\u0441\u043a\u0438\u043d\u0443\u0442\u0438",normalized:"reset"},breakpoint:{primary:"\u0442\u043e\u0447\u043a\u0430-\u0437\u0443\u043f\u0438\u043d\u043a\u0438",normalized:"breakpoint"},click:{primary:"\u043a\u043b\u0456\u043a\u0443",alternatives:["\u043a\u043b\u0456\u043a","\u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u043d\u0456"],normalized:"click"},hover:{primary:"\u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u0456",alternatives:["\u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u044f"],normalized:"hover"},submit:{primary:"\u0432\u0456\u0434\u043f\u0440\u0430\u0432\u0446\u0456",alternatives:["\u0432\u0456\u0434\u043f\u0440\u0430\u0432\u043a\u0430","\u043d\u0430\u0434\u0441\u0438\u043b\u0430\u043d\u043d\u044f"],normalized:"submit"},input:{primary:"\u0432\u0432\u0435\u0434\u0435\u043d\u043d\u0456",alternatives:["\u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f"],normalized:"input"},change:{primary:"\u0437\u043c\u0456\u043d\u0456",alternatives:["\u0437\u043c\u0456\u043d\u0430"],normalized:"change"},load:{primary:"\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f",normalized:"load"},go:{primary:"\u043f\u0435\u0440\u0435\u0439\u0442\u0438",alternatives:["\u043f\u0435\u0440\u0435\u0439\u0434\u0438","\u0439\u0442\u0438","\u0439\u0434\u0438"],normalized:"go",form:"infinitive"},scroll:{primary:"\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u0438",alternatives:["\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438"],normalized:"scroll",form:"infinitive"},push:{primary:"\u0448\u0442\u043e\u0432\u0445\u043d\u0443\u0442\u0438",alternatives:["\u0437\u0430\u0448\u0442\u043e\u0432\u0445\u043d\u0443\u0442\u0438"],normalized:"push",form:"infinitive"},replace:{primary:"\u0437\u0430\u043c\u0456\u043d\u0438\u0442\u0438",alternatives:["\u0437\u0430\u043c\u0456\u043d\u0438"],normalized:"replace",form:"infinitive"},process:{primary:"\u043e\u0431\u0440\u043e\u0431\u0438\u0442\u0438",alternatives:["\u043e\u0431\u0440\u043e\u0431\u043b\u044f\u0442\u0438"],normalized:"process",form:"infinitive"},wait:{primary:"\u0447\u0435\u043a\u0430\u0442\u0438",alternatives:["\u0447\u0435\u043a\u0430\u0439","\u0437\u0430\u0447\u0435\u043a\u0430\u0439"],normalized:"wait",form:"infinitive"},fetch:{primary:"\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438",alternatives:["\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436"],normalized:"fetch",form:"infinitive"},settle:{primary:"\u0441\u0442\u0430\u0431\u0456\u043b\u0456\u0437\u0443\u0432\u0430\u0442\u0438",normalized:"settle",form:"infinitive"},if:{primary:"\u044f\u043a\u0449\u043e",normalized:"if"},unless:{primary:"\u043a\u0440\u0456\u043c",normalized:"unless"},when:{primary:"\u043a\u043e\u043b\u0438",normalized:"when"},changes:{primary:"\u0437\u043c\u0456\u043d\u044e\u0454\u0442\u044c\u0441\u044f",normalized:"changes"},where:{primary:"\u0434\u0435",normalized:"where"},else:{primary:"\u0456\u043d\u0430\u043a\u0448\u0435",normalized:"else"},repeat:{primary:"\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0438",alternatives:["\u043f\u043e\u0432\u0442\u043e\u0440\u0438"],normalized:"repeat",form:"infinitive"},for:{primary:"\u0434\u043b\u044f",alternatives:["\u043a\u043e\u0436\u043d\u0438\u0439"],normalized:"for"},while:{primary:"\u043f\u043e\u043a\u0438",normalized:"while"},forever:{primary:"\u0437\u0430\u0432\u0436\u0434\u0438",normalized:"forever",alternatives:["forever"]},continue:{primary:"\u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",alternatives:["\u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0443\u0439"],normalized:"continue",form:"infinitive"},halt:{primary:"\u0437\u0443\u043f\u0438\u043d\u0438\u0442\u0438",alternatives:["\u0437\u0443\u043f\u0438\u043d\u0438\u0441\u044c","\u0441\u0442\u043e\u043f"],normalized:"halt",form:"infinitive"},throw:{primary:"\u043a\u0438\u043d\u0443\u0442\u0438",alternatives:["\u043a\u0438\u043d\u044c"],normalized:"throw",form:"infinitive"},call:{primary:"\u0432\u0438\u043a\u043b\u0438\u043a\u0430\u0442\u0438",alternatives:["\u0432\u0438\u043a\u043b\u0438\u0447"],normalized:"call",form:"infinitive"},return:{primary:"\u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438",alternatives:["\u043f\u043e\u0432\u0435\u0440\u043d\u0438"],normalized:"return",form:"infinitive"},then:{primary:"\u043f\u043e\u0442\u0456\u043c",alternatives:["\u0434\u0430\u043b\u0456","\u0442\u043e\u0434\u0456"],normalized:"then"},and:{primary:"\u0456",alternatives:["\u0442\u0430"],normalized:"and"},matches:{primary:"\u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454",normalized:"matches"},exists:{primary:"\u0456\u0441\u043d\u0443\u0454",normalized:"exists"},is:{primary:"\u0454",normalized:"is"},no:{primary:"\u043d\u0456",normalized:"no"},end:{primary:"\u043a\u0456\u043d\u0435\u0446\u044c",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"\u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e",alternatives:["async"],normalized:"async"},tell:{primary:"\u0441\u043a\u0430\u0437\u0430\u0442\u0438",alternatives:["\u0441\u043a\u0430\u0436\u0438"],normalized:"tell",form:"infinitive"},default:{primary:"\u0437\u0430_\u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c",normalized:"default"},init:{primary:"\u0456\u043d\u0456\u0446\u0456\u0430\u043b\u0456\u0437\u0443\u0432\u0430\u0442\u0438",alternatives:["\u0456\u043d\u0456\u0446\u0456\u0430\u043b\u0456\u0437\u0443\u0439"],normalized:"init",form:"infinitive"},behavior:{primary:"\u043f\u043e\u0432\u0435\u0434\u0456\u043d\u043a\u0430",normalized:"behavior"},install:{primary:"\u0456\u043d\u0441\u0442\u0430\u043b\u044e\u0432\u0430\u0442\u0438",normalized:"install",form:"infinitive"},measure:{primary:"\u0432\u0438\u043c\u0456\u0440\u044f\u0442\u0438",alternatives:["\u0432\u0438\u043c\u0456\u0440\u044f\u0439"],normalized:"measure",form:"infinitive"},beep:{primary:"\u0437\u0432\u0443\u043a",normalized:"beep"},break:{primary:"\u043f\u0435\u0440\u0435\u0440\u0432\u0430\u0442\u0438",normalized:"break"},copy:{primary:"\u043a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438",normalized:"copy"},exit:{primary:"\u0432\u0438\u0439\u0442\u0438",normalized:"exit"},pick:{primary:"\u0432\u0438\u0431\u0440\u0430\u0442\u0438",normalized:"pick"},render:{primary:"\u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0438",normalized:"render"},into:{primary:"\u0432",alternatives:["\u0443"],normalized:"into"},before:{primary:"\u0434\u043e",alternatives:["\u043f\u0435\u0440\u0435\u0434"],normalized:"before"},after:{primary:"\u043f\u0456\u0441\u043b\u044f",normalized:"after"},until:{primary:"\u043f\u043e\u043a\u0438_\u043d\u0435",normalized:"until"},event:{primary:"\u043f\u043e\u0434\u0456\u044f",normalized:"event"},from:{primary:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"],normalized:"from"},connect:{primary:"\u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0438",alternatives:["\u0437\u02bc\u0454\u0434\u043d\u0430\u0442\u0438","\u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0438\u0441\u044f"],normalized:"connect"},stream:{primary:"\u0442\u0440\u0430\u043d\u0441\u043b\u044e\u0432\u0430\u0442\u0438",alternatives:["\u043f\u043e\u0442\u0456\u043a","\u0441\u0442\u0440\u0456\u043c"],normalized:"stream"},live:{primary:"\u043d\u0430\u0436\u0438\u0432\u043e",alternatives:["\u0443-\u043f\u0440\u044f\u043c\u043e\u043c\u0443-\u0435\u0444\u0456\u0440\u0456","\u0432-\u0440\u0435\u0436\u0438\u043c\u0456-\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e-\u0447\u0430\u0441\u0443","\u0436\u0438\u0432\u0438\u0439"],normalized:"live"},socket:{primary:"\u0441\u043e\u043a\u0435\u0442",alternatives:["\u0433\u043d\u0456\u0437\u0434\u043e","websocket","socket"],normalized:"socket"},bind:{primary:"\u043f\u0440\u0438\u0432'\u044f\u0437\u0430\u0442\u0438",alternatives:["\u0437\u0432'\u044f\u0437\u0430\u0442\u0438","\u043f\u0440\u0438\u0454\u0434\u043d\u0430\u0442\u0438","bind"],normalized:"bind"},intercept:{primary:"\u043f\u0435\u0440\u0435\u0445\u043e\u043f\u0438\u0442\u0438",alternatives:["\u043f\u0435\u0440\u0435\u0445\u043e\u043f\u043b\u0435\u043d\u043d\u044f","intercept"],normalized:"intercept"},worker:{primary:"\u0440\u043e\u0431\u0456\u0442\u043d\u0438\u043a",alternatives:["\u0432\u043e\u0440\u043a\u0435\u0440","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u0434\u0436\u0435\u0440\u0435\u043b\u043e-\u043f\u043e\u0434\u0456\u0439"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"\u043f\u0440\u0438",normalized:"on"},sourceMarker:{primary:"\u043d\u0430",alternatives:["\u0432","\u043f\u0440\u0438"],position:"before"},eventMarker:{primary:"\u043f\u0440\u0438",position:"before"},temporalMarkers:["\u043a\u043e\u043b\u0438","\u044f\u043a\u0449\u043e"]}}}}),Yr={};x(Yr,{vietnameseProfile:()=>Gr});var Xr,Qr=b({"src/generators/profiles/vietnamese.ts"(){Gr={code:"vi",name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t",direction:"ltr",script:"latin",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!0,defaultVerbForm:"base",verb:{position:"start",subjectDrop:!0},references:{me:"t\u00f4i",it:"n\u00f3",you:"b\u1ea1n",result:"k\u1ebft qu\u1ea3",event:"s\u1ef1 ki\u1ec7n",target:"m\u1ee5c ti\u00eau",body:"body"},possessive:{marker:"c\u1ee7a",markerPosition:"between",specialForms:{me:"c\u1ee7a t\u00f4i",it:"c\u1ee7a n\u00f3",you:"c\u1ee7a b\u1ea1n"},keywords:{"c\u1ee7a t\u00f4i":"me",my:"me","c\u1ee7a b\u1ea1n":"you","c\u1ee7a anh":"you","c\u1ee7a ch\u1ecb":"you","c\u1ee7a n\u00f3":"it"}},roleMarkers:{destination:{primary:"v\u00e0o",alternatives:["cho","\u0111\u1ebfn"],position:"before"},source:{primary:"t\u1eeb",alternatives:["kh\u1ecfi"],position:"before"},patient:{primary:"",position:"before"},style:{primary:"v\u1edbi",position:"before"}},keywords:{toggle:{primary:"chuy\u1ec3n \u0111\u1ed5i",alternatives:["b\u1eadt t\u1eaft","chuy\u1ec3n"],normalized:"toggle"},add:{primary:"th\u00eam",alternatives:["b\u1ed5 sung"],normalized:"add"},remove:{primary:"x\u00f3a",alternatives:["g\u1ee1 b\u1ecf","lo\u1ea1i b\u1ecf","b\u1ecf"],normalized:"remove"},put:{primary:"\u0111\u1eb7t",alternatives:["\u0111\u1ec3","\u0111\u01b0a"],normalized:"put"},append:{primary:"n\u1ed1i",normalized:"append"},prepend:{primary:"th\u00eam v\u00e0o \u0111\u1ea7u",normalized:"prepend"},take:{primary:"l\u1ea5y",normalized:"take"},make:{primary:"t\u1ea1o",normalized:"make"},clone:{primary:"nh\u00e2n b\u1ea3n",normalized:"clone"},swap:{primary:"ho\u00e1n \u0111\u1ed5i",normalized:"swap"},morph:{primary:"bi\u1ebfn \u0111\u1ed5i",normalized:"morph"},set:{primary:"g\u00e1n",alternatives:["thi\u1ebft l\u1eadp"],normalized:"set"},get:{primary:"l\u1ea5y gi\u00e1 tr\u1ecb",alternatives:["nh\u1eadn"],normalized:"get"},increment:{primary:"t\u0103ng",alternatives:["t\u0103ng l\u00ean"],normalized:"increment"},decrement:{primary:"gi\u1ea3m",alternatives:["gi\u1ea3m \u0111i"],normalized:"decrement"},log:{primary:"in ra",normalized:"log"},show:{primary:"hi\u1ec3n th\u1ecb",alternatives:["hi\u1ec7n"],normalized:"show"},hide:{primary:"\u1ea9n",alternatives:["che","gi\u1ea5u"],normalized:"hide"},transition:{primary:"chuy\u1ec3n ti\u1ebfp",normalized:"transition"},on:{primary:"khi",alternatives:["tr\u00ean"],normalized:"on"},trigger:{primary:"k\u00edch ho\u1ea1t",normalized:"trigger"},send:{primary:"g\u1eedi",normalized:"send"},focus:{primary:"t\u1eadp trung",normalized:"focus"},blur:{primary:"m\u1ea5t t\u1eadp trung",normalized:"blur"},empty:{primary:"l\u00e0m-r\u1ed7ng",alternatives:["tr\u1ed1ng"],normalized:"empty"},open:{primary:"m\u1edf",normalized:"open"},close:{primary:"\u0111\u00f3ng",normalized:"close"},select:{primary:"\u0111\u00e1nh-d\u1ea5u",normalized:"select"},clear:{primary:"t\u1ea9y",normalized:"clear"},reset:{primary:"\u0111\u1eb7t-l\u1ea1i",normalized:"reset"},breakpoint:{primary:"\u0111i\u1ec3m-d\u1eebng",normalized:"breakpoint"},click:{primary:"nh\u1ea5p",alternatives:["b\u1ea5m"],normalized:"click"},hover:{primary:"di chu\u1ed9t",alternatives:["r\u00ea chu\u1ed9t"],normalized:"hover"},submit:{primary:"n\u1ed9p",alternatives:[],normalized:"submit"},input:{primary:"nh\u1eadp",alternatives:["nh\u1eadp li\u1ec7u"],normalized:"input"},changes:{primary:"thay \u0111\u1ed5i",normalized:"changes"},change:{primary:"thay \u0111\u1ed5i",alternatives:["\u0111\u1ed5i"],normalized:"change"},go:{primary:"\u0111i \u0111\u1ebfn",alternatives:["\u0111i"],normalized:"go"},scroll:{primary:"cu\u1ed9n",normalized:"scroll"},push:{primary:"\u0111\u1ea9y",alternatives:["push"],normalized:"push"},replace:{primary:"thay_th\u1ebf",alternatives:["thay_the"],normalized:"replace"},process:{primary:"x\u1eed_l\u00fd",alternatives:["xu_ly"],normalized:"process"},wait:{primary:"ch\u1edd",alternatives:["\u0111\u1ee3i","ch\u1edd \u0111\u1ee3i"],normalized:"wait"},fetch:{primary:"t\u1ea3i",normalized:"fetch"},settle:{primary:"\u1ed5n \u0111\u1ecbnh",normalized:"settle"},if:{primary:"n\u1ebfu",normalized:"if"},unless:{primary:"tr\u1eeb khi",alternatives:["tr\u1eeb_khi"],normalized:"unless"},when:{primary:"l\u00fac",normalized:"when"},where:{primary:"\u1edf_\u0111\u00e2u",normalized:"where"},else:{primary:"kh\u00f4ng th\u00ec",alternatives:["n\u1ebfu kh\u00f4ng"],normalized:"else"},repeat:{primary:"l\u1eb7p l\u1ea1i",normalized:"repeat"},for:{primary:"v\u1edbi m\u1ed7i",normalized:"for"},while:{primary:"trong khi",normalized:"while"},forever:{primary:"m\u00e3i m\u00e3i",normalized:"forever",alternatives:["forever"]},continue:{primary:"ti\u1ebfp t\u1ee5c",normalized:"continue"},halt:{primary:"d\u1eebng",alternatives:["d\u1eebng l\u1ea1i"],normalized:"halt"},throw:{primary:"n\u00e9m",normalized:"throw"},call:{primary:"g\u1ecdi",normalized:"call"},return:{primary:"tr\u1ea3 v\u1ec1",normalized:"return"},then:{primary:"r\u1ed3i",alternatives:["sau \u0111\u00f3","th\u00ec"],normalized:"then"},and:{primary:"v\u00e0",normalized:"and"},matches:{primary:"kh\u1edbp",normalized:"matches"},end:{primary:"k\u1ebft th\u00fac",normalized:"end"},js:{primary:"js",normalized:"js"},async:{primary:"b\u1ea5t \u0111\u1ed3ng b\u1ed9",normalized:"async"},tell:{primary:"n\u00f3i v\u1edbi",normalized:"tell"},default:{primary:"m\u1eb7c \u0111\u1ecbnh",normalized:"default"},init:{primary:"kh\u1edfi t\u1ea1o",normalized:"init"},behavior:{primary:"h\u00e0nh vi",normalized:"behavior"},install:{primary:"c\u00e0i \u0111\u1eb7t",normalized:"install"},measure:{primary:"\u0111o l\u01b0\u1eddng",normalized:"measure"},beep:{primary:"beep",normalized:"beep"},break:{primary:"ng\u1eaft",normalized:"break"},copy:{primary:"sao ch\u00e9p",normalized:"copy"},exit:{primary:"tho\u00e1t",alternatives:["tho\u00e1t ra"],normalized:"exit"},pick:{primary:"ch\u1ecdn",normalized:"pick"},render:{primary:"k\u1ebft xu\u1ea5t",normalized:"render"},into:{primary:"v\u00e0o",alternatives:["v\u00e0o trong"],normalized:"into"},before:{primary:"tr\u01b0\u1edbc",alternatives:["tr\u01b0\u1edbc khi"],normalized:"before"},after:{primary:"sau",alternatives:["sau khi"],normalized:"after"},until:{primary:"cho \u0111\u1ebfn khi",normalized:"until"},event:{primary:"s\u1ef1 ki\u1ec7n",normalized:"event"},from:{primary:"t\u1eeb",alternatives:["kh\u1ecfi"],normalized:"from"},connect:{primary:"k\u1ebft-n\u1ed1i",alternatives:["k\u1ebft-n\u1ed1i-t\u1edbi"],normalized:"connect"},stream:{primary:"truy\u1ec1n-ph\u00e1t",alternatives:["ph\u00e1t","lu\u1ed3ng"],normalized:"stream"},live:{primary:"tr\u1ef1c-ti\u1ebfp",alternatives:["ph\u00e1t-tr\u1ef1c-ti\u1ebfp","live"],normalized:"live"},socket:{primary:"socket",alternatives:["\u1ed5-c\u1eafm","websocket"],normalized:"socket"},bind:{primary:"r\u00e0ng bu\u1ed9c",alternatives:["li\u00ean k\u1ebft","bind"],normalized:"bind"},intercept:{primary:"ch\u1eb7n",alternatives:["ch\u1eb7n b\u1eaft","intercept"],normalized:"intercept"},worker:{primary:"worker",alternatives:["c\u00f4ng nh\u00e2n"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["ngu\u1ed3n s\u1ef1 ki\u1ec7n"],normalized:"eventsource"}},eventHandler:{keyword:{primary:"khi",alternatives:["tr\u00ean"],normalized:"on"},sourceMarker:{primary:"tr\u00ean",alternatives:["t\u1ea1i"],position:"before"},eventMarker:{primary:"khi",alternatives:["l\u00fac"],position:"before"},temporalMarkers:["khi","l\u00fac"]}}}}),Jr={};x(Jr,{chineseProfile:()=>Xr});var ei,ti=b({"src/generators/profiles/chinese.ts"(){Xr={code:"zh",name:"Chinese",nativeName:"\u4e2d\u6587",regions:["east-asian","priority"],direction:"ltr",script:"cjk",wordOrder:"SVO",markingStrategy:"preposition",usesSpaces:!1,verb:{position:"second",subjectDrop:!0},references:{me:"\u6211",it:"\u5b83",you:"\u4f60",result:"\u7ed3\u679c",event:"\u4e8b\u4ef6",target:"\u76ee\u6807",body:"\u4e3b\u4f53",document:"\u6587\u6863",window:"\u7a97\u53e3",detail:"\u8be6\u60c5"},possessive:{marker:"\u7684",markerPosition:"between",keywords:{"\u6211\u7684":"me","\u4f60\u7684":"you","\u5b83\u7684":"it","\u4ed6\u7684":"it","\u5979\u7684":"it"}},roleMarkers:{destination:{primary:"\u5728",alternatives:["\u5230","\u4e8e"],position:"before"},source:{primary:"\u4ece",alternatives:["\u7531"],position:"before"},patient:{primary:"\u628a",position:"before"},style:{primary:"\u7528",alternatives:["\u4ee5"],position:"before"}},keywords:{toggle:{primary:"\u5207\u6362",normalized:"toggle"},add:{primary:"\u6dfb\u52a0",alternatives:["\u52a0"],normalized:"add"},remove:{primary:"\u79fb\u9664",alternatives:["\u5220\u9664","\u53bb\u6389"],normalized:"remove"},put:{primary:"\u653e\u7f6e",alternatives:["\u653e","\u653e\u5165"],normalized:"put"},append:{primary:"\u8ffd\u52a0",alternatives:["\u9644\u52a0"],normalized:"append"},prepend:{primary:"\u524d\u7f6e",alternatives:["\u9884\u7f6e"],normalized:"prepend"},take:{primary:"\u62ff\u53d6",normalized:"take"},make:{primary:"\u5236\u4f5c",normalized:"make"},clone:{primary:"\u514b\u9686",normalized:"clone"},swap:{primary:"\u4ea4\u6362",normalized:"swap"},morph:{primary:"\u53d8\u5f62",alternatives:["\u8f6c\u6362"],normalized:"morph"},set:{primary:"\u8bbe\u7f6e",alternatives:["\u8bbe\u5b9a"],normalized:"set"},get:{primary:"\u83b7\u53d6",alternatives:["\u83b7\u5f97","\u53d6\u5f97"],normalized:"get"},increment:{primary:"\u589e\u52a0",normalized:"increment"},decrement:{primary:"\u51cf\u5c11",normalized:"decrement"},log:{primary:"\u65e5\u5fd7",normalized:"log"},show:{primary:"\u663e\u793a",alternatives:["\u5c55\u793a"],normalized:"show"},hide:{primary:"\u9690\u85cf",normalized:"hide"},transition:{primary:"\u8fc7\u6e21",normalized:"transition"},on:{primary:"\u5f53",alternatives:["\u5728...\u65f6"],normalized:"on"},trigger:{primary:"\u89e6\u53d1",normalized:"trigger"},send:{primary:"\u53d1\u9001",normalized:"send"},focus:{primary:"\u805a\u7126",alternatives:["\u53d6\u5f97\u7126\u9ede"],normalized:"focus"},blur:{primary:"\u5931\u7126",alternatives:["\u5931\u53bb\u7126\u9ede"],normalized:"blur"},empty:{primary:"\u6e05\u7a7a",alternatives:["\u7a7a\u7684"],normalized:"empty"},open:{primary:"\u6253\u5f00",normalized:"open"},close:{primary:"\u5173\u95ed",normalized:"close"},select:{primary:"\u9009\u62e9",normalized:"select"},clear:{primary:"\u6e05\u9664",normalized:"clear"},reset:{primary:"\u91cd\u7f6e",normalized:"reset"},breakpoint:{primary:"\u65ad\u70b9",normalized:"breakpoint"},click:{primary:"\u70b9\u51fb",normalized:"click"},hover:{primary:"\u60ac\u505c",alternatives:["\u60ac\u6d6e"],normalized:"hover"},submit:{primary:"\u63d0\u4ea4",alternatives:["\u9001\u51fa"],normalized:"submit"},input:{primary:"\u8f93\u5165",normalized:"input"},change:{primary:"\u53d8\u5316",alternatives:["\u6539\u53d8"],normalized:"change"},go:{primary:"\u524d\u5f80",normalized:"go"},scroll:{primary:"\u6eda\u52a8",alternatives:["\u6372\u52d5"],normalized:"scroll"},push:{primary:"\u63a8\u9001",normalized:"push"},replace:{primary:"\u66ff\u6362",normalized:"replace"},process:{primary:"\u5904\u7406",normalized:"process"},wait:{primary:"\u7b49\u5f85",normalized:"wait"},fetch:{primary:"\u6293\u53d6",normalized:"fetch"},settle:{primary:"\u7a33\u5b9a",normalized:"settle"},if:{primary:"\u5982\u679c",normalized:"if"},unless:{primary:"\u9664\u975e",normalized:"unless"},when:{primary:"\u4f55\u65f6",normalized:"when"},changes:{primary:"\u6539\u53d8\u65f6",normalized:"changes"},where:{primary:"\u54ea\u91cc",normalized:"where"},else:{primary:"\u5426\u5219",normalized:"else"},matches:{primary:"\u5339\u914d",normalized:"matches"},repeat:{primary:"\u91cd\u590d",normalized:"repeat"},forever:{primary:"forever",normalized:"forever"},for:{primary:"\u4e3a",normalized:"for"},while:{primary:"\u6301\u7eed",normalized:"while"},continue:{primary:"\u7ee7\u7eed",normalized:"continue"},halt:{primary:"\u505c\u6b62",normalized:"halt"},throw:{primary:"\u629b\u51fa",normalized:"throw"},call:{primary:"\u8c03\u7528",normalized:"call"},return:{primary:"\u8fd4\u56de",normalized:"return"},then:{primary:"\u7136\u540e",alternatives:["\u63a5\u7740","\u90a3\u4e48"],normalized:"then"},and:{primary:"\u5e76\u4e14",alternatives:["\u548c","\u800c\u4e14"],normalized:"and"},exists:{primary:"\u5b58\u5728",normalized:"exists"},end:{primary:"\u7ed3\u675f",alternatives:["\u7ec8\u6b62","\u5b8c"],normalized:"end"},js:{primary:"JS\u6267\u884c",alternatives:["js"],normalized:"js"},async:{primary:"\u5f02\u6b65",normalized:"async"},tell:{primary:"\u544a\u8bc9",normalized:"tell"},default:{primary:"\u9ed8\u8ba4",normalized:"default"},init:{primary:"\u521d\u59cb\u5316",normalized:"init"},behavior:{primary:"\u884c\u4e3a",normalized:"behavior"},install:{primary:"\u5b89\u88c5",normalized:"install"},measure:{primary:"\u6d4b\u91cf",normalized:"measure"},beep:{primary:"\u8702\u9e23",normalized:"beep"},break:{primary:"\u4e2d\u65ad",normalized:"break"},copy:{primary:"\u590d\u5236",normalized:"copy"},exit:{primary:"\u9000\u51fa",normalized:"exit"},pick:{primary:"\u9009\u53d6",normalized:"pick"},render:{primary:"\u6e32\u67d3",normalized:"render"},into:{primary:"\u8fdb\u5165",normalized:"into"},before:{primary:"\u4e4b\u524d",normalized:"before"},after:{primary:"\u4e4b\u540e",normalized:"after"},until:{primary:"\u76f4\u5230",normalized:"until"},event:{primary:"\u4e8b\u4ef6",normalized:"event"},from:{primary:"\u4ece",normalized:"from"},connect:{primary:"\u8fde\u63a5",alternatives:["\u8fde\u63a5\u5668"],normalized:"connect"},stream:{primary:"\u6d41",alternatives:["\u6d41\u5f0f\u4f20\u8f93"],normalized:"stream"},live:{primary:"\u5b9e\u65f6",alternatives:["\u76f4\u64ad"],normalized:"live"},socket:{primary:"\u5957\u63a5\u5b57",alternatives:["websocket","socket"],normalized:"socket"},bind:{primary:"\u7ed1\u5b9a",alternatives:["bind"],normalized:"bind"},intercept:{primary:"\u62e6\u622a",alternatives:["intercept"],normalized:"intercept"},worker:{primary:"\u5de5\u4f5c\u7ebf\u7a0b",alternatives:["\u5de5\u4f5c\u8005","worker"],normalized:"worker"},eventsource:{primary:"eventsource",alternatives:["\u4e8b\u4ef6\u6e90"],normalized:"eventsource"}},tokenization:{boundaryStrategy:"character"},eventHandler:{keyword:{primary:"\u5f53",alternatives:["\u5728...\u65f6"],normalized:"on"},sourceMarker:{primary:"\u4ece",position:"before"},eventMarker:{primary:"\u5f53",alternatives:["\u5728"],position:"before"},temporalMarkers:["\u5f53","\u5728...\u65f6","\u4e00"]}}}});function ri(e,t){const r=e.markerOverride?.[t.code],i=t.roleMarkers[e.role];if(void 0!==r){const a=function(e,t,r){const i=e.markerLegacy?.[t];if(!i?.length)return;const a=[...new Set(i)].filter(e=>e&&e!==r);return a.length?a:void 0}(e,t.code,r);return{primary:r,...a&&{alternatives:a},position:i?.position??"before",isOverride:!0}}if(i&&i.primary){const e={primary:i.primary,position:i.position,isOverride:!1};return i.alternatives&&(e.alternatives=i.alternatives),e}return null}function ii(e,t,r){const i=[...new Set([...e.markerLegacy?.[t]??[],...e.methodCarrier?[]:e.markerVariants?.[t]??[]])].filter(e=>e&&e!==r);return i.length?i:void 0}var ai,ni,oi,si,li,pi=b({"src/parser/utils/marker-resolution.ts"(){ei=new Set(["destination","source","patient","object","event","eventmarker","manner","instrument","style"])}}),mi=b({"src/patterns/count-words.ts"(){ai={ar:["\u0645\u0631\u0627\u062a","\u0645\u0631\u0629"],bn:["\u09ac\u09be\u09b0"],de:["mal","Mal"],es:["veces","vez"],fr:["fois"],he:["\u05e4\u05e2\u05de\u05d9\u05dd","\u05e4\u05e2\u05dd"],hi:["\u092c\u093e\u0930"],id:["kali"],it:["volte","volta"],ja:["\u56de","\u5ea6"],ko:["\ubc88","\ud68c"],ms:["kali"],pl:["razy","raz"],pt:["vezes","vez"],qu:["kuti"],ru:["\u0440\u0430\u0437","\u0440\u0430\u0437\u0430"],sw:["mara"],th:["\u0e04\u0e23\u0e31\u0e49\u0e07"],tl:["beses"],tr:["kez","kere","defa"],uk:["\u0440\u0430\u0437\u0456\u0432","\u0440\u0430\u0437\u0438","\u0440\u0430\u0437"],vi:["l\u1ea7n"],zh:["\u6b21","\u904d"]}}});function ci(e,t,r,i){const a=li.find(t=>t.lang===e);if(!a)return!1;const n=(e,t)=>(e??"").toLowerCase()===t.toLowerCase();return n(t,a.end)&&n(r,a.at)&&n(i,a.of)}function di(){const e=(e,t)=>({id:"put-tr-"+e,language:"tr",command:"put",priority:105,template:{format:`{patient} ${t} {destination} i koy`,tokens:[{type:"role",role:"patient"},{type:"literal",value:t},{type:"role",role:"destination"},{type:"group",optional:!0,tokens:[{type:"literal",value:"i",alternatives:["\u0131","u","\u00fc","yi","y\u0131","yu","y\u00fc"]}]},{type:"literal",value:"koy",alternatives:["koymak"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:e}}}});return[e("before","\u00f6nce"),e("after","sonra")]}function ui(e){const t=function(e){const t=si.find(t=>t.lang===e);return t?["before","after"].map(e=>{const r=t[e],i=[t.verbAlts?{type:"literal",value:t.verb,alternatives:t.verbAlts}:{type:"literal",value:t.verb}];return t.patientPrefix&&i.push(t.patientPrefixOptional?{type:"group",optional:!0,tokens:[{type:"literal",value:t.patientPrefix}]}:{type:"literal",value:t.patientPrefix}),i.push({type:"role",role:"patient"},{type:"literal",value:r},{type:"role",role:"destination"}),{id:`put-${t.lang}-${e}`,language:t.lang,command:"put",priority:105,template:{format:`${t.verb} {patient} ${r} {destination}`,tokens:i},extraction:{patient:{position:t.patientPrefix&&!t.patientPrefixOptional?2:1},destination:{marker:r},manner:{default:{type:"literal",value:e}}}}}):[]}(e),r=function(e){const t=li.find(t=>t.lang===e);if(!t)return[];const r=[],i=t.verbAlts?{type:"literal",value:t.verb,alternatives:t.verbAlts}:{type:"literal",value:t.verb},a=e=>{r.push({type:"literal",value:e})};return t.sov?(r.push({type:"role",role:"patient"}),a(t.at),a(t.end),a(t.of),r.push({type:"role",role:"destination"}),t.objMarker&&r.push({type:"literal",value:t.objMarker}),r.push(i)):(r.push(i),t.patientPrefix&&r.push({type:"literal",value:t.patientPrefix}),r.push({type:"role",role:"patient"}),a(t.at),a(t.end),a(t.of),r.push({type:"role",role:"destination"})),[{id:`put-${t.lang}-at-end`,language:t.lang,command:"put",priority:110,template:{format:`put {patient} ${t.at} ${t.end} ${t.of} {destination}`,tokens:r},extraction:{manner:{default:{type:"literal",value:"at end of"}}}}]}(e);switch(e){case"bn":return[{id:"put-bn-before",language:"bn",command:"put",priority:105,template:{format:"{patient} before {destination} \u0995\u09c7 \u09b0\u09be\u0996\u09c1\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u09b0\u09be\u0996\u09c1\u09a8",alternatives:["\u09b0\u09be\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-bn-after",language:"bn",command:"put",priority:105,template:{format:"{patient} after {destination} \u0995\u09c7 \u09b0\u09be\u0996\u09c1\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u09b0\u09be\u0996\u09c1\u09a8",alternatives:["\u09b0\u09be\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-bn-full",language:"bn",command:"put",priority:100,template:{format:"{patient} \u0995\u09c7 {destination} \u098f \u09b0\u09be\u0996\u09c1\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"role",role:"destination"},{type:"literal",value:"\u098f",alternatives:["\u09a4\u09c7"]},{type:"literal",value:"\u09b0\u09be\u0996\u09c1\u09a8",alternatives:["\u09b0\u09be\u0996"]}]},extraction:{patient:{position:0},destination:{marker:"\u098f",position:2}}},{id:"put-bn-simple",language:"bn",command:"put",priority:90,template:{format:"\u09b0\u09be\u0996\u09c1\u09a8 {patient} {destination} \u098f",tokens:[{type:"literal",value:"\u09b0\u09be\u0996\u09c1\u09a8",alternatives:["\u09b0\u09be\u0996"]},{type:"role",role:"patient"},{type:"role",role:"destination"},{type:"literal",value:"\u098f",alternatives:["\u09a4\u09c7"]}]},extraction:{patient:{position:1},destination:{position:2}}},...r];case"en":return[{id:"put-en-into",language:"en",command:"put",priority:100,template:{format:"put {patient} into {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"into",alternatives:["in","to"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"into",markerAlternatives:["in","to"]}}},{id:"put-en-before",language:"en",command:"put",priority:95,template:{format:"put {patient} before {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-en-after",language:"en",command:"put",priority:95,template:{format:"put {patient} after {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-en-at-end",language:"en",command:"put",priority:96,template:{format:"put {patient} at end of {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"at"},{type:"literal",value:"end"},{type:"literal",value:"of"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{position:5},manner:{default:{type:"literal",value:"at end of"}}}},{id:"put-en-at-start",language:"en",command:"put",priority:96,template:{format:"put {patient} at start of {destination}",tokens:[{type:"literal",value:"put"},{type:"role",role:"patient"},{type:"literal",value:"at"},{type:"literal",value:"start"},{type:"literal",value:"of"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{position:5},manner:{default:{type:"literal",value:"at start of"}}}}];case"es":return[{id:"put-es-full",language:"es",command:"put",priority:100,template:{format:"poner {patient} en {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar","put"]},{type:"role",role:"patient"},{type:"literal",value:"en",alternatives:["dentro de","a"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["dentro de","a"]}}},{id:"put-es-before",language:"es",command:"put",priority:95,template:{format:"poner {patient} antes de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"antes de",alternatives:["antes"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"antes de",markerAlternatives:["antes"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-es-after",language:"es",command:"put",priority:95,template:{format:"poner {patient} despu\u00e9s de {destination}",tokens:[{type:"literal",value:"poner",alternatives:["pon","colocar"]},{type:"role",role:"patient"},{type:"literal",value:"despu\u00e9s de",alternatives:["despues de","despu\u00e9s"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"despu\u00e9s de",markerAlternatives:["despues de","despu\u00e9s"]},manner:{default:{type:"literal",value:"after"}}}},...r];case"hi":return[{id:"put-hi-before",language:"hi",command:"put",priority:106,template:{format:"{patient} before {destination} \u0915\u094b \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"before"},{type:"role",role:"destination"},{type:"literal",value:"\u0915\u094b"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093e\u0932\u0947\u0902","\u0921\u093e\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"before"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-hi-after",language:"hi",command:"put",priority:106,template:{format:"{patient} after {destination} \u0915\u094b \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"after"},{type:"role",role:"destination"},{type:"literal",value:"\u0915\u094b"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093e\u0932\u0947\u0902","\u0921\u093e\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"after"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-hi-verb-medial",language:"hi",command:"put",priority:105,template:{format:"{patient} \u0915\u094b \u0930\u0916\u0947\u0902 {destination} \u092e\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093e\u0932\u0947\u0902","\u0921\u093e\u0932"]},{type:"role",role:"destination"},{type:"literal",value:"\u092e\u0947\u0902"}]},extraction:{patient:{position:0},destination:{marker:"\u092e\u0947\u0902",position:3}}},{id:"put-hi-full",language:"hi",command:"put",priority:100,template:{format:"{patient} \u0915\u094b {destination} \u092e\u0947\u0902 \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"role",role:"destination"},{type:"literal",value:"\u092e\u0947\u0902"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093e\u0932\u0947\u0902","\u0921\u093e\u0932"]}]},extraction:{patient:{position:0},destination:{marker:"\u092e\u0947\u0902",position:3}}},{id:"put-hi-simple",language:"hi",command:"put",priority:90,template:{format:"{patient} \u0930\u0916\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093e\u0932\u0947\u0902","\u0921\u093e\u0932"]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"put-hi-bare",language:"hi",command:"put",priority:80,template:{format:"\u0930\u0916\u0947\u0902 {patient}",tokens:[{type:"literal",value:"\u0930\u0916\u0947\u0902",alternatives:["\u0930\u0916","\u0921\u093e\u0932\u0947\u0902","\u0921\u093e\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},...r];case"id":return[{id:"put-id-full",language:"id",command:"put",priority:100,template:{format:"taruh {patient} ke dalam {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan","put"]},{type:"role",role:"patient",expectedTypes:oi},{type:"literal",value:"ke"},{type:"literal",value:"dalam",alternatives:["di"]},{type:"role",role:"destination",expectedTypes:ni}]},extraction:{patient:{position:1},destination:{position:4}}},{id:"put-id-simple-ke",language:"id",command:"put",priority:95,template:{format:"taruh {patient} ke {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan","tempatkan"]},{type:"role",role:"patient",expectedTypes:oi},{type:"literal",value:"ke",alternatives:["di","pada"]},{type:"role",role:"destination",expectedTypes:ni}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-id-di",language:"id",command:"put",priority:90,template:{format:"taruh {patient} di {destination}",tokens:[{type:"literal",value:"taruh",alternatives:["letakkan","masukkan"]},{type:"role",role:"patient",expectedTypes:oi},{type:"literal",value:"di"},{type:"role",role:"destination",expectedTypes:ni}]},extraction:{patient:{position:1},destination:{position:3}}},...t,...r];case"it":return[{id:"put-it-full",language:"it",command:"put",priority:100,template:{format:"mettere {patient} in {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"in",alternatives:["dentro","nel"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"in",markerAlternatives:["dentro","nel"]}}},{id:"put-it-before",language:"it",command:"put",priority:105,template:{format:"mettere {patient} prima {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"literal",value:"prima"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"prima"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-it-after",language:"it",command:"put",priority:105,template:{format:"mettere {patient} dopo {target}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"},{type:"literal",value:"dopo"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"dopo"},manner:{default:{type:"literal",value:"after"}}}},{id:"put-it-simple",language:"it",command:"put",priority:90,template:{format:"mettere {patient}",tokens:[{type:"literal",value:"mettere",alternatives:["metti","inserire","put"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},...r];case"ja":return[...["before","after"].map(e=>{const t="before"===e?"\u524d\u306b":"\u5f8c\u306b";return{id:"put-ja-"+e,language:"ja",command:"put",priority:105,template:{format:`{patient} ${t} {destination} \u3092 \u7f6e\u304f`,tokens:[{type:"role",role:"patient"},{type:"literal",value:t,alternatives:["before"===e?"\u524d":"\u5f8c"]},{type:"role",role:"destination"},{type:"literal",value:"\u3092"},{type:"literal",value:"\u7f6e\u304f",alternatives:["\u5165\u308c\u308b"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:e}}}}}),...r];case"ko":return[...["before","after"].map(e=>{const t="before"===e?"\uc804\uc5d0":"\ud6c4\uc5d0";return{id:"put-ko-"+e,language:"ko",command:"put",priority:105,template:{format:`{patient} ${t} {destination} \ub97c \ub123\ub2e4`,tokens:[{type:"role",role:"patient"},{type:"literal",value:t},{type:"role",role:"destination"},{type:"literal",value:"\ub97c",alternatives:["\uc744"]},{type:"literal",value:"\ub123\ub2e4",alternatives:["\ub123\uae30","\ub193\uae30"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:e}}}}}),...r];case"tr":return[...di(),...r];case"pl":return[{id:"put-pl-full",language:"pl",command:"put",priority:100,template:{format:"umie\u015b\u0107 {patient} w {destination}",tokens:[{type:"literal",value:"umie\u015b\u0107",alternatives:["umiesc","wstaw","w\u0142\u00f3\u017c","wloz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"w",alternatives:["do","na"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"w",markerAlternatives:["do","na"]}}},{id:"put-pl-before",language:"pl",command:"put",priority:105,template:{format:"umie\u015b\u0107 {patient} przed {destination}",tokens:[{type:"literal",value:"umie\u015b\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"przed"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"przed"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-pl-after",language:"pl",command:"put",priority:105,template:{format:"umie\u015b\u0107 {patient} po {destination}",tokens:[{type:"literal",value:"umie\u015b\u0107",alternatives:["umiesc","wstaw"]},{type:"role",role:"patient"},{type:"literal",value:"po"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"po"},manner:{default:{type:"literal",value:"after"}}}},...r];case"ru":return[{id:"put-ru-full",language:"ru",command:"put",priority:100,template:{format:"\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c",alternatives:["\u043f\u043e\u043b\u043e\u0436\u0438","\u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c","\u043f\u043e\u043c\u0435\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c","\u0432\u0441\u0442\u0430\u0432\u044c"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0432\u043e","\u043d\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0432\u043e","\u043d\u0430"]}}},{id:"put-ru-before",language:"ru",command:"put",priority:105,template:{format:"\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c {patient} \u043f\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c",alternatives:["\u043f\u043e\u043b\u043e\u0436\u0438","\u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c","\u043f\u043e\u043c\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043f\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043e"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043f\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043e"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-ru-after",language:"ru",command:"put",priority:105,template:{format:"\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c {patient} \u043f\u043e\u0441\u043b\u0435 {destination}",tokens:[{type:"literal",value:"\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c",alternatives:["\u043f\u043e\u043b\u043e\u0436\u0438","\u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c","\u043f\u043e\u043c\u0435\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043f\u043e\u0441\u043b\u0435"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043f\u043e\u0441\u043b\u0435"},manner:{default:{type:"literal",value:"after"}}}},...r];case"qu":return[...["before","after"].map(e=>{const t="before"===e?"\u00f1awpaqpi":"qhepapi";return{id:"put-qu-"+e,language:"qu",command:"put",priority:105,template:{format:`{patient} ${t} {destination} ta churay`,tokens:[{type:"role",role:"patient"},{type:"literal",value:t,alternatives:[e]},{type:"role",role:"destination"},{type:"group",optional:!0,tokens:[{type:"literal",value:"ta"}]},{type:"literal",value:"churay",alternatives:["tiyachiy"]}]},extraction:{patient:{position:0},destination:{position:2},manner:{default:{type:"literal",value:e}}}}}),{id:"put-qu-patient-first",language:"qu",command:"put",priority:96,template:{format:"{patient} ta {destination} man churay",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"literal",value:"churay",alternatives:["tiyachiy"]}]},extraction:{patient:{position:0},destination:{position:2}}},...r];case"th":return[{id:"put-th-full",language:"th",command:"put",priority:100,template:{format:"\u0e43\u0e2a\u0e48 {patient} \u0e43\u0e19 {destination}",tokens:[{type:"literal",value:"\u0e43\u0e2a\u0e48",alternatives:["\u0e27\u0e32\u0e07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0e43\u0e19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0e43\u0e19",position:3}}},{id:"put-th-before",language:"th",command:"put",priority:105,template:{format:"\u0e43\u0e2a\u0e48 {patient} \u0e01\u0e48\u0e2d\u0e19 {destination}",tokens:[{type:"literal",value:"\u0e43\u0e2a\u0e48",alternatives:["\u0e27\u0e32\u0e07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0e01\u0e48\u0e2d\u0e19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0e01\u0e48\u0e2d\u0e19"},manner:{default:{type:"literal",value:"before"}}}},{id:"put-th-after",language:"th",command:"put",priority:105,template:{format:"\u0e43\u0e2a\u0e48 {patient} \u0e2b\u0e25\u0e31\u0e07 {destination}",tokens:[{type:"literal",value:"\u0e43\u0e2a\u0e48",alternatives:["\u0e27\u0e32\u0e07"]},{type:"role",role:"patient"},{type:"literal",value:"\u0e2b\u0e25\u0e31\u0e07"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0e2b\u0e25\u0e31\u0e07"},manner:{default:{type:"literal",value:"after"}}}},...r];case"uk":return[{id:"put-uk-full",language:"uk",command:"put",priority:100,template:{format:"\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438 {patient} \u0432 {destination}",tokens:[{type:"literal",value:"\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438",alternatives:["\u043f\u043e\u043a\u043b\u0430\u0434\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438\u0442\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u0443","\u043d\u0430"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0432",markerAlternatives:["\u0443","\u043d\u0430"]}}},{id:"put-uk-before",language:"uk",command:"put",priority:105,template:{format:"\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438 {patient} \u043f\u0435\u0440\u0435\u0434 {destination}",tokens:[{type:"literal",value:"\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438",alternatives:["\u043f\u043e\u043a\u043b\u0430\u0434\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438\u0442\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043f\u0435\u0440\u0435\u0434",alternatives:["\u0434\u043e"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043f\u0435\u0440\u0435\u0434",markerAlternatives:["\u0434\u043e"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-uk-after",language:"uk",command:"put",priority:105,template:{format:"\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438 {patient} \u043f\u0456\u0441\u043b\u044f {destination}",tokens:[{type:"literal",value:"\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438",alternatives:["\u043f\u043e\u043a\u043b\u0430\u0434\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438\u0442\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438"]},{type:"role",role:"patient"},{type:"literal",value:"\u043f\u0456\u0441\u043b\u044f"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u043f\u0456\u0441\u043b\u044f"},manner:{default:{type:"literal",value:"after"}}}},...r];case"vi":return[{id:"put-vi-into",language:"vi",command:"put",priority:100,template:{format:"\u0111\u1eb7t {patient} v\u00e0o {target}",tokens:[{type:"literal",value:"\u0111\u1eb7t",alternatives:["\u0111\u1ec3","\u0111\u01b0a"]},{type:"role",role:"patient"},{type:"literal",value:"v\u00e0o",alternatives:["v\u00e0o trong"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"v\u00e0o",markerAlternatives:["v\u00e0o trong"]}}},{id:"put-vi-before",language:"vi",command:"put",priority:105,template:{format:"\u0111\u1eb7t {patient} tr\u01b0\u1edbc {target}",tokens:[{type:"literal",value:"\u0111\u1eb7t",alternatives:["\u0111\u1ec3","\u0111\u01b0a"]},{type:"role",role:"patient"},{type:"literal",value:"tr\u01b0\u1edbc",alternatives:["tr\u01b0\u1edbc khi"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"tr\u01b0\u1edbc",markerAlternatives:["tr\u01b0\u1edbc khi"]},manner:{default:{type:"literal",value:"before"}}}},{id:"put-vi-after",language:"vi",command:"put",priority:105,template:{format:"\u0111\u1eb7t {patient} sau {target}",tokens:[{type:"literal",value:"\u0111\u1eb7t",alternatives:["\u0111\u1ec3","\u0111\u01b0a"]},{type:"role",role:"patient"},{type:"literal",value:"sau",alternatives:["sau khi"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"sau",markerAlternatives:["sau khi"]},manner:{default:{type:"literal",value:"after"}}}},...r];case"zh":return[{id:"put-zh-full",language:"zh",command:"put",priority:100,template:{format:"\u653e\u7f6e {patient} \u5230 {destination}",tokens:[{type:"literal",value:"\u653e\u7f6e",alternatives:["\u653e","\u653e\u5165","\u7f6e\u5165","put"]},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u5230",alternatives:["\u5728","\u4e8e","\u5165"]},{type:"role",role:"destination",expectedTypes:ni}]},extraction:{patient:{position:1},destination:{position:3}}},{id:"put-zh-ba",language:"zh",command:"put",priority:95,template:{format:"\u628a {patient} \u653e\u7f6e \u5230 {destination}",tokens:[{type:"literal",value:"\u628a"},{type:"role",role:"patient",expectedTypes:["literal","selector","reference","expression"]},{type:"literal",value:"\u653e\u7f6e",alternatives:["\u653e\u5230","\u653e\u5728","\u653e\u5165","\u653e","\u7f6e\u5165"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5230",alternatives:["\u5728","\u4e8e","\u5165"]}]},{type:"role",role:"destination",expectedTypes:ni}]},extraction:{patient:{position:1},destination:{marker:"\u5230",markerAlternatives:["\u5728","\u4e8e","\u5165"]}}},...t,...r];default:return[...t,...r]}}var yi,vi,fi,hi=b({"src/patterns/put.ts"(){wt(),ni=[...B.roles.find(e=>"destination"===e.role)?.expectedTypes??[]],oi=[...B.roles.find(e=>"patient"===e.role)?.expectedTypes??[]],si=[{lang:"ar",verb:"\u0636\u0639",verbAlts:["\u0627\u062c\u0639\u0644"],before:"\u0642\u0628\u0644",after:"\u0628\u0639\u062f"},{lang:"de",verb:"setzen",before:"vor",after:"nach"},{lang:"fr",verb:"mettre",before:"avant",after:"apr\u00e8s"},{lang:"he",verb:"\u05e9\u05d9\u05dd",patientPrefix:"\u05d0\u05ea",before:"\u05dc\u05e4\u05e0\u05d9",after:"\u05d0\u05d7\u05e8\u05d9"},{lang:"id",verb:"taruh",verbAlts:["letakkan","masukkan","tempatkan"],before:"sebelum",after:"setelah"},{lang:"ms",verb:"letak",before:"sebelum",after:"selepas"},{lang:"pt",verb:"colocar",before:"antes",after:"depois"},{lang:"sw",verb:"weka",before:"kabla",after:"baada"},{lang:"tl",verb:"ilagay",verbAlts:["maglagay"],before:"bago",after:"matapos"},{lang:"zh",verb:"\u653e\u7f6e",verbAlts:["\u653e","\u653e\u5165"],patientPrefix:"\u628a",patientPrefixOptional:!0,before:"\u4e4b\u524d",after:"\u4e4b\u540e"}],li=[{lang:"es",verb:"poner",verbAlts:["pon","colocar","put"],at:"en",end:"fin",of:"de"},{lang:"fr",verb:"mettre",at:"\u00e0",end:"fin",of:"de"},{lang:"pt",verb:"colocar",at:"em",end:"fim",of:"de"},{lang:"it",verb:"mettere",at:"a",end:"fine",of:"di"},{lang:"de",verb:"setzen",at:"bei",end:"ende",of:"von"},{lang:"sw",verb:"weka",at:"katika",end:"mwisho",of:"ya"},{lang:"id",verb:"taruh",verbAlts:["letakkan","masukkan","tempatkan"],at:"di",end:"akhir",of:"dari"},{lang:"ms",verb:"letak",at:"di",end:"tamat",of:"daripada"},{lang:"vi",verb:"\u0111\u1eb7t",at:"t\u1ea1i",end:"k\u1ebft th\u00fac",of:"c\u1ee7a"},{lang:"pl",verb:"umie\u015b\u0107",at:"przy",end:"koniec",of:"z"},{lang:"ru",verb:"\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c",at:"\u0443",end:"\u043a\u043e\u043d\u0435\u0446",of:"\u0438\u0437"},{lang:"uk",verb:"\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438",at:"\u0432",end:"\u043a\u0456\u043d\u0435\u0446\u044c",of:"\u0437"},{lang:"th",verb:"\u0e43\u0e2a\u0e48",at:"\u0e17\u0e35\u0e48",end:"\u0e08\u0e1a",of:"\u0e02\u0e2d\u0e07"},{lang:"tl",verb:"ilagay",at:"sa",end:"wakas",of:"ng"},{lang:"ar",verb:"\u0636\u0639",at:"\u0639\u0646\u062f",end:"\u0627\u0644\u0646\u0647\u0627\u064a\u0629",of:"\u0645\u0646"},{lang:"zh",verb:"\u653e\u7f6e",verbAlts:["\u653e","\u653e\u5165"],patientPrefix:"\u628a",at:"\u5728",end:"\u7ed3\u675f",of:"\u7684"},{lang:"he",verb:"\u05e9\u05d9\u05dd",patientPrefix:"\u05d0\u05ea",at:"at",end:"\u05e1\u05d5\u05e3",of:"of"},{lang:"tr",verb:"koy",sov:!0,objMarker:"i",at:"de",end:"son",of:"nin"},{lang:"ja",verb:"\u7f6e\u304f",sov:!0,objMarker:"\u3092",at:"\u3067",end:"\u7d42\u308f\u308a",of:"\u306e"},{lang:"ko",verb:"\ub123\ub2e4",sov:!0,objMarker:"\ub97c",at:"\uc5d0",end:"\ub05d",of:"\uc758"},{lang:"hi",verb:"\u0930\u0916\u0947\u0902",verbAlts:["\u0930\u0916","\u0921\u093e\u0932\u0947\u0902","\u0921\u093e\u0932"],sov:!0,objMarker:"\u0915\u094b",at:"\u092a\u0930",end:"\u0938\u092e\u093e\u092a\u094d\u0924",of:"\u0915\u093e"},{lang:"bn",verb:"\u09b0\u09be\u0996\u09c1\u09a8",verbAlts:["\u09b0\u09be\u0996"],sov:!0,objMarker:"\u0995\u09c7",at:"\u098f",end:"\u09b6\u09c7\u09b7",of:"\u09b0"},{lang:"qu",verb:"churay",sov:!0,objMarker:"ta",at:"pi",end:"tukuy",of:"pa"}]}}),gi=b({"src/tokenizers/char-classifiers.ts"(){}}),ki=b({"src/tokenizers/base-tokenizer.ts"(){}}),zi=b({"src/tokenizers/base.ts"(){bt(),gi(),ki()}});function wi(){return[new i,new a,new vi,new fi,new n]}var bi,xi=b({"src/tokenizers/generic-extractors.ts"(){yi=["===","!==","->","==","!=","<=",">=","&&","||","**","+=","-=","*=","/=","+","-","*","/","=",">","<","!","&","|","%","^","~"],vi=class{constructor(e=yi){this.name="operator",this.operators=[...e].sort((e,t)=>t.length-e.length)}canExtract(e,t){return this.operators.some(r=>e.startsWith(r,t))}extract(e,t){for(const r of this.operators)if(e.startsWith(r,t))return{value:r,length:r.length};return null}},fi=class{constructor(e="()[]{},:;"){this.punctuation=e,this.name="punctuation"}canExtract(e,t){return this.punctuation.includes(e[t])}extract(e,t){const r=e[t];return this.punctuation.includes(r)?{value:r,length:1}:null}}}});function Ti(e,t){let r=t;for(;e.length>r&&":"===e[r];){const t=e.slice(r).match(/^::?[a-zA-Z][a-zA-Z0-9-]*/);if(!t)break;let i=r+t[0].length;if("("===e[i]){let t=0,r=i;for(;e.length>r;){if("("===e[r])t++;else if(")"===e[r]&&(t--,0===t)){r++;break}r++}if(0!==t)break;i=r}r=i}return r}function Si(e,t){const r=e[t];if("#"===r){const r=e.slice(t).match(/^#[a-zA-Z_][\w-]*/);if(!r)return null;const i=Ti(e,t+r[0].length);return e.slice(t,i)}if("."===r){const r=e.slice(t).match(/^\.\{[a-zA-Z_$][\w$]*\}/);if(r)return r[0];const i=e.slice(t).match(/^\.[a-zA-Z_][\w-]*/);if(!i)return null;const a=Ti(e,t+i[0].length);return e.slice(t,a)}if("@"===r){const r=e.slice(t).match(/^@[a-zA-Z_][\w-]*/);return r?r[0]:null}if("*"===r){const r=e.slice(t).match(/^\*(?:--)?[a-zA-Z_][\w-]*/);return r?r[0]:null}if("["===r){let r=0,i=t;for(;e.length>i;){if("["===e[i]&&r++,"]"===e[i]&&(r--,0===r)){const r=Ti(e,i+1);return e.slice(t,r)}i++}return null}if("<"===r){const r=e.slice(t).match(/^<(?=[\w.#[])[\w-]*(?:[#.][\w-]+|\[[^\]]+\]|::?[a-zA-Z][a-zA-Z0-9-]*(?:\([^)]*\))?)*\s*\/>/);return r?r[0]:null}return null}var ji,Ei,Li,Ci=b({"src/tokenizers/extractors/css-selector.ts"(){bi=class{constructor(){this.name="css-selector"}canExtract(e,t){const r=e[t];return"#"===r||"."===r||"["===r||"<"===r||("@"===r||"*"===r)&&null!==Si(e,t)}extract(e,t){const r=Si(e,t);return r?{value:r,length:r.length,metadata:{type:"css-selector"}}:null}}}}),Pi=b({"src/tokenizers/extractors/event-modifier.ts"(){ji=class{constructor(){this.name="event-modifier"}canExtract(e,t){if("."!==e[t])return!1;const r=e.slice(t);return/^\.(once|prevent|stop|debounce|throttle|queue)/.test(r)}extract(e,t){const r=e.slice(t).match(/^\.(?:once|prevent|stop|debounce|throttle|queue)(?:\(([^)]+)\))?/);if(!r)return null;const i=r[0],a=i.slice(1).split("(")[0],n=r[1];return{value:i,length:i.length,metadata:{modifierName:a,value:n?"queue"===a?n:parseInt(n,10):void 0}}}}}});function _i(e,t){let r=1;for(let i=t;e.length>i;i++){const t=e[i];if("{"===t)r++;else if("}"===t&&0===--r)return i+1}return-1}var Wi,Ai,qi=b({"src/tokenizers/extractors/url.ts"(){Ei=["http://","https://","//","./","../","/"],Li=class{constructor(){this.name="url"}canExtract(e,t){const r=e.slice(t);return r.startsWith("http://")||r.startsWith("https://")||r.startsWith("//")||r.startsWith("./")||r.startsWith("../")||r.startsWith("/")}extract(e,t){const r=function(e,t){const r=e.slice(t),i=Ei.find(e=>r.startsWith(e));if(!i)return null;let a=i.length;for(;r.length>a;){const e=r[a];if("$"===e&&"{"===r[a+1]){const e=_i(r,a+2);if(-1!==e){a=e;continue}}if(/\s/.test(e))break;a++}return r.slice(0,a)}(e,t);return r?{value:r,length:r.length,metadata:{type:"url"}}:null}}}}),Mi=b({"src/tokenizers/extractors/variable-ref.ts"(){Wi=class{constructor(){this.name="variable-ref"}canExtract(e,t){const r=e[t];return(":"===r||"$"===r||"^"===r)&&e.length>t+1&&/[a-zA-Z_]/.test(e[t+1])}extract(e,t){if(!this.canExtract(e,t))return null;let r=1;for(;e.length>t+r&&/[a-zA-Z0-9_]/.test(e[t+r]);)r++;return{value:e.substring(t,t+r),length:r,metadata:{type:"variable-reference"}}}}}});function Oi(e){return function(e){const t=e.charCodeAt(0);return t>=12352&&12447>=t}(e)||function(e){const t=e.charCodeAt(0);return t>=12448&&12543>=t}(e)||function(e){const t=e.charCodeAt(0);return t>=19968&&40879>=t||t>=13312&&19903>=t}(e)}var Ri,Ni,$i,Ii,Ki,Vi=b({"src/tokenizers/extractors/japanese-keyword.ts"(){Ai=class{constructor(){this.name="japanese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Oi(e[t])}extract(e,t){if(!this.context)throw Error("JapaneseKeywordExtractor: context not set");const r=t;this.context.isKeywordStart(e,t);let i="",a=t;for(;e.length>a&&Oi(e[a]);)i+=e[a],a++;let n=i,o=i.length;for(let e=i.length;e>0;e--){const t=i.substring(0,e);if(this.context.lookupKeyword(t)){n=t,o=e;break}}if(i=n,a=t+o,!i)return null;const s=this.context.lookupKeyword(i),l=s&&s.normalized!==s.native?s.normalized:void 0;let p;if(!s&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(p=t.normalized)}}return{value:i,length:a-r,metadata:{normalized:l||p}}}}}}),Bi=b({"src/tokenizers/extractors/japanese-particle.ts"(){Ri=new Map([["\u3092",{role:"patient",confidence:.95}],["\u306b",{role:"destination",confidence:.85}],["\u304c",{role:"subject",confidence:.9}],["\u306e",{role:"possessive",confidence:.9}],["\u3068",{role:"conjunction",confidence:.8}],["\u3067",{role:"instrument",confidence:.85}],["\u3078",{role:"direction",confidence:.85}],["\u3084",{role:"listing",confidence:.8}],["\u304b",{role:"question",confidence:.85}],["\u3082",{role:"also",confidence:.85}],["\u306f",{role:"topic",confidence:.9}]]),Ni=new Map([["\u304b\u3089",{role:"source",confidence:.95}],["\u307e\u3067",{role:"until",confidence:.95}],["\u3088\u308a",{role:"comparison",confidence:.9}],["\u3068\u3057\u3066",{role:"as",confidence:.9}],["\u306b\u3064\u3044\u3066",{role:"about",confidence:.9}],["\u306b\u3088\u3063\u3066",{role:"by-means",confidence:.9}],["\u306b\u3066",{role:"at-location",confidence:.85}]]),$i=class{constructor(){this.name="japanese-particle"}setContext(e){this._context=e}longerKeywordStartsHere(e,t){if(!this._context)return!1;for(let r=4;r>=2;r--){const i=e.slice(t,t+r);if(i.length===r&&this._context.isKeyword(i))return!0}return!1}canExtract(e,t){if(Ri.has(e[t])&&!this.longerKeywordStartsHere(e,t))return!0;for(const[r]of Ni)if(e.startsWith(r,t))return!0;return!1}extract(e,t){for(const[r,i]of Ni)if(e.startsWith(r,t))return{value:r,length:r.length,metadata:{role:i.role,confidence:i.confidence,variant:r}};const r=e[t];if(this.longerKeywordStartsHere(e,t))return null;const i=Ri.get(r);return i?{value:r,length:1,metadata:{role:i.role,confidence:i.confidence,variant:r}}:null}}}});function Di(e){return function(e){const t=e.charCodeAt(0);return t>=44032&&55203>=t}(e)||function(e){const t=e.charCodeAt(0);return t>=4352&&4607>=t||t>=12592&&12687>=t}(e)}var Fi,Hi,Ui,Gi=b({"src/tokenizers/extractors/korean-keyword.ts"(){Ii=["\ud560\ub54c","\ud558\uba74","\ud558\ub2c8\uae4c","\ud560 \ub54c"],Ki=class{constructor(){this.name="korean-keyword"}setContext(e){this.context=e}canExtract(e,t){return Di(e[t])}extract(e,t){if(!this.context)throw Error("KoreanKeywordExtractor: context not set");const r=t;for(let t=Math.min(6,e.length-r);t>=2;t--){const i=e.slice(r,r+t);let a=!0;for(let e=0;i.length>e;e++)if(!Di(i[e])){a=!1;break}if(!a)continue;const n=this.context.lookupKeyword(i);if(n)return{value:i,length:t,metadata:{normalized:n.normalized!==n.native?n.normalized:void 0}};if(this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const r=this.context.lookupKeyword(e.stem);if(r)return{value:i,length:t,metadata:{normalized:r.normalized,stem:e.stem,stemConfidence:e.confidence}}}}}let i="",a=t;for(;e.length>a&&Di(e[a])&&(0>=i.length||!this.context.isKeywordStart(e,a));)i+=e[a],a++;if(!i)return null;for(const e of Ii)if(i.endsWith(e)&&i.length>e.length){const t=i.slice(0,-e.length),r=this.context.lookupKeyword(t);if(r)return{value:t,length:t.length,metadata:{normalized:r.normalized,hasSuffix:!0,suffix:e,stem:t}}}const n=this.context.lookupKeyword(i),o=n&&n.normalized!==n.native?n.normalized:void 0;let s,l,p;if(i.includes("\ud1a0\uae00"),!n&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(s=t.normalized,l=e.stem,p=e.confidence,i.includes("\ud1a0\uae00"))}}return{value:i,length:a-r,metadata:{normalized:o||s,stem:l,stemConfidence:p}}}}}});function Zi(e){if(!e)return!1;const t=e.codePointAt(0);return t>=44032&&55203>=t}var Yi,Xi=b({"src/tokenizers/extractors/korean-particle.ts"(){Fi=new Map([["\uc774",{role:"agent",confidence:.85,variant:"consonant",description:"subject marker (after consonant)"}],["\uac00",{role:"agent",confidence:.85,variant:"vowel",description:"subject marker (after vowel)"}],["\uc744",{role:"patient",confidence:.95,variant:"consonant",description:"object marker (after consonant)"}],["\ub97c",{role:"patient",confidence:.95,variant:"vowel",description:"object marker (after vowel)"}],["\uc740",{role:"agent",confidence:.75,variant:"consonant",description:"topic marker (after consonant)"}],["\ub294",{role:"agent",confidence:.75,variant:"vowel",description:"topic marker (after vowel)"}],["\uc5d0",{role:"destination",confidence:.85,description:"at/to marker"}],["\ub85c",{role:"destination",confidence:.85,variant:"vowel",description:"to/by means (after vowel or \u3139)"}],["\uc640",{role:"style",confidence:.7,variant:"vowel",description:"and/with (after vowel)"}],["\uacfc",{role:"style",confidence:.7,variant:"consonant",description:"and/with (after consonant)"}],["\uc758",{role:"patient",confidence:.6,description:"possessive marker"}],["\ub3c4",{role:"patient",confidence:.65,description:"also/too marker"}],["\ub9cc",{role:"patient",confidence:.65,description:"only marker"}]]),Hi=new Map([["\uc5d0\uc11c",{role:"source",confidence:.8,description:"at/from marker (action location)"}],["\uc73c\ub85c",{role:"destination",confidence:.85,variant:"consonant",description:"to/by means (after consonant)"}],["\ubd80\ud130",{role:"source",confidence:.9,description:"from/since marker"}],["\uae4c\uc9c0",{role:"destination",confidence:.75,description:"until/to marker"}],["\ucc98\ub7fc",{role:"manner",confidence:.8,description:"like/as marker"}],["\ubcf4\ub2e4",{role:"source",confidence:.75,description:"than marker"}]]),Ui=class{constructor(){this.name="korean-particle"}setContext(e){this._context=e}canExtract(e,t){if(Fi.has(e[t])&&!Zi(e[t+1]))return!0;for(const[r]of Hi)if(e.startsWith(r,t))return!0;return!1}extract(e,t){for(const[r,i]of Hi)if(e.startsWith(r,t))return{value:r,length:r.length,metadata:{particleRole:i.role,particleConfidence:i.confidence,particleVariant:i.variant}};const r=e[t],i=Fi.get(r);return i&&!Zi(e[t+1])?{value:r,length:1,metadata:{particleRole:i.role,particleConfidence:i.confidence,particleVariant:i.variant}}:null}}}});function Qi(e){const t=e.charCodeAt(0);return t>=19968&&40959>=t||t>=13312&&19903>=t||t>=63744&&64255>=t||t>=131072&&173791>=t||t>=173824&&177983>=t||t>=177984&&178207>=t||t>=178208&&183983>=t||t>=183984&&191471>=t||t>=194560&&195103>=t}var Ji,ea,ta,ra,ia,aa,na,oa=b({"src/tokenizers/extractors/chinese-keyword.ts"(){Yi=class{constructor(){this.name="chinese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Qi(e[t])}extract(e,t){if(!this.context)throw Error("ChineseKeywordExtractor: context not set");const r=t;let i=null;if(this.context.isKeywordStart(e,t))for(let r=10;r>=1;r--){const a=e.slice(t,t+r);if([...a].every(e=>Qi(e))){const e=this.context.lookupKeyword(a);if(e){i={word:a,entry:e};break}}}if(i)return{value:i.word,length:i.word.length,metadata:{normalized:i.entry.normalized}};let a="",n=t;for(;e.length>n&&Qi(e[n])&&(a+=e[n],n++,n>=e.length||!this.context.isKeywordStart(e,n)););return a?{value:a,length:n-r,metadata:{}}:null}}}}),sa=b({"src/tokenizers/extractors/chinese-particle.ts"(){Ji=new Map([["\u628a",{role:"patient",confidence:.95,description:"ba-construction object marker"}],["\u5728",{role:"location",confidence:.85,description:"at/in/on location marker"}],["\u4ece",{role:"source",confidence:.9,description:"from marker"}],["\u5230",{role:"destination",confidence:.9,description:"to/until marker"}],["\u5411",{role:"destination",confidence:.85,description:"towards marker"}],["\u7ed9",{role:"destination",confidence:.85,description:"to/for recipient marker"}],["\u5bf9",{role:"destination",confidence:.8,description:"to/towards marker"}],["\u7528",{role:"instrument",confidence:.85,description:"with/using marker"}],["\u88ab",{role:"agent",confidence:.8,description:"by (passive) marker"}],["\u8ba9",{role:"agent",confidence:.75,description:"let/make causative marker"}],["\u7684",{role:"possessive",confidence:.9,description:"possessive/attributive marker"}],["\u5730",{role:"manner",confidence:.85,description:"adverbial marker"}],["\u5f97",{role:"manner",confidence:.8,description:"complement marker"}],["\u4e86",{role:"aspect",confidence:.7,description:"completion aspect marker"}],["\u7740",{role:"aspect",confidence:.7,description:"progressive aspect marker"}],["\u8fc7",{role:"aspect",confidence:.7,description:"experiential aspect marker"}],["\u5417",{role:"mood",confidence:.75,description:"question particle"}],["\u5462",{role:"mood",confidence:.7,description:"question/emphasis particle"}],["\u5427",{role:"mood",confidence:.7,description:"suggestion particle"}]]),ea=new Map([["\u7136\u540e",{role:"sequence",confidence:.9,description:"then/afterwards"}],["\u63a5\u7740",{role:"sequence",confidence:.85,description:"next/following"}],["\u5e76\u4e14",{role:"conjunction",confidence:.85,description:"and/moreover"}],["\u6216\u8005",{role:"conjunction",confidence:.85,description:"or"}],["\u5982\u679c",{role:"condition",confidence:.9,description:"if"}],["\u90a3\u4e48",{role:"consequence",confidence:.85,description:"then"}],["\u5426\u5219",{role:"alternative",confidence:.85,description:"otherwise"}]]),ta=class{constructor(){this.name="chinese-particle"}setContext(e){this._context=e}longerKeywordAt(e,t,r){const i=this._context;if(!i)return!1;for(let a=Math.min(10,e.length-t);a>r;a--)if(i.lookupKeyword(e.slice(t,t+a)))return!0;return!1}canExtract(e,t){if(Ji.has(e[t])&&!this.longerKeywordAt(e,t,1))return!0;for(const[r]of ea)if(e.startsWith(r,t)&&!this.longerKeywordAt(e,t,r.length))return!0;return!1}extract(e,t){for(const[r,i]of ea)if(e.startsWith(r,t)&&!this.longerKeywordAt(e,t,r.length))return{value:r,length:r.length,metadata:{particleRole:i.role,particleConfidence:i.confidence,particleDescription:i.description}};const r=e[t],i=Ji.get(r);return i&&!this.longerKeywordAt(e,t,1)?{value:r,length:1,metadata:{particleRole:i.role,particleConfidence:i.confidence,particleDescription:i.description}}:null}}}});var la,pa,ma,ca,da,ua,ya,va,fa,ha,ga,ka,za,wa=b({"src/tokenizers/extractors/vietnamese-keyword.ts"(){var e;({isLetter:ra,isIdentifierChar:ia}=(e=/[a-zA-Z\u00e0\u00e1\u1ea3\u00e3\u1ea1\u0103\u1eb1\u1eaf\u1eb3\u1eb5\u1eb7\u00e2\u1ea7\u1ea5\u1ea9\u1eab\u1ead\u00e8\u00e9\u1ebb\u1ebd\u1eb9\u00ea\u1ec1\u1ebf\u1ec3\u1ec5\u1ec7\u00ec\u00ed\u1ec9\u0129\u1ecb\u00f2\u00f3\u1ecf\u00f5\u1ecd\u00f4\u1ed3\u1ed1\u1ed5\u1ed7\u1ed9\u01a1\u1edd\u1edb\u1edf\u1ee1\u1ee3\u00f9\u00fa\u1ee7\u0169\u1ee5\u01b0\u1eeb\u1ee9\u1eed\u1eef\u1ef1\u1ef3\u00fd\u1ef7\u1ef9\u1ef5\u0111\u00c0\u00c1\u1ea2\u00c3\u1ea0\u0102\u1eb0\u1eae\u1eb2\u1eb4\u1eb6\u00c2\u1ea6\u1ea4\u1ea8\u1eaa\u1eac\u00c8\u00c9\u1eba\u1ebc\u1eb8\u00ca\u1ec0\u1ebe\u1ec2\u1ec4\u1ec6\u00cc\u00cd\u1ec8\u0128\u1eca\u00d2\u00d3\u1ece\u00d5\u1ecc\u00d4\u1ed2\u1ed0\u1ed4\u1ed6\u1ed8\u01a0\u1edc\u1eda\u1ede\u1ee0\u1ee2\u00d9\u00da\u1ee6\u0168\u1ee4\u01af\u1eea\u1ee8\u1eec\u1eee\u1ef0\u1ef2\u00dd\u1ef6\u1ef8\u1ef4\u0110]/,{isLetter:t=>e.test(t),isIdentifierChar:t=>/[0-9]/.test(t)||e.test(t)})),aa=new Set(["trong","ngo\u00e0i","tr\u00ean","d\u01b0\u1edbi","v\u00e0o","ra","\u0111\u1ebfn","t\u1eeb","v\u1edbi","cho","b\u1edfi","qua","tr\u01b0\u1edbc","sau","gi\u1eefa","b\u00ean","theo","v\u1ec1","t\u1edbi","l\u00ean","xu\u1ed1ng"]),na=class{constructor(){this.name="vietnamese-keyword"}setContext(e){this.context=e}canExtract(e,t){return ra(e[t])}extract(e,t){if(!this.context)throw Error("VietnameseKeywordExtractor: context not set");const r=this.tryMultiWordPhrase(e,t);if(r)return r;let i=t,a="";for(;e.length>i&&ia(e[i]);)a+=e[i++];if(!a)return null;const n=a.toLowerCase(),o=aa.has(n),s=this.context.lookupKeyword(n);return{value:a,length:i-t,metadata:{normalized:s&&s.normalized!==s.native?s.normalized:void 0,isPreposition:o}}}tryMultiWordPhrase(e,t){if(!this.context)return null;const r=["v\u00e0o trong","s\u1ef1 ki\u1ec7n"];for(const i of r){if(e.slice(t,t+i.length).toLowerCase()===i.toLowerCase()){const r=t+i.length;if(r>=e.length||!/[a-zA-Z\u00e0\u00e1\u1ea3\u00e3\u1ea1\u0103\u1eb1\u1eaf\u1eb3\u1eb5\u1eb7\u00e2\u1ea7\u1ea5\u1ea9\u1eab\u1ead\u00e8\u00e9\u1ebb\u1ebd\u1eb9\u00ea\u1ec1\u1ebf\u1ec3\u1ec5\u1ec7\u00ec\u00ed\u1ec9\u0129\u1ecb\u00f2\u00f3\u1ecf\u00f5\u1ecd\u00f4\u1ed3\u1ed1\u1ed5\u1ed7\u1ed9\u01a1\u1edd\u1edb\u1edf\u1ee1\u1ee3\u00f9\u00fa\u1ee7\u0169\u1ee5\u01b0\u1eeb\u1ee9\u1eed\u1eef\u1ef1\u1ef3\u00fd\u1ef7\u1ef9\u1ef5\u0111]/.test(e[r])){const a=this.context.lookupKeyword(i);return{value:e.slice(t,r),length:i.length,metadata:{normalized:a?.normalized,isPreposition:!1}}}}}return null}}}}),ba=b({"src/tokenizers/extractors/arabic-keyword.ts"(){zi(),la=v([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),pa=new Set(["\u0641\u064a","\u0639\u0644\u0649","\u0645\u0646","\u0625\u0644\u0649","\u0627\u0644\u0649","\u0645\u0639","\u0639\u0646","\u0642\u0628\u0644","\u0628\u0639\u062f","\u0628\u064a\u0646"]),ma=class{constructor(){this.name="arabic-keyword"}setContext(e){this.context=e}canExtract(e,t){return la(e[t])}extract(e,t){if(!this.context)throw Error("ArabicKeywordExtractor: context not set");const r=t;this.context.isKeywordStart(e,t);let i="",a=t;for(;e.length>a&&(la(e[a])||"\u0640"===e[a]);)i+=e[a],a++;if(!i)return null;const n=this.context.lookupKeyword(i),o=n&&n.normalized!==n.native?n.normalized:void 0;if(pa.has(i))return{value:i,length:a-r,metadata:{prepositionValue:i,normalized:o}};let s,l,p;if(!n&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(s=t.normalized,l=e.stem,p=e.confidence)}}return{value:i,length:a-r,metadata:{normalized:o||s,stem:l,stemConfidence:p}}}}}}),xa=b({"src/tokenizers/extractors/arabic-proclitic.ts"(){zi(),ca=v([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),da=new Map([["\u0648",{normalized:"and",type:"conjunction"}],["\u0641",{normalized:"then",type:"conjunction"}],["\u0628",{normalized:"with",type:"preposition"}],["\u0644",{normalized:"to",type:"preposition"}],["\u0643",{normalized:"like",type:"preposition"}],["\u0648\u0644",{normalized:"and-to",type:"conjunction"}],["\u0648\u0628",{normalized:"and-with",type:"conjunction"}],["\u0648\u0643",{normalized:"and-like",type:"conjunction"}],["\u0641\u0644",{normalized:"then-to",type:"conjunction"}],["\u0641\u0628",{normalized:"then-with",type:"conjunction"}],["\u0641\u0643",{normalized:"then-like",type:"conjunction"}]]),ua=new Set(["\u0648\u062b\u064a\u0642\u0629"]),ya=class{constructor(){this.name="arabic-proclitic"}setContext(e){this.context=e}canExtract(e,t){return da.has(e[t])||e.length>t+1&&da.has(e.slice(t,t+2))}extract(e,t){if(!this.context)throw Error("ArabicProcliticExtractor: context not set");let r=t;for(;e.length>r&&(ca(e[r])||"\u0640"===e[r]);)r++;const i=e.slice(t,r);if(this.context.isKeyword(i))return null;if(ua.has(i))return null;if(e.length>=t+2){const i=e.slice(t,t+2),a=da.get(i);if(a){const n=t+2;if(e.length>n&&ca(e[n])){let o=0,s=n;for(;e.length>s&&ca(e[s]);)o++,s++;if(o>=2){if(!da.get(e[t]))return{value:i,length:2,metadata:{procliticType:a.type,normalized:a.normalized}};{const n=e.slice(t+1,r);if(!this.context.isKeyword(n))return{value:i,length:2,metadata:{procliticType:a.type,normalized:a.normalized}}}}}}}const a=e[t],n=da.get(a);if(!n)return null;const o=t+1;if(o>=e.length||!ca(e[o]))return null;let s=0,l=o;for(;e.length>l&&ca(e[l]);)s++,l++;if(2>s){const r=s>=1&&e.slice(o,l).split("").every(e=>"\u0640"===e),i=e[l];return"preposition"!==n.type||!r||"#"!==i&&"."!==i?null:{value:e.slice(t,l),length:l-t,metadata:{procliticType:n.type,normalized:n.normalized}}}return{value:a,length:1,metadata:{procliticType:n.type,normalized:n.normalized}}}}}}),Ta=b({"src/tokenizers/extractors/arabic-temporal.ts"(){zi(),va=v([[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]]),fa=new Map([["\u0639\u0646\u062f\u0645\u0627",{normalized:"on",formality:"formal",confidence:.95,description:"when (formal MSA)"}],["\u062d\u064a\u0646\u0645\u0627",{normalized:"on",formality:"formal",confidence:.93,description:"when/whenever (formal)"}],["\u0639\u0646\u062f",{normalized:"on",formality:"neutral",confidence:.88,description:"at/when (neutral)"}],["\u062d\u064a\u0646",{normalized:"on",formality:"neutral",confidence:.85,description:"when/time (neutral)"}],["\u0644\u0645\u0651\u0627",{normalized:"on",formality:"dialectal",confidence:.7,description:"when (dialectal, with shadda)"}],["\u0644\u0645\u0627",{normalized:"on",formality:"dialectal",confidence:.68,description:"when (dialectal, no diacritic)"}],["\u0644\u062f\u0649",{normalized:"on",formality:"neutral",confidence:.82,description:"at/with (temporal)"}]]),ha=class{constructor(){this.name="arabic-temporal"}setContext(e){this._context=e}canExtract(e,t){for(const[r]of fa)if(e.startsWith(r,t))return!0;return!1}extract(e,t){const r=Array.from(fa.entries()).sort(([e],[t])=>t.length-e.length);for(const[i,a]of r)if(e.startsWith(i,t)){const r=t+i.length;if(r>=e.length||/\s/.test(e[r])||!va(e[r]))return{value:i,length:i.length,metadata:{temporalFormality:a.formality,temporalConfidence:a.confidence,normalized:a.normalized,description:a.description}}}return null}}}});var Sa,ja=b({"src/tokenizers/extractors/cyrillic-keyword.ts"(){ga=class{constructor(e,t,r){this.name=e;const i=(a=t,{isLetter:e=>a.test(e),isIdentifierChar:e=>/[0-9_]/.test(e)||a.test(e)});var a;this.isLetter=i.isLetter,this.isIdentifierChar=i.isIdentifierChar,this.prepositions=r}setContext(e){this.context=e}canExtract(e,t){const r=e[t];return"'"!==r&&this.isLetter(r)}extract(e,t){if(!this.context)throw Error(this.name+": context not set");let r=t,i="";for(;e.length>r&&this.isIdentifierChar(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=this.prepositions.has(a),o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;let l;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized)}}return{value:i,length:r-t,metadata:{normalized:s||l,isPreposition:n}}}},ka=new Set(["\u0432","\u0432\u043e","\u043d\u0430","\u0441","\u0441\u043e","\u043a","\u043a\u043e","\u043e","\u043e\u0431","\u043e\u0431\u043e","\u0443","\u043e\u0442","\u0434\u043e","\u0438\u0437","\u0437\u0430","\u043f\u043e","\u043f\u043e\u0434","\u043d\u0430\u0434","\u043f\u0435\u0440\u0435\u0434","\u043f\u0435\u0440\u0435\u0434\u043e","\u043c\u0435\u0436\u0434\u0443","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u0434\u043b\u044f","\u043f\u0440\u0438","\u043f\u0440\u043e","\u043f\u043e\u0441\u043b\u0435","\u0432\u043e\u043a\u0440\u0443\u0433","\u043f\u0440\u043e\u0442\u0438\u0432","\u0432\u043c\u0435\u0441\u0442\u043e","\u043a\u0440\u043e\u043c\u0435","\u0441\u0440\u0435\u0434\u0438"]),za=new Set(["\u0432","\u0443","\u043d\u0430","\u0437","\u0456\u0437","\u0437\u0456","\u0434\u043e","\u0432\u0456\u0434","\u043e","\u043e\u0431","\u043f\u0440\u0438","\u0434\u043b\u044f","\u043f\u0456\u0434","\u043d\u0430\u0434","\u043f\u0435\u0440\u0435\u0434","\u043c\u0456\u0436","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u043f\u043e","\u0437\u0430","\u043f\u0440\u043e","\u043f\u0456\u0441\u043b\u044f","\u043d\u0430\u0432\u043a\u043e\u043b\u043e","\u043f\u0440\u043e\u0442\u0438","\u0437\u0430\u043c\u0456\u0441\u0442\u044c","\u043a\u0440\u0456\u043c","\u0441\u0435\u0440\u0435\u0434","\u043a"])}});function Ea(e){const t=e.charCodeAt(0);return t>=2304&&2431>=t||t>=43232&&43263>=t}var La,Ca,Pa,_a,Wa=b({"src/tokenizers/extractors/hindi-keyword.ts"(){Sa=class{constructor(){this.name="hindi-keyword"}setContext(e){this.context=e}canExtract(e,t){return Ea(e[t])}extract(e,t){if(!this.context)throw Error("HindiKeywordExtractor: context not set");const r=t;let i="",a=t;for(;e.length>a&&Ea(e[a]);)i+=e[a],a++;if(this.context&&"-"===e[a]&&e.length>a+1&&Ea(e[a+1])){let t=a,r=i;for(;e.length>t&&("-"===e[t]||Ea(e[t]));)r+=e[t++];this.context.lookupKeyword(r)&&(i=r,a=t)}if(this.context&&"_"===e[a]&&e.length>a+1&&Ea(e[a+1])){let t=a,r=i;for(;e.length>t&&("_"===e[t]||Ea(e[t]));)r+=e[t++];this.context.lookupKeyword(r)&&(i=r,a=t)}if(!i)return null;const n=this.context.lookupKeyword(i),o=n&&n.normalized!==n.native?n.normalized:void 0;let s;if(!n&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(s=t.normalized)}}return{value:i,length:a-r,metadata:{normalized:o||s}}}}}}),Aa=b({"src/tokenizers/extractors/hindi-particle.ts"(){La=new Map([["\u0915\u094b",{role:"patient",confidence:.95}],["\u092e\u0947\u0902",{role:"destination",confidence:.9}],["\u092a\u0930",{role:"event",confidence:.85}],["\u0938\u0947",{role:"source",confidence:.9}],["\u0915\u093e",{role:"possessive",confidence:.95}],["\u0915\u0940",{role:"possessive",confidence:.95}],["\u0915\u0947",{role:"possessive",confidence:.95}],["\u0924\u0915",{role:"until",confidence:.9}],["\u0928\u0947",{role:"agent",confidence:.85}]]),Ca=new Map([["\u0915\u0947 \u0938\u093e\u0925",{role:"instrument",confidence:.95}],["\u0915\u0947 \u092c\u093e\u0930\u0947 \u092e\u0947\u0902",{role:"about",confidence:.9}]]),Pa=class{constructor(){this.name="hindi-particle"}setContext(e){this._context=e}canExtract(e,t){if(this.underscoreJoinedKeyword(e,t))return!1;for(const[r]of Ca)if(e.startsWith(r,t))return!0;let r="",i=t;for(;e.length>i&&this.isDevanagari(e[i]);)r+=e[i],i++;return La.has(r)}underscoreJoinedKeyword(e,t){if(!this._context)return!1;let r=t;for(;e.length>r&&this.isDevanagari(e[r]);)r++;if("_"!==e[r]||r+1>=e.length||!this.isDevanagari(e[r+1]))return!1;let i=e.slice(t,r);for(;e.length>r&&("_"===e[r]||this.isDevanagari(e[r]));)i+=e[r++];return!!this._context.lookupKeyword(i)}extract(e,t){if(this.underscoreJoinedKeyword(e,t))return null;for(const[r,i]of Ca)if(e.startsWith(r,t))return{value:r,length:r.length,metadata:{role:i.role,confidence:i.confidence,variant:r}};let r="",i=t;for(;e.length>i&&this.isDevanagari(e[i]);)r+=e[i],i++;const a=La.get(r);return a?{value:r,length:r.length,metadata:{role:a.role,confidence:a.confidence,variant:r}}:null}isDevanagari(e){const t=e.charCodeAt(0);return t>=2304&&2431>=t||t>=43232&&43263>=t}}}});function qa(e){const t=e.charCodeAt(0);return t>=2432&&2559>=t}var Ma,Oa,Ra,Na=b({"src/tokenizers/extractors/bengali-keyword.ts"(){_a=class{constructor(){this.name="bengali-keyword"}setContext(e){this.context=e}canExtract(e,t){return qa(e[t])}extract(e,t){if(!this.context)throw Error("BengaliKeywordExtractor: context not set");const r=t;let i="",a=t;for(;e.length>a&&qa(e[a]);)i+=e[a],a++;if(!i)return null;const n=this.context.lookupKeyword(i),o=n&&n.normalized!==n.native?n.normalized:void 0;let s;if(!n&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(s=t.normalized)}}return{value:i,length:a-r,metadata:{normalized:o||s}}}}}}),$a=b({"src/tokenizers/extractors/bengali-particle.ts"(){Ma=new Map([["\u0995\u09c7",{role:"patient",confidence:.95}],["\u09a4\u09c7",{role:"destination",confidence:.9}],["\u098f",{role:"event",confidence:.85}],["\u09a5\u09c7\u0995\u09c7",{role:"source",confidence:.95}],["\u09b0",{role:"possessive",confidence:.95}],["\u098f\u09b0",{role:"possessive",confidence:.95}],["\u09a6\u09bf\u09af\u09bc\u09c7",{role:"instrument",confidence:.9}],["\u099c\u09a8\u09cd\u09af",{role:"purpose",confidence:.9}],["\u09aa\u09b0\u09cd\u09af\u09a8\u09cd\u09a4",{role:"until",confidence:.9}],["\u09ae\u09a7\u09cd\u09af\u09c7",{role:"location",confidence:.85}]]),Oa=class{constructor(){this.name="bengali-particle"}setContext(e){this._context=e}canExtract(e,t){let r="",i=t;for(;e.length>i&&this.isBengali(e[i]);)r+=e[i],i++;return Ma.has(r)}extract(e,t){let r="",i=t;for(;e.length>i&&this.isBengali(e[i]);)r+=e[i],i++;const a=Ma.get(r);return a?{value:r,length:r.length,metadata:{role:a.role,confidence:a.confidence,variant:r}}:null}isBengali(e){const t=e.charCodeAt(0);return t>=2432&&2559>=t}}}});function Ia(e){const t=e.charCodeAt(0);return t>=3584&&3711>=t}function Ka(e){return/[a-zA-Z0-9_]/.test(e)}var Va,Ba=b({"src/tokenizers/extractors/thai-keyword.ts"(){Ra=class{constructor(){this.name="thai-keyword"}setContext(e){this.context=e}canExtract(e,t){return Ia(e[t])||Ka(e[t])}extract(e,t){if(!this.context)throw Error("ThaiKeywordExtractor: context not set");const r=e[t];return Ia(r)?this.extractThaiWord(e,t):Ka(r)?this.extractAsciiWord(e,t):null}extractThaiWord(e,t){if(!this.context)return null;let r=null,i=t,a="";for(;e.length>i&&Ia(e[i]);){a+=e[i],i++;const t=this.context.lookupKeyword(a);t&&(r={word:a,entry:t})}if(r){return{value:r.word,length:r.word.length,metadata:{normalized:r.entry.normalized!==r.entry.native?r.entry.normalized:void 0}}}let n=t,o="";for(;e.length>n&&Ia(e[n])&&(0>=o.length||!this.isKeywordStart(e,n));)o+=e[n],n++;return o?{value:o,length:o.length,metadata:{}}:null}extractAsciiWord(e,t){if(!this.context)return null;let r=t,i="";for(;e.length>r&&Ka(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=this.context.lookupKeyword(a);return{value:i,length:i.length,metadata:{normalized:n&&n.normalized!==n.native?n.normalized:void 0}}}isKeywordStart(e,t){if(!this.context)return!1;let r=t,i="";for(;e.length>r&&Ia(e[r]);){if(i+=e[r],r++,this.context.lookupKeyword(i))return!0;if(i.length>10)break}return!1}}}});function Da(e){return/[a-zA-Z0-9_]/.test(e)}var Fa,Ha,Ua=b({"src/tokenizers/extractors/malay-keyword.ts"(){Va=class{constructor(){this.name="malay-keyword"}setContext(e){this.context=e}canExtract(e,t){return/[a-zA-Z_]/.test(e[t])}extract(e,t){if(!this.context)throw Error("MalayKeywordExtractor: context not set");let r=t,i="";for(;e.length>r&&Da(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=this.context.lookupKeyword(a);return{value:i,length:i.length,metadata:{normalized:n&&n.normalized!==n.native?n.normalized:void 0}}}}}});function Ga(e){return/[a-zA-Z0-9_]/.test(e)}var Za,Ya,Xa,Qa,Ja=b({"src/tokenizers/extractors/tagalog-keyword.ts"(){Fa=new Set(["sa","ng","para","mula","hanggang","gaya","tulad","kasama","para sa"]),Ha=class{constructor(){this.name="tagalog-keyword"}setContext(e){this.context=e}canExtract(e,t){return/[a-zA-Z_]/.test(e[t])}extract(e,t){if(!this.context)throw Error("TagalogKeywordExtractor: context not set");let r=t,i="";for(;e.length>r&&Ga(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=Fa.has(a),o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;let l;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized)}}return{value:i,length:i.length,metadata:{normalized:s||l,isPreposition:n}}}}}});var en,tn,rn,an,nn=b({"src/tokenizers/extractors/polish-keyword.ts"(){Za=new Set(["do","od","z","ze","w","we","na","po","pod","przed","za","nad","mi\u0119dzy","miedzy","przez","dla","bez","o","przy","u","wed\u0142ug","wedlug","mimo","w\u015br\u00f3d","wsrod","obok","poza","wok\u00f3\u0142","wokol","przeciw","ku"]),({isLetter:Ya,isIdentifierChar:Xa}=function(){const e=/[a-zA-Z\u0105\u0119\u0107\u0144\u00f3\u015b\u017a\u017c\u0142\u0104\u0118\u0106\u0143\u00d3\u015a\u0179\u017b\u0141]/;return{isLetter:t=>e.test(t),isIdentifierChar:t=>/[0-9]/.test(t)||e.test(t)}}()),Qa=class{constructor(){this.name="polish-keyword"}setContext(e){this.context=e}canExtract(e,t){return Ya(e[t])}extract(e,t){if(!this.context)throw Error("PolishKeywordExtractor: context not set");let r=t,i="";for(;e.length>r&&Xa(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=Za.has(a),o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;let l;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized)}}return{value:i,length:r-t,metadata:{normalized:s||l,isPreposition:n}}}}}});var on,sn,ln,pn,mn=b({"src/tokenizers/extractors/indonesian-keyword.ts"(){en=new Set(["di","ke","dari","pada","dengan","tanpa","untuk","oleh","antara","sebelum","sesudah","setelah","selama","sampai","hingga","sejak","menuju","tentang","terhadap","melalui","dalam","luar"]),({isLetter:tn,isIdentifierChar:rn}=function(){const e=/[a-zA-Z]/;return{isLetter:t=>e.test(t),isIdentifierChar:t=>/[0-9]/.test(t)||e.test(t)}}()),an=class{constructor(){this.name="indonesian-keyword"}setContext(e){this.context=e}canExtract(e,t){return tn(e[t])}extract(e,t){if(!this.context)throw Error("IndonesianKeywordExtractor: context not set");let r=t,i="";for(;e.length>r&&rn(e[r]);)i+=e[r++];if(this.context&&e.length>r&&"_"===e[r]){let t=r,a=i;for(;e.length>t&&("_"===e[t]||rn(e[t]));)a+=e[t++];this.context.lookupKeyword(a.toLowerCase())&&(i=a,r=t)}if(!i)return null;const a=i.toLowerCase(),n=en.has(a),o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;let l;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized)}}return{value:i,length:r-t,metadata:{normalized:s||l,isPreposition:n}}}}}});var cn,dn,un,yn=b({"src/tokenizers/extractors/swahili-keyword.ts"(){on=new Set(["kwa","na","katika","kwenye","kutoka","hadi","mpaka","kabla","baada","wakati","bila","kuhusu","karibu","mbele","nyuma","ndani","nje","juu","chini","kati"]),({isLetter:sn,isIdentifierChar:ln}=function(){const e=/[a-zA-Z]/;return{isLetter:t=>e.test(t),isIdentifierChar:t=>/[0-9]/.test(t)||e.test(t)}}()),pn=class{constructor(){this.name="swahili-keyword"}setContext(e){this.context=e}canExtract(e,t){return sn(e[t])}extract(e,t){if(!this.context)throw Error("SwahiliKeywordExtractor: context not set");let r=t,i="";for(;e.length>r&&ln(e[r]);)i+=e[r++];if(this.context&&e.length>r&&"_"===e[r]){let t=r,a=i;for(;e.length>t&&("_"===e[t]||ln(e[t]));)a+=e[t++];this.context.lookupKeyword(a.toLowerCase())&&(i=a,r=t)}if(!i)return null;const a=i.toLowerCase(),n=on.has(a),o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;let l;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized)}}return{value:i,length:r-t,metadata:{normalized:s||l,isPreposition:n}}}}}});function vn(e){const t=e.charCodeAt(0);if(t>=65&&90>=t||t>=97&&122>=t)return!0;return"\u00e7\u00c7\u011f\u011e\u0131\u0130\u00f6\u00d6\u015f\u015e\u00fc\u00dc".includes(e)}var fn,hn,gn,kn,zn=b({"src/tokenizers/extractors/turkish-keyword.ts"(){cn=new Set(["ile","i\u00e7in","kadar","gibi","\u00f6nce","\u00fczerinde","alt\u0131nda","i\u00e7inde","d\u0131\u015f\u0131nda","aras\u0131nda","kar\u015f\u0131","g\u00f6re","ra\u011fmen","do\u011fru","boyunca"]),dn=new Set(["de","da","te","ta","den","dan","ten","tan","e","a","ye","ya","i","\u0131","u","\u00fc","in","\u0131n","un","\u00fcn","le","la","yle","yla"]),un=class{constructor(){this.name="turkish-keyword"}setContext(e){this.context=e}canExtract(e,t){return vn(e[t])}extract(e,t){if(!this.context)throw Error("TurkishKeywordExtractor: context not set");const r=t;for(let t=Math.min(12,e.length-r);t>=2;t--){const i=e.slice(r,r+t);if(e.length>r+t&&vn(e[r+t]))continue;let a=!0;for(let e=0;i.length>e;e++)if(!vn(i[e])){a=!1;break}if(!a)continue;const n=this.context.lookupKeyword(i);if(n)return{value:i,length:t,metadata:{normalized:n.normalized!==n.native?n.normalized:void 0}};if(this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const r=this.context.lookupKeyword(e.stem);if(r)return{value:i,length:t,metadata:{normalized:r.normalized,stem:e.stem,stemConfidence:e.confidence}}}}}let i="",a=t;for(;e.length>a&&vn(e[a]);)i+=e[a],a++;for(let e=i.length;e>=2&&i.length<=e;e--){const t=i.substring(0,e),r=this.context.lookupKeyword(t);if(r)return{value:t,length:e,metadata:{normalized:r.normalized!==r.native?r.normalized:void 0}}}if(!i)return null;if(!i)return null;if(cn.has(i.toLowerCase()))return{value:i,length:a-r,metadata:{postpositionValue:i.toLowerCase()}};if(dn.has(i.toLowerCase()))return{value:i,length:a-r,metadata:{caseSuffixValue:i.toLowerCase()}};const n=this.context.lookupKeyword(i),o=n&&n.normalized!==n.native?n.normalized:void 0;let s,l,p;if(!n&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(s=t.normalized,l=e.stem,p=e.confidence)}}return{value:i,length:a-r,metadata:{normalized:o||s,stem:l,stemConfidence:p}}}}}});function wn(e){const t=e.charCodeAt(0);return t>=65&&90>=t||t>=97&&122>=t||("\u00f1"===e||"\u00d1"===e||"'"===e||"\u2019"===e)}function bn(e,t){const r=e.slice(t);for(const i of gn){if(!r.startsWith(i))continue;const a=t+i.length,n=e[a];if((void 0===n||!wn(n))&&!xn(e,a))return!0}return!1}function xn(e,t){let r=t;for(;e.length>r&&/\s/.test(e[r]);)r++;"-"===e[r]&&r++;let i=r;for(;e.length>i&&wn(e[i]);)i++;return gn.has(e.slice(r,i).toLowerCase())}var Tn,Sn,jn,En,Ln=b({"src/tokenizers/extractors/quechua-keyword.ts"(){fn=new Set(["-ta","-man","-manta","-pi","-wan","-paq","-kama","-rayku","-hina","ta","man","manta","pi","wan","paq","kama","hina","pa"]),hn=new Set(["kama","hina","rayku","paq"]),gn=new Set([...fn,...hn].map(e=>e.startsWith("-")?e.slice(1):e)),kn=class{constructor(){this.name="quechua-keyword"}setContext(e){this.context=e}canExtract(e,t){return!!wn(e[t])||null!==this.isHyphenatedSuffix(e,t)}isHyphenatedSuffix(e,t){if("-"!==e[t])return null;const r=e.slice(t).match(/^-([a-z\u00f1'\u2019]+)/i);return r&&fn.has("-"+r[1].toLowerCase())?r[1]:null}extract(e,t){if(!this.context)throw Error("QuechuaKeywordExtractor: context not set");const r=t,i=this.isHyphenatedSuffix(e,t);if(null!==i)return{value:i,length:i.length+1,metadata:{suffixValue:i.toLowerCase()}};for(let t=Math.min(13,e.length-r);t>=2;t--){const i=e.slice(r,r+t),a=e[r+t],n="'"===a&&/^s(?!\p{L})/iu.test(e.slice(r+t+1));if(void 0!==a&&wn(a)&&!n)continue;let o=!0;for(let e=0;i.length>e;e++){const t=i[e];if(("_"!==t||0>=e||e>=i.length-1)&&!wn(t)){o=!1;break}}if(!o)continue;const s=this.context.lookupKeyword(i);if(s&&n)return{value:i+"'s",length:t+2};if(!n){if(s)return{value:i,length:t,metadata:{normalized:s.normalized!==s.native?s.normalized:void 0}};if(this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const r=this.context.lookupKeyword(e.stem);if(r)return{value:i,length:t,metadata:{normalized:r.normalized}}}}}}let a="",n=t;for(;e.length>n&&wn(e[n])&&(0>=a.length||/^\p{Lu}/u.test(a)||!bn(e,n));)a+=e[n],n++;if(!a)return null;if(fn.has(a.toLowerCase()))return{value:a,length:n-r,metadata:{suffixValue:a.toLowerCase()}};if(hn.has(a.toLowerCase()))return{value:a,length:n-r,metadata:{postpositionValue:a.toLowerCase()}};const o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;let l;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(a);if(e.stem!==a&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized)}}return{value:a,length:n-r,metadata:{normalized:s||l}}}}}});var Cn,Pn,_n,Wn,An,qn=b({"src/tokenizers/extractors/hebrew-keyword.ts"(){zi(),Tn=v([[1424,1535],[64285,64335]]),Sn=new Set(["\u05e2\u05dc","\u05d0\u05ea","\u05d0\u05dc","\u05de\u05df","\u05e2\u05dd","\u05d1\u05ea\u05d5\u05da","\u05de\u05ea\u05d5\u05da","\u05dc\u05d9\u05d3","\u05d0\u05d7\u05e8\u05d9","\u05dc\u05e4\u05e0\u05d9","\u05d1\u05d9\u05df","\u05e2\u05d3","\u05e9\u05dc"]),jn=new Set(["\u05d5"]),En=class{constructor(){this.name="hebrew-keyword"}setContext(e){this.context=e}canExtract(e,t){return Tn(e[t])}extract(e,t){if(!this.context)throw Error("HebrewKeywordExtractor: context not set");const r=t;this.context.isKeywordStart(e,t);let i="",a=t;for(;e.length>a&&Tn(e[a]);)i+=e[a],a++;if(!i)return null;const n=this.context.lookupKeyword(i),o=n&&n.normalized!==n.native?n.normalized:void 0;if(Sn.has(i))return{value:i,length:a-r,metadata:{prepositionValue:i,normalized:o}};if(jn.has(i))return{value:i,length:a-r,metadata:{conjunctionValue:i,normalized:o}};let s;if(!n&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(s=t.normalized)}}return{value:i,length:a-r,metadata:{normalized:o||s}}}}}});var Mn,On=b({"src/tokenizers/extractors/hebrew-proclitic.ts"(){zi(),Cn=v([[1424,1535],[64285,64335]]),Pn=new Map([["\u05d1","on"],["\u05dc","to"],["\u05de","from"],["\u05db","as"],["\u05d4","the"],["\u05d5","and"],["\u05e9","that"]]),_n=new Set(["\u05d1","\u05db"]),Wn=new Set(["\u05dc\u05d7\u05d9\u05e6\u05d4","\u05e7\u05dc\u05d9\u05e7","\u05e9\u05dc\u05d9\u05d7\u05d4","\u05d4\u05d2\u05e9\u05d4","\u05e8\u05d9\u05d7\u05d5\u05e3","\u05de\u05e2\u05d1\u05e8","\u05e9\u05d9\u05e0\u05d5\u05d9","\u05e2\u05d3\u05db\u05d5\u05df","\u05e7\u05dc\u05d8","\u05d4\u05d6\u05e0\u05d4","\u05de\u05d9\u05e7\u05d5\u05d3","\u05d8\u05e9\u05d8\u05d5\u05e9","\u05d8\u05e2\u05d9\u05e0\u05d4","\u05d2\u05dc\u05d9\u05dc\u05d4"]),An=class{constructor(){this.name="hebrew-proclitic"}setContext(e){this.context=e}canExtract(e,t){return Pn.has(e[t])&&e.length>t+1&&Cn(e[t+1])}extract(e,t){if(!this.context)throw Error("HebrewProcliticExtractor: context not set");const r=e[t],i=Pn.get(r);if(!i)return null;let a=t;for(;e.length>a&&Cn(e[a]);)a++;const n=e.slice(t,a),o=this.context?.lookupKeyword(n);if(o)return null;if(e.length>t+1&&Pn.has(e[t+1])){const r=e.slice(t+1,a),i=this.context?.lookupKeyword(r),n=Wn.has(r);if(!i&&!n&&r.length<3)return null}const s=e.slice(t+1,a),l=this.context?.lookupKeyword(s),p=_n.has(r),m=Wn.has(s);if(p&&m)return{value:r,length:1,metadata:{normalized:i,procliticType:i,isEventMarker:!0}};if(1===s.length&&Pn.has(s))return null;if(!l&&!m&&2>s.length)return null;return{value:r,length:1,metadata:{normalized:i,procliticType:i,isEventMarker:p&&l}}}}}});function Rn(e){const t=e.charCodeAt(0);return t>=48&&57>=t||t>=65&&90>=t||t>=97&&122>=t||95===t||36===t}var Nn=b({"src/tokenizers/extractors/ascii-identifier.ts"(){Mn=class{constructor(){this.name="ascii-identifier"}setContext(e){this.context=e}canExtract(e,t){return function(e){const t=e.charCodeAt(0);return t>=65&&90>=t||t>=97&&122>=t||95===t||36===t}(e[t])}extract(e,t){if(!this.context)throw Error("AsciiIdentifierExtractor: context not set");const r=t;let i="",a=t;for(;e.length>a&&Rn(e[a]);)i+=e[a],a++;if(!i)return null;const n=this.context.lookupKeyword(i);return{value:i,length:a-r,metadata:{normalized:n&&n.normalized!==n.native?n.normalized:void 0}}}}}}),$n=b({"src/tokenizers/extractors/index.ts"(){Ci(),Pi(),qi(),Mi()}});function In(){return[new Li,new ji,new Wi,new bi]}var Kn,Vn=b({"src/tokenizers/extractor-helpers.ts"(){$n()}});function Bn(e){return/[a-zA-Z0-9_]/.test(e)}var Dn,Fn,Hn,Un=b({"src/tokenizers/extractors/english-keyword.ts"(){Kn=class{constructor(){this.name="english-keyword"}setContext(e){this.context=e}canExtract(e,t){return/[a-zA-Z_]/.test(e[t])}extract(e,t){if(!this.context)throw Error("EnglishKeywordExtractor: context not set");let r=t,i="";for(;e.length>r&&Bn(e[r]);)i+=e[r++];if(!i)return null;if(e.length>r&&":"===e[r]){const t=r;r++;let a="";for(;e.length>r&&Bn(e[r]);)a+=e[r++];a?i=i+":"+a:r=t}const a=this.context.lookupKeyword(i),n=a&&a.normalized!==a.native?a.normalized:void 0;let o=null;return this.context.isKeyword(i)||(o=this.tryClassSyntaxConversion(e,r,i)),{value:o||i,length:r-t,metadata:{normalized:n,classConversion:!!o||void 0}}}tryClassSyntaxConversion(e,t,r){let i=t;for(;e.length>i&&/\s/.test(e[i]);)i++;if("class"===e.slice(i,i+5).toLowerCase()){const t=i+5;if(t>=e.length||!Bn(e[t]))return"."+r}return null}}}}),Gn={};x(Gn,{EnglishTokenizer:()=>Fn,englishTokenizer:()=>Hn});var Zn,Yn,Xn,Qn=b({"src/tokenizers/english.ts"(){zi(),Zt(),xi(),Vn(),Un(),Dn=[{native:"true",normalized:"true"},{native:"false",normalized:"false"},{native:"null",normalized:"null"},{native:"undefined",normalized:"undefined"},{native:"first",normalized:"first"},{native:"last",normalized:"last"},{native:"next",normalized:"next"},{native:"previous",normalized:"previous"},{native:"closest",normalized:"closest"},{native:"click",normalized:"click"},{native:"dblclick",normalized:"dblclick"},{native:"mousedown",normalized:"mousedown"},{native:"mouseup",normalized:"mouseup"},{native:"mouseover",normalized:"mouseover"},{native:"mouseout",normalized:"mouseout"},{native:"mouseenter",normalized:"mouseenter"},{native:"mouseleave",normalized:"mouseleave"},{native:"mousemove",normalized:"mousemove"},{native:"keydown",normalized:"keydown"},{native:"keyup",normalized:"keyup"},{native:"keypress",normalized:"keypress"},{native:"input",normalized:"input"},{native:"change",normalized:"change"},{native:"submit",normalized:"submit"},{native:"reset",normalized:"reset"},{native:"load",normalized:"load"},{native:"unload",normalized:"unload"},{native:"scroll",normalized:"scroll"},{native:"resize",normalized:"resize"},{native:"dragstart",normalized:"dragstart"},{native:"drag",normalized:"drag"},{native:"dragend",normalized:"dragend"},{native:"dragenter",normalized:"dragenter"},{native:"dragleave",normalized:"dragleave"},{native:"dragover",normalized:"dragover"},{native:"drop",normalized:"drop"},{native:"touchstart",normalized:"touchstart"},{native:"touchmove",normalized:"touchmove"},{native:"touchend",normalized:"touchend"},{native:"touchcancel",normalized:"touchcancel"},{native:"in",normalized:"in"},{native:"to",normalized:"to"},{native:"at",normalized:"at"},{native:"by",normalized:"by"},{native:"with",normalized:"with"},{native:"without",normalized:"without"},{native:"of",normalized:"of"},{native:"as",normalized:"as"},{native:"every",normalized:"every"},{native:"upon",normalized:"upon"},{native:"unless",normalized:"unless"},{native:"forever",normalized:"forever"},{native:"times",normalized:"times"},{native:"and",normalized:"and"},{native:"or",normalized:"or"},{native:"not",normalized:"not"},{native:"is",normalized:"is"},{native:"exists",normalized:"exists"},{native:"empty",normalized:"empty"},{native:"my",normalized:"my"},{native:"your",normalized:"your"},{native:"its",normalized:"its"},{native:"the",normalized:"the"},{native:"a",normalized:"a"},{native:"an",normalized:"an"},{native:"delete",normalized:"delete"},{native:"innerHTML",normalized:"innerHTML"},{native:"outerHTML",normalized:"outerHTML"},{native:"beforebegin",normalized:"beforebegin"},{native:"afterend",normalized:"afterend"},{native:"beforeend",normalized:"beforeend"},{native:"afterbegin",normalized:"afterbegin"},{native:"flip",normalized:"toggle"},{native:"switch",normalized:"toggle"},{native:"increase",normalized:"increment"},{native:"decrease",normalized:"decrement"},{native:"display",normalized:"show"},{native:"reveal",normalized:"show"},{native:"conceal",normalized:"hide"},{native:"colour",normalized:"color"},{native:"grey",normalized:"gray"},{native:"centre",normalized:"center"},{native:"behaviour",normalized:"behavior"},{native:"initialise",normalized:"initialize"},{native:"favourite",normalized:"favorite"}],Hn=new(Fn=class extends p{constructor(){super(),this.language="en",this.direction="ltr",this.initializeKeywordsFromProfile(Ft,Dn),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new Kn]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}})}}),Jn=b({"src/tokenizers/morphology/types.ts"(){}});function eo(e){const t=e.charCodeAt(0);return t>=12352&&12447>=t}function to(e){const t=e.charCodeAt(0);return t>=12448&&12543>=t}function ro(e){const t=e.charCodeAt(0);return t>=19968&&40959>=t||t>=13312&&19903>=t}var io,ao,no,oo,so=b({"src/tokenizers/morphology/japanese-normalizer.ts"(){Jn(),Zn=[{pattern:"\u3057\u305f\u3089",confidence:.88,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u3059\u308b\u3068",confidence:.88,conjugationType:"conditional-to",minStemLength:2},{pattern:"\u3059\u308c\u3070",confidence:.85,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u305f\u3089",confidence:.85,conjugationType:"conditional-tara",minStemLength:2},{pattern:"\u308c\u3070",confidence:.82,conjugationType:"conditional-ba",minStemLength:2},{pattern:"\u3066\u3044\u307e\u3057\u305f",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3066\u3044\u307e\u3059",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304f\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3067\u304f\u3060\u3055\u3044",confidence:.85,conjugationType:"request",minStemLength:2},{pattern:"\u3066\u3044\u308b",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304a\u304f",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u307f\u308b",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u3042\u308b",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u3066\u304f\u308c",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3067\u304f\u308c",confidence:.8,conjugationType:"casual-request",minStemLength:2},{pattern:"\u3061\u3083\u3063\u305f",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3058\u3083\u3063\u305f",confidence:.82,conjugationType:"contracted-past",minStemLength:2},{pattern:"\u3061\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u3058\u3083\u3046",confidence:.82,conjugationType:"contracted",minStemLength:2},{pattern:"\u307e\u3057\u305f",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u307e\u305b\u3093",confidence:.85,conjugationType:"negative",minStemLength:2},{pattern:"\u307e\u3059",confidence:.85,conjugationType:"polite",minStemLength:2},{pattern:"\u3066",confidence:.85,conjugationType:"te-form",minStemLength:2},{pattern:"\u305f",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"\u306a\u3044",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"\u306a\u304b\u3063\u305f",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\u3089\u308c\u308b",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"\u308c\u308b",confidence:.78,conjugationType:"potential",minStemLength:2},{pattern:"\u3089\u308c\u305f",confidence:.8,conjugationType:"passive",minStemLength:2},{pattern:"\u3055\u305b\u308b",confidence:.8,conjugationType:"causative",minStemLength:2},{pattern:"\u305b\u308b",confidence:.78,conjugationType:"causative",minStemLength:2},{pattern:"\u3088\u3046",confidence:.8,conjugationType:"volitional",minStemLength:2},{pattern:"\u308b",confidence:.75,conjugationType:"dictionary",minStemLength:3}],Yn=[{pattern:"\u3057\u305f\u3089",confidence:.88,conjugationType:"conditional-tara"},{pattern:"\u3059\u308b\u3068",confidence:.88,conjugationType:"conditional-to"},{pattern:"\u3059\u308c\u3070",confidence:.85,conjugationType:"conditional-ba"},{pattern:"\u3057\u3066\u3044\u307e\u3059",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u3066\u3044\u308b",confidence:.85,conjugationType:"progressive"},{pattern:"\u3057\u307e\u3057\u305f",confidence:.85,conjugationType:"past"},{pattern:"\u3057\u307e\u3059",confidence:.85,conjugationType:"polite"},{pattern:"\u3057\u306a\u3044",confidence:.82,conjugationType:"negative"},{pattern:"\u3057\u3066",confidence:.85,conjugationType:"te-form"},{pattern:"\u3057\u305f",confidence:.85,conjugationType:"past"},{pattern:"\u3059\u308b",confidence:.88,conjugationType:"dictionary"}],new(Xn=class{constructor(){this.language="ja"}isNormalizable(e){if(!function(e){for(const t of e)if(eo(t)||to(t)||ro(t))return!0;return!1}(e))return!1;if(2>e.length)return!1;return eo(e[e.length-1])}normalize(e){const t=this.normalizeCompound(e);if(t)return t;const r=this.trySuruNormalization(e);if(r)return r;for(const t of Zn)if(e.endsWith(t.pattern)){const r=e.slice(0,-t.pattern.length);if((t.minStemLength??2)>r.length)continue;const i={removedSuffixes:[t.pattern]};return t.conjugationType&&(i.conjugationType=t.conjugationType),u(r,t.confidence,i)}return y(e)}trySuruNormalization(e){for(const t of Yn)if(e.endsWith(t.pattern)){const r=e.slice(0,-t.pattern.length);if(1>r.length)continue;return u(r,t.confidence,{removedSuffixes:[t.pattern],conjugationType:t.conjugationType,originalForm:"suru-verb"})}return null}normalizeCompound(e){const t=[{pattern:"\u3066\u3044\u306a\u304b\u3063\u305f",suffixes:["\u3066","\u3044","\u306a\u304b\u3063\u305f"],confidence:.8,minStemLength:2},{pattern:"\u3067\u3044\u306a\u304b\u3063\u305f",suffixes:["\u3067","\u3044","\u306a\u304b\u3063\u305f"],confidence:.8,minStemLength:2},{pattern:"\u3066\u3044\u306a\u3044",suffixes:["\u3066","\u3044","\u306a\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3067\u3044\u306a\u3044",suffixes:["\u3067","\u3044","\u306a\u3044"],confidence:.82,minStemLength:2},{pattern:"\u3066\u3044\u305f",suffixes:["\u3066","\u3044","\u305f"],confidence:.85,minStemLength:2},{pattern:"\u3067\u3044\u305f",suffixes:["\u3067","\u3044","\u305f"],confidence:.85,minStemLength:2}];for(const{pattern:r,suffixes:i,confidence:a,minStemLength:n}of t)if(e.endsWith(r)){const t=e.slice(0,-r.length);if(n>t.length)continue;return u(t,a,{removedSuffixes:i,conjugationType:"compound"})}return null}})}}),lo={};x(lo,{JapaneseTokenizer:()=>no,japaneseTokenizer:()=>oo});var po,mo,co,uo=b({"src/tokenizers/japanese.ts"(){zi(),so(),fr(),xi(),Vn(),Vi(),Bi(),Nn(),io=new Set(["\u3092","\u306b","\u3067","\u304b\u3089","\u307e\u3067","\u3078","\u3068","\u306e","\u304c","\u306f","\u3082","\u3088\u308a"]),ao=[{native:"\u3067\u306f\u306a\u3044",normalized:"not"},{native:"\u771f",normalized:"true"},{native:"\u507d",normalized:"false"},{native:"\u30cc\u30eb",normalized:"null"},{native:"\u672a\u5b9a\u7fa9",normalized:"undefined"},{native:"\u6700\u521d",normalized:"first"},{native:"\u6700\u5f8c",normalized:"last"},{native:"\u6b21",normalized:"next"},{native:"\u524d",normalized:"previous"},{native:"\u6700\u3082\u8fd1\u3044",normalized:"closest"},{native:"\u89aa",normalized:"parent"},{native:"\u306e\u4e2d",normalized:"in"},{native:"\u30af\u30ea\u30c3\u30af",normalized:"click"},{native:"\u5909\u66f4",normalized:"change"},{native:"\u9001\u4fe1",normalized:"submit"},{native:"\u5165\u529b",normalized:"input"},{native:"\u30ed\u30fc\u30c9",normalized:"load"},{native:"\u8aad\u307f\u8fbc\u307f",normalized:"load"},{native:"\u30b9\u30af\u30ed\u30fc\u30eb",normalized:"scroll"},{native:"\u30ad\u30fc\u30c0\u30a6\u30f3",normalized:"keydown"},{native:"\u30ad\u30fc\u30a2\u30c3\u30d7",normalized:"keyup"},{native:"\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc",normalized:"mouseover"},{native:"\u30de\u30a6\u30b9\u30a2\u30a6\u30c8",normalized:"mouseout"},{native:"\u30de\u30a6\u30b9\u62bc\u4e0b",normalized:"mousedown"},{native:"\u30de\u30a6\u30b9\u89e3\u653e",normalized:"mouseup"},{native:"\u307e\u305f\u306f",normalized:"or"},{native:"\u79c1",normalized:"me"},{native:"\u5bfe\u8c61",normalized:"target"},{native:"\u3057\u305f\u3089",normalized:"on"},{native:"\u3059\u308b\u3068",normalized:"on"},{native:"\u6642\u306b",normalized:"on"},{native:"\u79d2",normalized:"s"},{native:"\u30df\u30ea\u79d2",normalized:"ms"},{native:"\u5206",normalized:"m"},{native:"\u6642\u9593",normalized:"h"},{native:"\u542b\u3080",normalized:"inclusive"},{native:"\u9664\u304f",normalized:"exclusive"},{native:"\u6587\u5b57",normalized:"characters"},{native:"\u30e9\u30f3\u30c0\u30e0",normalized:"random"}],oo=new(no=class extends p{constructor(){super(),this.language="ja",this.direction="ltr",this.initializeKeywordsFromProfile(dr,ao),this.normalizer=new Xn,this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractor(new Mn),this.registerExtractor(new $i),this.registerExtractor(new Ai),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return io.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||e.startsWith("\u300c")||/^\d/.test(e)?"literal":"identifier"}})}});function yo(e){const t=e.charCodeAt(0);return t>=44032&&55203>=t}var vo,fo,ho,go,ko=b({"src/tokenizers/morphology/korean-normalizer.ts"(){Jn(),po=[{pattern:"\ud558\uc2dc\ub2c8\uae4c",confidence:.85,conjugationType:"honorific-causal",minStemLength:1},{pattern:"\ud558\uc2e4\ub54c",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\ud558\uc2e4 \ub54c",confidence:.88,conjugationType:"honorific-temporal",minStemLength:1},{pattern:"\ud558\uc2dc\uba74",confidence:.88,conjugationType:"honorific-conditional",minStemLength:1},{pattern:"\uc73c\uc2dc\uba74",confidence:.85,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\uc2dc\uba74",confidence:.82,conjugationType:"honorific-conditional",minStemLength:2},{pattern:"\ud558\uace0\ub098\uc11c",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\ud558\uace0 \ub098\uc11c",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\ud558\uace0\uc11c",confidence:.85,conjugationType:"sequential-after",minStemLength:1},{pattern:"\uace0\ub098\uc11c",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uace0 \ub098\uc11c",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\uace0\uc11c",confidence:.82,conjugationType:"sequential-after",minStemLength:2},{pattern:"\ud558\uae30\uc804\uc5d0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\ud558\uae30 \uc804\uc5d0",confidence:.85,conjugationType:"sequential-before",minStemLength:1},{pattern:"\uae30\uc804\uc5d0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\uae30 \uc804\uc5d0",confidence:.82,conjugationType:"sequential-before",minStemLength:2},{pattern:"\ud558\uc790\ub9c8\uc790",confidence:.88,conjugationType:"immediate",minStemLength:1},{pattern:"\uc790\ub9c8\uc790",confidence:.85,conjugationType:"immediate",minStemLength:2},{pattern:"\ud574\uc57c\ud574\uc694",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\ud574\uc57c\ud574",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\ud574\uc57c\ud558\ub2e4",confidence:.85,conjugationType:"obligation",minStemLength:1},{pattern:"\uc5b4\uc57c\ud574\uc694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uc5b4\uc57c\ud574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uc544\uc57c\ud574\uc694",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\uc544\uc57c\ud574",confidence:.82,conjugationType:"obligation",minStemLength:2},{pattern:"\ud558\ub2c8\uae4c",confidence:.85,conjugationType:"causal-nikka",minStemLength:1},{pattern:"\ud560\ub54c",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\ud560 \ub54c",confidence:.88,conjugationType:"temporal-ttae",minStemLength:1},{pattern:"\uc744\ub54c",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\uc744 \ub54c",confidence:.85,conjugationType:"temporal-ttae",minStemLength:2},{pattern:"\ud558\uba74",confidence:.88,conjugationType:"conditional-myeon",minStemLength:1},{pattern:"\uc73c\uba74",confidence:.85,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\ub2c8\uae4c",confidence:.82,conjugationType:"causal-nikka",minStemLength:2},{pattern:"\uba74",confidence:.8,conjugationType:"conditional-myeon",minStemLength:2},{pattern:"\ud558\uc600\uc2b5\ub2c8\ub2e4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\ud588\uc2b5\ub2c8\ub2e4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\ud569\ub2c8\ub2e4",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uc2b5\ub2c8\ub2e4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\ub429\ub2c8\ub2e4",confidence:.82,conjugationType:"polite",minStemLength:1},{pattern:"\u3142\ub2c8\ub2e4",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\ud558\uc138\uc694",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\ud558\uc2ed\uc2dc\uc624",confidence:.85,conjugationType:"honorific",minStemLength:1},{pattern:"\uc138\uc694",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\uc2ed\uc2dc\uc624",confidence:.82,conjugationType:"honorific",minStemLength:2},{pattern:"\ud558\uace0\uc788\uc5b4\uc694",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\ud558\uace0\uc788\uc5b4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\ud588\uc5b4\uc694",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\ud574\uc694",confidence:.85,conjugationType:"polite",minStemLength:1},{pattern:"\uc5b4\uc694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\uc544\uc694",confidence:.82,conjugationType:"polite",minStemLength:2},{pattern:"\ud588\uc5b4",confidence:.85,conjugationType:"past",minStemLength:1},{pattern:"\ud574",confidence:.8,conjugationType:"present",minStemLength:1},{pattern:"\uc5c8\uc5b4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\uc558\uc5b4",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"\ud558\uace0\uc788\ub2e4",confidence:.82,conjugationType:"progressive",minStemLength:1},{pattern:"\uace0\uc788\ub2e4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\uace0\uc788\uc5b4",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\ud558\ub2e4",confidence:.88,conjugationType:"dictionary",minStemLength:1},{pattern:"\ud558\uc9c0\uc54a\ub2e4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uc548\ud558\ub2e4",confidence:.82,conjugationType:"negative",minStemLength:1},{pattern:"\uc9c0\uc54a\ub2e4",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"\ud574\ub77c",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\ud558\ub77c",confidence:.82,conjugationType:"imperative",minStemLength:1},{pattern:"\ub2e4",confidence:.75,conjugationType:"dictionary",minStemLength:2}],mo=[{pattern:"\ud558\uc2dc\ub2c8\uae4c",confidence:.88,conjugationType:"honorific-causal"},{pattern:"\ud558\uc2e4\ub54c",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\ud558\uc2e4 \ub54c",confidence:.88,conjugationType:"honorific-temporal"},{pattern:"\ud558\uc2dc\uba74",confidence:.88,conjugationType:"honorific-conditional"},{pattern:"\ud558\uc168\uc5b4\uc694",confidence:.85,conjugationType:"honorific-past"},{pattern:"\ud558\uc168\uc5b4",confidence:.85,conjugationType:"honorific-past"},{pattern:"\ud558\uc2ed\ub2c8\ub2e4",confidence:.85,conjugationType:"honorific-polite"},{pattern:"\ud558\uace0\ub098\uc11c",confidence:.88,conjugationType:"sequential-after"},{pattern:"\ud558\uace0 \ub098\uc11c",confidence:.88,conjugationType:"sequential-after"},{pattern:"\ud558\uace0\uc11c",confidence:.88,conjugationType:"sequential-after"},{pattern:"\ud558\uae30\uc804\uc5d0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\ud558\uae30 \uc804\uc5d0",confidence:.88,conjugationType:"sequential-before"},{pattern:"\ud558\uc790\ub9c8\uc790",confidence:.88,conjugationType:"immediate"},{pattern:"\ud574\uc57c\ud574\uc694",confidence:.88,conjugationType:"obligation"},{pattern:"\ud574\uc57c\ud574",confidence:.88,conjugationType:"obligation"},{pattern:"\ud574\uc57c\ud558\ub2e4",confidence:.88,conjugationType:"obligation"},{pattern:"\ud558\ub2c8\uae4c",confidence:.88,conjugationType:"causal-nikka"},{pattern:"\ud560\ub54c",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\ud560 \ub54c",confidence:.88,conjugationType:"temporal-ttae"},{pattern:"\ud558\uba74",confidence:.88,conjugationType:"conditional-myeon"},{pattern:"\ud558\uc600\uc2b5\ub2c8\ub2e4",confidence:.85,conjugationType:"past"},{pattern:"\ud588\uc2b5\ub2c8\ub2e4",confidence:.85,conjugationType:"past"},{pattern:"\ud569\ub2c8\ub2e4",confidence:.85,conjugationType:"polite"},{pattern:"\ud558\uc2ed\uc2dc\uc624",confidence:.85,conjugationType:"honorific"},{pattern:"\ud558\uc138\uc694",confidence:.85,conjugationType:"honorific"},{pattern:"\ud588\uc5b4\uc694",confidence:.85,conjugationType:"past"},{pattern:"\ud574\uc694",confidence:.85,conjugationType:"polite"},{pattern:"\ud588\uc5b4",confidence:.85,conjugationType:"past"},{pattern:"\ud574",confidence:.8,conjugationType:"present"},{pattern:"\ud558\uace0\uc788\uc5b4\uc694",confidence:.82,conjugationType:"progressive"},{pattern:"\ud558\uace0\uc788\uc5b4",confidence:.82,conjugationType:"progressive"},{pattern:"\ud558\uace0\uc788\ub2e4",confidence:.82,conjugationType:"progressive"},{pattern:"\ud574\uc11c",confidence:.82,conjugationType:"connective"},{pattern:"\ud558\uace0",confidence:.8,conjugationType:"connective"},{pattern:"\ud558\uc9c0\uc54a\uc544\uc694",confidence:.82,conjugationType:"negative"},{pattern:"\ud558\uc9c0\uc54a\ub2e4",confidence:.82,conjugationType:"negative"},{pattern:"\uc548\ud574\uc694",confidence:.82,conjugationType:"negative"},{pattern:"\uc548\ud574",confidence:.82,conjugationType:"negative"},{pattern:"\ud574\ub77c",confidence:.82,conjugationType:"imperative"},{pattern:"\ud558\ub77c",confidence:.82,conjugationType:"imperative"},{pattern:"\ud558\ub2e4",confidence:.88,conjugationType:"dictionary"}],new(co=class{constructor(){this.language="ko"}isNormalizable(e){return!!function(e){for(const t of e)if(yo(t))return!0;return!1}(e)&&2<=e.length}normalize(e){const t=this.normalizeCompound(e);if(t)return t;const r=this.tryHadaNormalization(e);if(r)return r;for(const t of po)if(e.endsWith(t.pattern)){const r=e.slice(0,-t.pattern.length);if((t.minStemLength??2)>r.length)continue;const i={removedSuffixes:[t.pattern]};return t.conjugationType&&(i.conjugationType=t.conjugationType),u(r,t.confidence,i)}return y(e)}tryHadaNormalization(e){for(const t of mo)if(e.endsWith(t.pattern)){const r=e.slice(0,-t.pattern.length);if(1>r.length)continue;return u(r,t.confidence,{removedSuffixes:[t.pattern],conjugationType:t.conjugationType,originalForm:"hada-verb"})}return null}normalizeCompound(e){const t=[{pattern:"\ud558\uace0\ub098\uc11c\uc600\uc5b4",suffixes:["\ud558\uace0\ub098\uc11c","\uc600\uc5b4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\ud558\uace0\ub098\uc11c\uc600\ub2e4",suffixes:["\ud558\uace0\ub098\uc11c","\uc600\ub2e4"],confidence:.78,conjugationType:"sequential-after",minStemLength:2},{pattern:"\ud558\uace0\ub098\uc11c",suffixes:["\ud558\uace0","\ub098\uc11c"],confidence:.85,conjugationType:"sequential-after",minStemLength:2},{pattern:"\ud574\uc57c\ud588\uc5b4",suffixes:["\ud574\uc57c","\ud588\uc5b4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\ud574\uc57c\ud588\ub2e4",suffixes:["\ud574\uc57c","\ud588\ub2e4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\ud574\uc57c\ud588\uc2b5\ub2c8\ub2e4",suffixes:["\ud574\uc57c","\ud588\uc2b5\ub2c8\ub2e4"],confidence:.8,conjugationType:"obligation",minStemLength:2},{pattern:"\ud558\uc2dc\uba74\uc11c",suffixes:["\ud558\uc2dc","\uba74\uc11c"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\ud558\uc2dc\uba70",suffixes:["\ud558\uc2dc","\uba70"],confidence:.82,conjugationType:"connective",minStemLength:2},{pattern:"\ud558\uace0\uc788\uc5c8\uc5b4",suffixes:["\ud558\uace0","\uc788\uc5c8\uc5b4"],confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"\ud558\uace0\uc788\uc5c8\ub2e4",suffixes:["\ud558\uace0","\uc788\uc5c8\ub2e4"],confidence:.8,conjugationType:"progressive",minStemLength:2}];for(const{pattern:r,suffixes:i,confidence:a,conjugationType:n,minStemLength:o}of t)if(e.endsWith(r)){const t=e.slice(0,-r.length);if(o>t.length)continue;return u(t,a,{removedSuffixes:i,conjugationType:n})}return null}})}}),zo={};x(zo,{KoreanTokenizer:()=>ho,koreanTokenizer:()=>go});var wo,bo,xo,To,So,jo=b({"src/tokenizers/korean.ts"(){zi(),ko(),kr(),xi(),Vn(),Gi(),Xi(),Nn(),vo=new Set(["\uc774","\uac00","\uc744","\ub97c","\uc740","\ub294","\uc5d0","\uc5d0\uc11c","\ub85c","\uc73c\ub85c","\uc640","\uacfc","\uc758","\ub3c4","\ub9cc","\ubd80\ud130","\uae4c\uc9c0","\ucc98\ub7fc","\ubcf4\ub2e4"]),fo=[{native:"\ucc38",normalized:"true"},{native:"\uac70\uc9d3",normalized:"false"},{native:"\ub110",normalized:"null"},{native:"\ubbf8\uc815\uc758",normalized:"undefined"},{native:"\uc815\uc758\uc548\ub428",normalized:"undefined"},{native:"\uccab\ubc88\uc9f8",normalized:"first"},{native:"\ub9c8\uc9c0\ub9c9",normalized:"last"},{native:"\ub2e4\uc74c",normalized:"next"},{native:"\uc774\uc804",normalized:"previous"},{native:"\uac00\uc7a5\uac00\uae4c\uc6b4",normalized:"closest"},{native:"\ubd80\ubaa8",normalized:"parent"},{native:"\uc548\uc5d0",normalized:"in"},{native:"\ud074\ub9ad",normalized:"click"},{native:"\ub354\ube14\ud074\ub9ad",normalized:"dblclick"},{native:"\ubcc0\uacbd",normalized:"change"},{native:"\uc81c\ucd9c",normalized:"submit"},{native:"\uc785\ub825",normalized:"input"},{native:"\ub85c\ub4dc",normalized:"load"},{native:"\uc2a4\ud06c\ub864",normalized:"scroll"},{native:"\ud0a4\ub2e4\uc6b4",normalized:"keydown"},{native:"\ud0a4\uc5c5",normalized:"keyup"},{native:"\ub9c8\uc6b0\uc2a4\uc624\ubc84",normalized:"mouseover"},{native:"\ub9c8\uc6b0\uc2a4\uc544\uc6c3",normalized:"mouseout"},{native:"\ub9c8\uc6b0\uc2a4\ub2e4\uc6b4",normalized:"mousedown"},{native:"\ub9c8\uc6b0\uc2a4\uc5c5",normalized:"mouseup"},{native:"\ub0b4",normalized:"my"},{native:"\uadf8\uac83\uc758",normalized:"its"},{native:"\uadf8\ub2e4\uc74c",normalized:"then"},{native:"\uadf8\ub7f0\ud6c4",normalized:"then"},{native:"\uadf8\ub7ec\uba74",normalized:"then"},{native:"\uadf8\ub9ac\uace0",normalized:"and"},{native:"\ub610\ub294",normalized:"or"},{native:"\uc544\ub2c8",normalized:"not"},{native:"\uc774\ub2e4",normalized:"is"},{native:"\ucd08",normalized:"s"},{native:"\ubc00\ub9ac\ucd08",normalized:"ms"},{native:"\ubd84",normalized:"m"},{native:"\uc2dc\uac04",normalized:"h"},{native:"\ud3ec\ud568",normalized:"inclusive"},{native:"\uc81c\uc678",normalized:"exclusive"},{native:"\ubb38\uc790",normalized:"characters"},{native:"\ubb34\uc791\uc704",normalized:"random"}],go=new(ho=class extends p{constructor(){super(),this.language="ko",this.direction="ltr",this.initializeKeywordsFromProfile(vr,fo),this.normalizer=new co,this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractor(new Mn),this.registerExtractor(new Ui),this.registerExtractor(new Ki),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return vo.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}})}});function Eo(e){const t=e.charCodeAt(0);return t>=1536&&1791>=t||t>=1872&&1919>=t||t>=2208&&2303>=t||t>=64336&&65023>=t||t>=65136&&65279>=t}var Lo,Co,Po,_o,Wo,Ao=b({"src/tokenizers/morphology/arabic-normalizer.ts"(){Jn(),wo=[{pattern:"\u0648\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0641\u0627\u0644",confidencePenalty:.15,prefixType:"conjunction"},{pattern:"\u0628\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0643\u0627\u0644",confidencePenalty:.15,prefixType:"preposition"},{pattern:"\u0644\u0644",confidencePenalty:.12,prefixType:"preposition"}],bo=[{pattern:"\u0627\u0644",confidencePenalty:.08,prefixType:"article",minRemaining:2},{pattern:"\u0648",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0641",confidencePenalty:.08,prefixType:"conjunction",minRemaining:3},{pattern:"\u0628",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0644",confidencePenalty:.1,prefixType:"preposition",minRemaining:3},{pattern:"\u0643",confidencePenalty:.1,prefixType:"preposition",minRemaining:3}],xo=[{pattern:"\u064a",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u062a",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0646",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0623",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"\u0627",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3}],To=[{pattern:"\u0648\u0646",confidencePenalty:.1,type:"masculine-plural"},{pattern:"\u064a\u0646",confidencePenalty:.1,type:"masculine-plural-accusative"},{pattern:"\u0627\u062a",confidencePenalty:.1,type:"feminine-plural"},{pattern:"\u0627\u0646",confidencePenalty:.1,type:"dual-nominative"},{pattern:"\u064a\u0646",confidencePenalty:.1,type:"dual-accusative"},{pattern:"\u0647\u0627",confidencePenalty:.1,type:"pronoun-her"},{pattern:"\u0647\u0645",confidencePenalty:.1,type:"pronoun-them"},{pattern:"\u0647\u0646",confidencePenalty:.1,type:"pronoun-them-f"},{pattern:"\u0646\u0627",confidencePenalty:.1,type:"pronoun-us"},{pattern:"\u0643\u0645",confidencePenalty:.1,type:"pronoun-you-pl"},{pattern:"\u0643",confidencePenalty:.08,type:"pronoun-you"},{pattern:"\u0647",confidencePenalty:.08,type:"pronoun-him"},{pattern:"\u064a",confidencePenalty:.08,type:"pronoun-me"},{pattern:"\u0629",confidencePenalty:.08,type:"feminine"}],new(So=class{constructor(){this.language="ar"}isNormalizable(e){return!!function(e){for(const t of e)if(Eo(t))return!0;return!1}(e)&&2<=e.length}normalize(e){let t=function(e){return e.replace(/[\u064B-\u0652\u0670]/g,"")}(e),r=1;const i=[],a=[];for(const e of wo)if(t.startsWith(e.pattern)){const a=t.slice(e.pattern.length);if(a.length>=2){t=a,r-=e.confidencePenalty,i.push(e.pattern);break}}if(0===i.length)for(const e of bo)if(t.startsWith(e.pattern)){const a=t.slice(e.pattern.length);if(a.length>=(e.minRemaining??2)){t=a,r-=e.confidencePenalty,i.push(e.pattern);break}}if(!(t.endsWith("\u0627\u062a")||t.endsWith("\u0629")||t.endsWith("\u0648\u0646")||t.endsWith("\u064a\u0646")||t.endsWith("\u0647\u0627")||t.endsWith("\u0647\u0645")||t.endsWith("\u0647\u0646")||t.endsWith("\u0646\u0627")||t.endsWith("\u0643\u0645"))&&(0===i.length||"\u0648"===i[0]||"\u0641"===i[0]))for(const e of xo)if(t.startsWith(e.pattern)){const a=t.slice(e.pattern.length);if(a.length>=(e.minRemaining??3)){t=a,r-=e.confidencePenalty,i.push(e.pattern);break}}for(const e of To)if(t.endsWith(e.pattern)){const i=t.slice(0,-e.pattern.length);2>i.length||(t=i,r-=e.confidencePenalty,a.push(e.pattern))}return r=Math.max(.5,r),0===i.length&&0===a.length?y(e):u(t,r,{removedPrefixes:i,removedSuffixes:a})}})}}),qo={};x(qo,{ArabicTokenizer:()=>_o,arabicTokenizer:()=>Wo});var Mo,Oo,Ro,No,$o,Io=b({"src/tokenizers/arabic.ts"(){zi(),Ao(),It(),xi(),Vn(),ba(),Nn(),xa(),Ta(),Lo=new Set(["\u0648\u0644","\u0648\u0628","\u0648\u0643","\u0641\u0644","\u0641\u0628","\u0641\u0643"]),Co=new Set(["\u0641\u064a","\u0639\u0644\u0649","\u0645\u0646","\u0625\u0644\u0649","\u0627\u0644\u0649","\u0645\u0639","\u0639\u0646","\u0642\u0628\u0644","\u0628\u0639\u062f","\u0628\u064a\u0646","\u0628","\u0644","\u0643"]),Po=[{native:"\u0647\u062f\u0641",normalized:"target"},{native:"\u0646\u062a\u064a\u062c\u0629",normalized:"result"},{native:"\u0644\u064a\u0633",normalized:"not"},{native:"\u0644\u062f\u064a\u0647",normalized:"has"},{native:"\u0644\u062f\u064a",normalized:"have"},{native:"\u0635\u062d\u064a\u062d",normalized:"true"},{native:"\u062e\u0637\u0623",normalized:"false"},{native:"null",normalized:"null"},{native:"\u0641\u0627\u0631\u063a",normalized:"null"},{native:"\u063a\u064a\u0631 \u0645\u0639\u0631\u0641",normalized:"undefined"},{native:"\u0627\u0644\u0623\u0648\u0644",normalized:"first"},{native:"\u0623\u0648\u0644",normalized:"first"},{native:"\u0627\u0644\u0623\u062e\u064a\u0631",normalized:"last"},{native:"\u0622\u062e\u0631",normalized:"last"},{native:"\u0627\u0644\u062a\u0627\u0644\u064a",normalized:"next"},{native:"\u0627\u0644\u0633\u0627\u0628\u0642",normalized:"previous"},{native:"\u0627\u0644\u0623\u0642\u0631\u0628",normalized:"closest"},{native:"\u0627\u0644\u0623\u0628",normalized:"parent"},{native:"\u0627\u0644\u0646\u0642\u0631",normalized:"click"},{native:"\u0646\u0642\u0631",normalized:"click"},{native:"\u0627\u0644\u0625\u062f\u062e\u0627\u0644",normalized:"input"},{native:"\u0625\u062f\u062e\u0627\u0644",normalized:"input"},{native:"\u0627\u0644\u062a\u063a\u064a\u064a\u0631",normalized:"change"},{native:"\u062a\u063a\u064a\u064a\u0631",normalized:"change"},{native:"\u0627\u0644\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0625\u0631\u0633\u0627\u0644",normalized:"submit"},{native:"\u0627\u0644\u062a\u0631\u0643\u064a\u0632",normalized:"focus"},{native:"\u0641\u0642\u062f\u0627\u0646 \u0627\u0644\u062a\u0631\u0643\u064a\u0632",normalized:"blur"},{native:"\u0636\u063a\u0637",normalized:"keydown"},{native:"\u0631\u0641\u0639",normalized:"keyup"},{native:"\u062a\u0645\u0631\u064a\u0631 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseover"},{native:"\u0645\u063a\u0627\u062f\u0631\u0629 \u0627\u0644\u0641\u0623\u0631\u0629",normalized:"mouseout"},{native:"\u062a\u062d\u0645\u064a\u0644",normalized:"load"},{native:"\u062a\u0645\u0631\u064a\u0631",normalized:"scroll"},{native:"\u0641\u0623\u0631\u0629 \u0623\u0633\u0641\u0644",normalized:"mousedown"},{native:"\u0641\u0623\u0631\u0629 \u0623\u0639\u0644\u0649",normalized:"mouseup"},{native:"\u0641\u0623\u0631\u0629 \u062f\u062e\u0648\u0644",normalized:"mouseenter"},{native:"\u0641\u0623\u0631\u0629 \u062e\u0631\u0648\u062c",normalized:"mouseleave"},{native:"\u0641\u0623\u0631\u0629 \u0641\u0648\u0642",normalized:"mouseover"},{native:"\u0641\u0623\u0631\u0629 \u062e\u0627\u0631\u062c",normalized:"mouseout"},{native:"\u0641\u0623\u0631\u0629 \u062a\u062d\u0631\u0643",normalized:"mousemove"},{native:"\u0645\u0641\u062a\u0627\u062d \u0623\u0633\u0641\u0644",normalized:"keydown"},{native:"\u0645\u0641\u062a\u0627\u062d \u0623\u0639\u0644\u0649",normalized:"keyup"},{native:"\u0647\u064a",normalized:"it"},{native:"\u062b\u0627\u0646\u064a\u0629",normalized:"s"},{native:"\u062b\u0648\u0627\u0646\u064a",normalized:"s"},{native:"\u0645\u0644\u064a \u062b\u0627\u0646\u064a\u0629",normalized:"ms"},{native:"\u062f\u0642\u064a\u0642\u0629",normalized:"m"},{native:"\u062f\u0642\u0627\u0626\u0642",normalized:"m"},{native:"\u0633\u0627\u0639\u0629",normalized:"h"},{native:"\u0633\u0627\u0639\u0627\u062a",normalized:"h"},{native:"\u0639\u0646\u062f\u0645\u0627",normalized:"on"},{native:"\u062d\u064a\u0646\u0645\u0627",normalized:"on"},{native:"\u0639\u0646\u062f",normalized:"on"},{native:"\u062d\u064a\u0646",normalized:"on"},{native:"\u0644\u0645\u0651\u0627",normalized:"on"},{native:"\u0644\u0645\u0627",normalized:"on"},{native:"\u0644\u062f\u0649",normalized:"on"},{native:"\u0634\u0627\u0645\u0644",normalized:"inclusive"},{native:"\u062d\u0635\u0631\u064a",normalized:"exclusive"},{native:"\u062d\u0631\u0648\u0641",normalized:"characters"},{native:"\u0639\u0634\u0648\u0627\u0626\u064a",normalized:"random"}],Wo=new(_o=class extends p{constructor(){super(),this.language="ar",this.direction="rtl",this.initializeKeywordsFromProfile(Ot,Po),this.normalizer=new So,this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractor(new Mn),this.registerExtractor(new ha),this.registerExtractor(new ya),this.registerExtractor(new ma),this.registerExtractor(new vi),this.registerExtractor(new fi)}tokenizeWithExtractors(e){const r=[];let i=0;for(;e.length>i;){for(;e.length>i&&m(e[i]);)i++;if(i>=e.length)break;const t=this.tryMultiWordKeyword(e,i);if(t){r.push(t),i=t.position.end;continue}let a=!1;for(const t of this.extractors)if(t.canExtract(e,i)){const n=t.extract(e,i);if(n){const e=n.metadata?.normalized,t=n.metadata?.stem,o=n.metadata?.stemConfidence,s={};if(n.metadata)for(const[e,t]of Object.entries(n.metadata))"normalized"!==e&&"stem"!==e&&"stemConfidence"!==e&&(s[e]=t);let l;l="conjunction"===s.procliticType?"conjunction":"preposition"===s.procliticType?"particle":this.classifyToken(n.value);const p={};e&&(p.normalized=e),t&&(p.stem=t),void 0!==o&&(p.stemConfidence=o),Object.keys(s).length>0&&(p.metadata=s),r.push(c(n.value,l,d(i,i+n.length),Object.keys(p).length>0?p:void 0)),i+=n.length,a=!0;break}}if(!a){const t=e[i],a=this.classifyUnknownChar(t);r.push(c(t,a,d(i,i+1))),i++}}return new t(this.mergeColonQualifiedNames(r),this.language)}classifyToken(e){return Lo.has(e)?"conjunction":Co.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":"identifier"}})}});function Ko(e){return/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00fc\u00f1\u00c1\u00c9\u00cd\u00d3\u00da\u00dc\u00d1]/.test(e)}var Vo,Bo,Do,Fo,Ho=b({"src/tokenizers/morphology/spanish-normalizer.ts"(){Jn(),Mo=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"\u00e1is",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.82,type:"present"},{ending:"an",stem:"ar",confidence:.8,type:"present"},{ending:"\u00e9",stem:"ar",confidence:.85,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"\u00f3",stem:"ar",confidence:.82,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"asteis",stem:"ar",confidence:.88,type:"past"},{ending:"aron",stem:"ar",confidence:.88,type:"past"},{ending:"aba",stem:"ar",confidence:.88,type:"past"},{ending:"abas",stem:"ar",confidence:.88,type:"past"},{ending:"\u00e1bamos",stem:"ar",confidence:.88,type:"past"},{ending:"abamos",stem:"ar",confidence:.85,type:"past"},{ending:"abais",stem:"ar",confidence:.88,type:"past"},{ending:"aban",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"\u00e9is",stem:"ar",confidence:.85,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"en",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ad",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],Oo=[{ending:"iendo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"\u00e9is",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"en",stem:"er",confidence:.78,type:"present"},{ending:"\u00ed",stem:"er",confidence:.85,type:"past"},{ending:"iste",stem:"er",confidence:.88,type:"past"},{ending:"i\u00f3",stem:"er",confidence:.85,type:"past"},{ending:"io",stem:"er",confidence:.82,type:"past"},{ending:"imos",stem:"er",confidence:.85,type:"past"},{ending:"isteis",stem:"er",confidence:.88,type:"past"},{ending:"ieron",stem:"er",confidence:.88,type:"past"},{ending:"\u00eda",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"\u00edas",stem:"er",confidence:.88,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\u00edamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\u00edais",stem:"er",confidence:.88,type:"past"},{ending:"iais",stem:"er",confidence:.85,type:"past"},{ending:"\u00edan",stem:"er",confidence:.88,type:"past"},{ending:"ian",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],Ro=[{ending:"iendo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"\u00eds",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"en",stem:"ir",confidence:.78,type:"present"},{ending:"\u00ed",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"i\u00f3",stem:"ir",confidence:.85,type:"past"},{ending:"io",stem:"ir",confidence:.82,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"isteis",stem:"ir",confidence:.88,type:"past"},{ending:"ieron",stem:"ir",confidence:.88,type:"past"},{ending:"\u00eda",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"\u00edas",stem:"ir",confidence:.88,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\u00edamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\u00edais",stem:"ir",confidence:.88,type:"past"},{ending:"iais",stem:"ir",confidence:.85,type:"past"},{ending:"\u00edan",stem:"ir",confidence:.88,type:"past"},{ending:"ian",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],No=[...Mo,...Oo,...Ro].sort((e,t)=>t.ending.length-e.ending.length),new($o=class extends f{constructor(){super({language:"es",minWordLength:3,minStemLength:2,endings:No,reflexiveSuffixes:["se","me","te","nos","os"],infinitiveEndings:["ar","er","ir"]})}isNormalizable(e){if(3>e.length)return!1;const t=e.toLowerCase();if(t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir"))return!0;if(t.endsWith("ando")||t.endsWith("iendo"))return!0;if(t.endsWith("ado")||t.endsWith("ido"))return!0;if(t.endsWith("arse")||t.endsWith("erse")||t.endsWith("irse"))return!0;for(const t of e)if(Ko(t))return!0;return!1}})}});var Uo,Go,Zo,Yo,Xo=b({"src/tokenizers/extractors/spanish-keyword.ts"(){var e;zi(),({isLetter:Vo,isIdentifierChar:Bo}=(e=/[a-zA-Z\u00e1\u00e9\u00ed\u00f3\u00fa\u00fc\u00f1\u00c1\u00c9\u00cd\u00d3\u00da\u00dc\u00d1]/,{isLetter:t=>e.test(t),isIdentifierChar:t=>/[0-9]/.test(t)||e.test(t)})),Do=new Set(["en","a","de","desde","hasta","con","sin","por","para","sobre","entre","antes","despu\u00e9s","despues","dentro","fuera","al","del"]),Fo=class{constructor(){this.name="spanish-keyword"}setContext(e){this.context=e}canExtract(e,t){return Vo(e[t])}extract(e,t){if(!this.context)throw Error("SpanishKeywordExtractor: context not set");const r=this.tryMultiWordPhrase(e,t);return r||this.extractSpanishWord(e,t)}tryMultiWordPhrase(e,t){if(!this.context)return null;const r=["de lo contrario","de lo normal","por defecto","de nuevo","de otra manera"];for(const i of r){if(e.slice(t,t+i.length).toLowerCase()===i.toLowerCase()){const r=t+i.length;if(r>=e.length||m(e[r])||!Vo(e[r])){const a=this.context.lookupKeyword(i);return{value:e.slice(t,r),length:i.length,metadata:{normalized:a?.normalized,multiWord:!0}}}}}return null}extractSpanishWord(e,t){if(!this.context)return null;let r=t,i="";for(;e.length>r&&Bo(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=Do.has(a),o=this.context.lookupKeyword(i),s=o&&o.normalized!==o.native?o.normalized:void 0;let l,p,m;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized,p=e.stem,m=e.confidence)}}return{value:i,length:r-t,metadata:{normalized:s||l,stem:p,stemConfidence:m,isPreposition:n}}}}}}),Qo={};x(Qo,{SpanishTokenizer:()=>Zo,spanishTokenizer:()=>Yo});var Jo,es,ts=b({"src/tokenizers/spanish.ts"(){zi(),Ho(),Qt(),xi(),Vn(),Xo(),Uo=new Set(["en","a","de","desde","hasta","con","sin","por","para","sobre","entre","antes","despu\u00e9s","despues","dentro","fuera","al","del"]),Go=[{native:"verdadero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milisegundo",normalized:"ms"},{native:"milisegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"m\u00ed",normalized:"me"},{native:"destino",normalized:"target"},{native:"inclusivo",normalized:"inclusive"},{native:"exclusivo",normalized:"exclusive"},{native:"caracteres",normalized:"characters"},{native:"aleatorio",normalized:"random"}],Yo=new(Zo=class extends p{constructor(){super(),this.language="es",this.direction="ltr",this.initializeKeywordsFromProfile(Gt,Go),this.setNormalizer(new $o),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new Fo]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){const t=e.toLowerCase();return Uo.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});function rs(e){const t=e.charCodeAt(0);if(t>=65&&90>=t||t>=97&&122>=t)return!0;return"\u00e7\u00c7\u011f\u011e\u0131\u0130\u00f6\u00d6\u015f\u015e\u00fc\u00dc".includes(e)}function is(e){return"a\u0131ouAIOU".includes(e)}function as(e){return"ei\u00f6\u00fcE\u0130\u00d6\u00dc".includes(e)}function ns(e){return is(e)||as(e)}function os(e,t){const r=function(e){for(let t=e.length-1;t>=0;t--)if(ns(e[t]))return e[t];return null}(e);if(!r)return!0;const i=t.split("").find(e=>ns(e));return!i||(is(r)?is(i):as(i))}var ss,ls,ps,ms,cs,ds=b({"src/tokenizers/morphology/turkish-normalizer.ts"(){Jn(),Jo=[{pattern:"iyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u00fcyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsunuz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u00fcyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorsun",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u00fcyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyoruz",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"iyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u00fcyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyorum",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"iyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"\u00fcyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"uyorlar",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"eceksiniz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"eceksin",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaks\u0131n",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011fiz",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"aca\u011f\u0131z",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"ece\u011fim",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"aca\u011f\u0131m",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"ecekler",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"acaklar",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"mi\u015fsiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015fs\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u00fc\u015fs\u00fcn\u00fcz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015fsunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015fsin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015fs\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u00fc\u015fs\u00fcn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015fsun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015fiz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015f\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u00fc\u015f\u00fcz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015fuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mi\u015fim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015f\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u00fc\u015f\u00fcm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015fum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mi\u015fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"m\u00fc\u015fler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"mu\u015flar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u00fcn\u00fcz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiniz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n\u0131z",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u00fcn\u00fcz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tunuz",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"diler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u00fcler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tiler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131lar",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u00fcler",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tular",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"din",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u00fcn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tin",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131n",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u00fcn",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tun",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"d\u00fck",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"duk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u0131k",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"t\u00fck",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"tuk",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"dim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u00fcm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"dum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tim",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131m",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u00fcm",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tum",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"iyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u0131yor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"\u00fcyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"uyor",confidence:.85,conjugationType:"progressive",minStemLength:2},{pattern:"ecek",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"acak",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"mi\u015f",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u0131\u015f",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"m\u00fc\u015f",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mu\u015f",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"di",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"d\u00fc",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"du",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"ti",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u0131",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"t\u00fc",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"tu",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"mek",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"mak",confidence:.88,conjugationType:"dictionary",minStemLength:2},{pattern:"eyelim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ayal\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"eyim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"ay\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"elim",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"al\u0131m",confidence:.82,conjugationType:"optative",minStemLength:2},{pattern:"melisiniz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"melisin",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131s\u0131n",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyiz",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131z",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meliyim",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131y\u0131m",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"meliler",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131lar",confidence:.82,conjugationType:"necessitative",minStemLength:2},{pattern:"meli",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"mal\u0131",confidence:.85,conjugationType:"necessitative",minStemLength:2},{pattern:"ebiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abiliyor",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilir",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"ebildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"abildi",confidence:.82,conjugationType:"potential",minStemLength:2},{pattern:"ebilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"abilmek",confidence:.85,conjugationType:"potential",minStemLength:2},{pattern:"iniz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n\u0131z",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"\u00fcn\u00fcz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"unuz",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"in",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\u0131n",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"\u00fcn",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"un",confidence:.8,conjugationType:"imperative",minStemLength:2},{pattern:"ildi",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131ld\u0131",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u00fcld\u00fc",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"uldu",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ilir",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u0131l\u0131r",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"\u00fcl\u00fcr",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ulur",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"tirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"t\u00fcrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"turmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"dirmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\u0131rmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"d\u00fcrmek",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"durmak",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"miyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u00fcyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsunuz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u00fcyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyorsun",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"m\u00fcyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"muyoruz",confidence:.8,conjugationType:"negative",minStemLength:2},{pattern:"miyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u00fcyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyorum",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"miyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u0131yor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"m\u00fcyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"muyor",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"medi",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"mad\u0131",confidence:.82,conjugationType:"negative",minStemLength:2},{pattern:"me",confidence:.75,conjugationType:"negative",minStemLength:3},{pattern:"ma",confidence:.75,conjugationType:"negative",minStemLength:3}],new(es=class{constructor(){this.language="tr"}isNormalizable(e){return!!function(e){for(const t of e)if(rs(t))return!0;return!1}(e)&&3<=e.length}normalize(e){const t=e.toLowerCase();for(const e of Jo)if(t.endsWith(e.pattern)){const r=t.slice(0,-e.pattern.length);if((e.minStemLength??2)>r.length)continue;if(!os(r,e.pattern)){const t=.9*e.confidence,i={removedSuffixes:[e.pattern]};return e.conjugationType&&(i.conjugationType=e.conjugationType),u(r,t,i)}const i={removedSuffixes:[e.pattern]};return e.conjugationType&&(i.conjugationType=e.conjugationType),u(r,e.confidence,i)}return y(e)}})}}),us={};x(us,{TurkishTokenizer:()=>ms,turkishTokenizer:()=>cs});var ys,vs,fs,hs,gs=b({"src/tokenizers/turkish.ts"(){zi(),ds(),Hr(),xi(),Vn(),zn(),ss=new Set(["ile","i\u00e7in","kadar","gibi","\u00f6nce","\u00fczerinde","alt\u0131nda","i\u00e7inde","d\u0131\u015f\u0131nda","aras\u0131nda","kar\u015f\u0131","g\u00f6re","ra\u011fmen","boyunca"]),ls=new Set(["de","da","te","ta","den","dan","ten","tan","e","a","ye","ya","i","\u0131","u","\u00fc","in","\u0131n","un","\u00fcn","le","la","yle","yla"]),ps=[{native:"do\u011fru",normalized:"true"},{native:"dogru",normalized:"true"},{native:"yanl\u0131\u015f",normalized:"false"},{native:"yanlis",normalized:"false"},{native:"null",normalized:"null"},{native:"bo\u015f",normalized:"null"},{native:"bos",normalized:"null"},{native:"tan\u0131ms\u0131z",normalized:"undefined"},{native:"tanimsiz",normalized:"undefined"},{native:"ilk",normalized:"first"},{native:"son",normalized:"last"},{native:"sonuncu",normalized:"last"},{native:"sonraki",normalized:"next"},{native:"\u00f6nceki",normalized:"previous"},{native:"onceki",normalized:"previous"},{native:"enyak\u0131n",normalized:"closest"},{native:"enyakin",normalized:"closest"},{native:"ebeveyn",normalized:"parent"},{native:"fare \u00fczerinde",normalized:"mouseover"},{native:"fare uzerinde",normalized:"mouseover"},{native:"fare d\u0131\u015f\u0131nda",normalized:"mouseout"},{native:"fare disinda",normalized:"mouseout"},{native:"farebas",normalized:"mousedown"},{native:"fareb\u0131rak",normalized:"mouseup"},{native:"farebirak",normalized:"mouseup"},{native:"kayd\u0131r",normalized:"scroll"},{native:"kaydir",normalized:"scroll"},{native:"boyutland\u0131rma",normalized:"resize"},{native:"boyutlandirma",normalized:"resize"},{native:"boyutland\u0131r",normalized:"resize"},{native:"boyutlandir",normalized:"resize"},{native:"kayd\u0131rma",normalized:"scroll"},{native:"kaydirma",normalized:"scroll"},{native:"tu\u015f_bas",normalized:"keydown"},{native:"tus_bas",normalized:"keydown"},{native:"tu\u015f_b\u0131rak",normalized:"keyup"},{native:"tus_birak",normalized:"keyup"},{native:"saniye",normalized:"s"},{native:"milisaniye",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saat",normalized:"h"},{native:"dahil",normalized:"inclusive"},{native:"hari\u00e7",normalized:"exclusive"},{native:"karakterler",normalized:"characters"},{native:"rastgele",normalized:"random"}],cs=new(ms=class extends p{constructor(){super(),this.language="tr",this.direction="ltr",this.initializeKeywordsFromProfile(Vr,ps),this.setNormalizer(new es),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractor(new un),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){const t=e.toLowerCase();return ss.has(t)||ls.has(t)?"particle":this.isKeyword(t)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}})}}),ks={};x(ks,{ChineseTokenizer:()=>fs,chineseTokenizer:()=>hs});var zs,ws,bs,xs,Ts,Ss,js=b({"src/tokenizers/chinese.ts"(){zi(),ti(),xi(),Vn(),oa(),sa(),Nn(),ys=new Set(["\u628a","\u5728","\u4ece","\u5230","\u5411","\u7ed9","\u5bf9","\u7528","\u88ab","\u8ba9","\u7684","\u5730","\u5f97","\u4e86","\u7740","\u8fc7","\u5417","\u5462","\u5427"]),vs=[{native:"\u771f",normalized:"true"},{native:"\u5047",normalized:"false"},{native:"\u7a7a",normalized:"null"},{native:"\u672a\u5b9a\u4e49",normalized:"undefined"},{native:"\u7b49\u4e8e",normalized:"equals"},{native:"\u7b2c\u4e00\u4e2a",normalized:"first"},{native:"\u9996\u4e2a",normalized:"first"},{native:"\u6700\u540e\u4e00\u4e2a",normalized:"last"},{native:"\u672b\u4e2a",normalized:"last"},{native:"\u4e0b\u4e00\u4e2a",normalized:"next"},{native:"\u4e0a\u4e00\u4e2a",normalized:"previous"},{native:"\u6700\u8fd1\u7684",normalized:"closest"},{native:"\u7236\u7ea7",normalized:"parent"},{native:"\u70b9\u51fb",normalized:"click"},{native:"\u53cc\u51fb",normalized:"dblclick"},{native:"\u8f93\u5165",normalized:"input"},{native:"\u53d8\u66f4",normalized:"change"},{native:"\u6539\u53d8",normalized:"change"},{native:"\u63d0\u4ea4",normalized:"submit"},{native:"\u6309\u952e",normalized:"keydown"},{native:"\u91ca\u653e\u952e",normalized:"keyup"},{native:"\u9f20\u6807\u79fb\u5165",normalized:"mouseover"},{native:"\u9f20\u6807\u79fb\u51fa",normalized:"mouseout"},{native:"\u83b7\u5f97\u7126\u70b9",normalized:"focus"},{native:"\u5931\u53bb\u7126\u70b9",normalized:"blur"},{native:"\u52a0\u8f7d",normalized:"load"},{native:"\u6eda\u52a8",normalized:"scroll"},{native:"\u6211\u7684",normalized:"my"},{native:"\u5b83\u7684",normalized:"its"},{native:"\u79d2",normalized:"s"},{native:"\u6beb\u79d2",normalized:"ms"},{native:"\u5206\u949f",normalized:"m"},{native:"\u5c0f\u65f6",normalized:"h"},{native:"\u548c",normalized:"and"},{native:"\u6216\u8005",normalized:"or"},{native:"\u6216",normalized:"or"},{native:"\u4e0d",normalized:"not"},{native:"\u975e",normalized:"not"},{native:"\u662f",normalized:"is"},{native:"\u82e5",normalized:"if"},{native:"\u4e0d\u7136",normalized:"else"},{native:"\u5faa\u73af",normalized:"repeat"},{native:"\u904d\u5386",normalized:"for"},{native:"\u6bcf\u4e2a",normalized:"for"},{native:"\u4e3a\u6bcf",normalized:"for"},{native:"\u4e2d\u6b62",normalized:"halt"},{native:"\u629b",normalized:"throw"},{native:"\u547c\u53eb",normalized:"call"},{native:"\u56de",normalized:"return"},{native:"\u811a\u672c",normalized:"js"},{native:"\u901a\u77e5",normalized:"tell"},{native:"\u7f3a\u7701",normalized:"default"},{native:"\u521d\u59cb",normalized:"init"},{native:"\u52a8\u4f5c",normalized:"behavior"},{native:"\u6fc0\u53d1",normalized:"trigger"},{native:"\u5bf9\u7126",normalized:"focus"},{native:"\u6a21\u7cca",normalized:"blur"},{native:"\u8df3\u8f6c",normalized:"go"},{native:"\u5bfc\u822a",normalized:"go"},{native:"\u6293\u53d6",normalized:"fetch"},{native:"\u83b7\u53d6\u6570\u636e",normalized:"fetch"},{native:"\u5b89\u5b9a",normalized:"settle"},{native:"\u62ff\u53d6",normalized:"take"},{native:"\u53d6",normalized:"take"},{native:"\u521b\u5efa",normalized:"make"},{native:"\u514b\u9686",normalized:"clone"},{native:"\u8bb0\u5f55",normalized:"log"},{native:"\u6253\u5370",normalized:"log"},{native:"\u52a8\u753b",normalized:"transition"},{native:"\u5230\u91cc\u9762",normalized:"into"},{native:"\u91cc",normalized:"into"},{native:"\u524d",normalized:"before"},{native:"\u540e",normalized:"after"},{native:"\u90a3\u4e48",normalized:"then"},{native:"\u5b8c",normalized:"end"},{native:"\u4f5c\u4e3a",normalized:"as"},{native:"\u5305\u542b",normalized:"inclusive"},{native:"\u6392\u9664",normalized:"exclusive"},{native:"\u5b57\u7b26",normalized:"characters"},{native:"\u968f\u673a",normalized:"random"}],hs=new(fs=class extends p{constructor(){super(),this.language="zh",this.direction="ltr",this.initializeKeywordsFromProfile(Xr,vs),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractor(new Mn),this.registerExtractor(new ta),this.registerExtractor(new Yi),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return ys.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||e.startsWith("\u201c")||e.startsWith("\u2018")||/^\d/.test(e)?"literal":"identifier"}})}});function Es(e){return/[\u00e1\u00e0\u00e2\u00e3\u00e9\u00ea\u00ed\u00f3\u00f4\u00f5\u00fa\u00fc\u00e7\u00c1\u00c0\u00c2\u00c3\u00c9\u00ca\u00cd\u00d3\u00d4\u00d5\u00da\u00dc\u00c7]/.test(e)}var Ls,Cs,Ps,_s,Ws=b({"src/tokenizers/morphology/portuguese-normalizer.ts"(){Jn(),zs=["-se","-me","-te","-nos","-vos"],ws=[{ending:"ando",stem:"ar",confidence:.88,type:"gerund"},{ending:"ado",stem:"ar",confidence:.88,type:"participle"},{ending:"ada",stem:"ar",confidence:.88,type:"participle"},{ending:"ados",stem:"ar",confidence:.88,type:"participle"},{ending:"adas",stem:"ar",confidence:.88,type:"participle"},{ending:"o",stem:"ar",confidence:.75,type:"present"},{ending:"as",stem:"ar",confidence:.82,type:"present"},{ending:"a",stem:"ar",confidence:.75,type:"present"},{ending:"amos",stem:"ar",confidence:.85,type:"present"},{ending:"ais",stem:"ar",confidence:.85,type:"present"},{ending:"am",stem:"ar",confidence:.8,type:"present"},{ending:"ei",stem:"ar",confidence:.88,type:"past"},{ending:"aste",stem:"ar",confidence:.88,type:"past"},{ending:"ou",stem:"ar",confidence:.88,type:"past"},{ending:"\u00e1mos",stem:"ar",confidence:.88,type:"past"},{ending:"amos",stem:"ar",confidence:.85,type:"past"},{ending:"astes",stem:"ar",confidence:.88,type:"past"},{ending:"aram",stem:"ar",confidence:.88,type:"past"},{ending:"ava",stem:"ar",confidence:.88,type:"past"},{ending:"avas",stem:"ar",confidence:.88,type:"past"},{ending:"\u00e1vamos",stem:"ar",confidence:.88,type:"past"},{ending:"avamos",stem:"ar",confidence:.85,type:"past"},{ending:"\u00e1veis",stem:"ar",confidence:.88,type:"past"},{ending:"aveis",stem:"ar",confidence:.85,type:"past"},{ending:"avam",stem:"ar",confidence:.88,type:"past"},{ending:"e",stem:"ar",confidence:.72,type:"subjunctive"},{ending:"es",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"emos",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"eis",stem:"ar",confidence:.82,type:"subjunctive"},{ending:"em",stem:"ar",confidence:.78,type:"subjunctive"},{ending:"a",stem:"ar",confidence:.75,type:"imperative"},{ending:"ai",stem:"ar",confidence:.85,type:"imperative"},{ending:"ar",stem:"ar",confidence:.92,type:"dictionary"}],bs=[{ending:"endo",stem:"er",confidence:.88,type:"gerund"},{ending:"ido",stem:"er",confidence:.85,type:"participle"},{ending:"ida",stem:"er",confidence:.85,type:"participle"},{ending:"idos",stem:"er",confidence:.85,type:"participle"},{ending:"idas",stem:"er",confidence:.85,type:"participle"},{ending:"o",stem:"er",confidence:.72,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"e",stem:"er",confidence:.72,type:"present"},{ending:"emos",stem:"er",confidence:.85,type:"present"},{ending:"eis",stem:"er",confidence:.82,type:"present"},{ending:"em",stem:"er",confidence:.78,type:"present"},{ending:"i",stem:"er",confidence:.85,type:"past"},{ending:"este",stem:"er",confidence:.88,type:"past"},{ending:"eu",stem:"er",confidence:.88,type:"past"},{ending:"emos",stem:"er",confidence:.85,type:"past"},{ending:"estes",stem:"er",confidence:.88,type:"past"},{ending:"eram",stem:"er",confidence:.88,type:"past"},{ending:"ia",stem:"er",confidence:.85,type:"past"},{ending:"ias",stem:"er",confidence:.85,type:"past"},{ending:"\u00edamos",stem:"er",confidence:.88,type:"past"},{ending:"iamos",stem:"er",confidence:.85,type:"past"},{ending:"\u00edeis",stem:"er",confidence:.88,type:"past"},{ending:"ieis",stem:"er",confidence:.85,type:"past"},{ending:"iam",stem:"er",confidence:.85,type:"past"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],xs=[{ending:"indo",stem:"ir",confidence:.88,type:"gerund"},{ending:"ido",stem:"ir",confidence:.85,type:"participle"},{ending:"ida",stem:"ir",confidence:.85,type:"participle"},{ending:"idos",stem:"ir",confidence:.85,type:"participle"},{ending:"idas",stem:"ir",confidence:.85,type:"participle"},{ending:"o",stem:"ir",confidence:.72,type:"present"},{ending:"es",stem:"ir",confidence:.78,type:"present"},{ending:"e",stem:"ir",confidence:.72,type:"present"},{ending:"imos",stem:"ir",confidence:.85,type:"present"},{ending:"is",stem:"ir",confidence:.82,type:"present"},{ending:"em",stem:"ir",confidence:.78,type:"present"},{ending:"i",stem:"ir",confidence:.85,type:"past"},{ending:"iste",stem:"ir",confidence:.88,type:"past"},{ending:"iu",stem:"ir",confidence:.88,type:"past"},{ending:"imos",stem:"ir",confidence:.85,type:"past"},{ending:"istes",stem:"ir",confidence:.88,type:"past"},{ending:"iram",stem:"ir",confidence:.88,type:"past"},{ending:"ia",stem:"ir",confidence:.85,type:"past"},{ending:"ias",stem:"ir",confidence:.85,type:"past"},{ending:"\u00edamos",stem:"ir",confidence:.88,type:"past"},{ending:"iamos",stem:"ir",confidence:.85,type:"past"},{ending:"\u00edeis",stem:"ir",confidence:.88,type:"past"},{ending:"ieis",stem:"ir",confidence:.85,type:"past"},{ending:"iam",stem:"ir",confidence:.85,type:"past"},{ending:"ir",stem:"ir",confidence:.92,type:"dictionary"}],Ts=[...ws,...bs,...xs].sort((e,t)=>t.ending.length-e.ending.length),new(Ss=class{constructor(){this.language="pt"}isNormalizable(e){return e.length>=3&&function(e){const t=e.toLowerCase();if(t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir"))return!0;if(t.endsWith("ando")||t.endsWith("endo")||t.endsWith("indo"))return!0;if(t.endsWith("ado")||t.endsWith("ido"))return!0;if(t.endsWith("ar-se")||t.endsWith("er-se")||t.endsWith("ir-se"))return!0;for(const t of e)if(Es(t))return!0;return!1}(e)}normalize(e){const t=e.toLowerCase();if((t.endsWith("ar")||t.endsWith("er")||t.endsWith("ir"))&&!zs.some(e=>t.endsWith(e)))return y(e);const r=this.tryReflexiveNormalization(t);if(r)return r;const i=this.tryConjugationNormalization(t);return i||y(e)}tryReflexiveNormalization(e){for(const t of zs)if(e.endsWith(t)){const r=e.slice(0,-t.length);if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir"))return u(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});const i=this.tryConjugationNormalization(r);if(i&&i.stem!==r)return u(i.stem,.95*i.confidence,{removedSuffixes:[t,...i.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(const t of Ts)if(e.endsWith(t.ending)){const r=e.slice(0,-t.ending.length);if(2>r.length)continue;return u(r+t.stem,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}})}});var As,qs,Ms,Os,Rs=b({"src/tokenizers/extractors/portuguese-keyword.ts"(){var e;({isLetter:Ls,isIdentifierChar:Cs}=(e=/[a-zA-Z\u00e1\u00e2\u00e3\u00e9\u00ea\u00ed\u00f3\u00f4\u00f5\u00fa\u00e7\u00c1\u00c2\u00c3\u00c9\u00ca\u00cd\u00d3\u00d4\u00d5\u00da\u00c7]/,{isLetter:t=>e.test(t),isIdentifierChar:t=>/[0-9]/.test(t)||e.test(t)})),Ps=new Set(["em","a","de","para","com","sem","por","sobre","entre","antes","depois","dentro","fora","ao","do","da","no","na"]),_s=class{constructor(){this.name="portuguese-keyword"}setContext(e){this.context=e}canExtract(e,t){return Ls(e[t])}extract(e,t){if(!this.context)throw Error("PortugueseKeywordExtractor: context not set");let r=t,i="";for(;e.length>r&&Cs(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=Ps.has(a),o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;let l,p,m;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized,p=e.stem,m=e.confidence)}}return{value:i,length:r-t,metadata:{normalized:s||l,stem:p,stemConfidence:m,isPreposition:n}}}}}}),Ns={};x(Ns,{PortugueseTokenizer:()=>Ms,portugueseTokenizer:()=>Os});var $s,Is,Ks,Vs,Bs,Ds,Fs=b({"src/tokenizers/portuguese.ts"(){zi(),Lr(),Ws(),xi(),Vn(),Rs(),As=new Set(["em","a","de","desde","at\u00e9","ate","com","sem","por","para","sobre","entre","antes","depois","dentro","fora","ao","do","no","na"]),qs=[{native:"verdadeiro",normalized:"true"},{native:"falso",normalized:"false"},{native:"nulo",normalized:"null"},{native:"indefinido",normalized:"undefined"},{native:"primeiro",normalized:"first"},{native:"primeira",normalized:"first"},{native:"\u00faltimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"pr\u00f3ximo",normalized:"next"},{native:"proximo",normalized:"next"},{native:"anterior",normalized:"previous"},{native:"maispr\u00f3ximo",normalized:"closest"},{native:"maisproximo",normalized:"closest"},{native:"pai",normalized:"parent"},{native:"clique",normalized:"click"},{native:"click",normalized:"click"},{native:"entrada",normalized:"input"},{native:"mudan\u00e7a",normalized:"change"},{native:"mudanca",normalized:"change"},{native:"envio",normalized:"submit"},{native:"tecla baixo",normalized:"keydown"},{native:"tecla cima",normalized:"keyup"},{native:"mouse sobre",normalized:"mouseover"},{native:"mouse fora",normalized:"mouseout"},{native:"foco",normalized:"focus"},{native:"desfoque",normalized:"blur"},{native:"carregar",normalized:"load"},{native:"rolagem",normalized:"scroll"},{native:"meu",normalized:"my"},{native:"minha",normalized:"my"},{native:"isso",normalized:"it"},{native:"segundo",normalized:"s"},{native:"segundos",normalized:"s"},{native:"milissegundo",normalized:"ms"},{native:"milissegundos",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minutos",normalized:"m"},{native:"hora",normalized:"h"},{native:"horas",normalized:"h"},{native:"senao",normalized:"else"},{native:"transicao",normalized:"transition"},{native:"ate",normalized:"until"},{native:"entao",normalized:"then"},{native:"lancar",normalized:"throw"},{native:"assincrono",normalized:"async"},{native:"padrao",normalized:"default"},{native:"at\u00e9 que",normalized:"until"},{native:"dentro de",normalized:"into"},{native:"inclusivo",normalized:"inclusive"},{native:"exclusivo",normalized:"exclusive"},{native:"caracteres",normalized:"characters"},{native:"aleat\u00f3rio",normalized:"random"}],Os=new(Ms=class extends p{constructor(){super(),this.language="pt",this.direction="ltr",this.initializeKeywordsFromProfile(Tr,qs),this.setNormalizer(new Ss),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new _s]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){const t=e.toLowerCase();return As.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});var Hs,Us,Gs,Zs,Ys=b({"src/tokenizers/morphology/french-normalizer.ts"(){Jn(),$s=["toi","vous","nous"],Is=[{ending:"ant",stem:"er",confidence:.88,type:"gerund"},{ending:"\u00e9",stem:"er",confidence:.88,type:"participle"},{ending:"\u00e9e",stem:"er",confidence:.88,type:"participle"},{ending:"\u00e9s",stem:"er",confidence:.88,type:"participle"},{ending:"\u00e9es",stem:"er",confidence:.88,type:"participle"},{ending:"e",stem:"er",confidence:.75,type:"present"},{ending:"es",stem:"er",confidence:.78,type:"present"},{ending:"ons",stem:"er",confidence:.85,type:"present"},{ending:"ez",stem:"er",confidence:.85,type:"present"},{ending:"ent",stem:"er",confidence:.82,type:"present"},{ending:"ais",stem:"er",confidence:.82,type:"past"},{ending:"ait",stem:"er",confidence:.82,type:"past"},{ending:"ions",stem:"er",confidence:.85,type:"past"},{ending:"iez",stem:"er",confidence:.85,type:"past"},{ending:"aient",stem:"er",confidence:.85,type:"past"},{ending:"ai",stem:"er",confidence:.8,type:"past"},{ending:"as",stem:"er",confidence:.78,type:"past"},{ending:"a",stem:"er",confidence:.75,type:"past"},{ending:"\u00e2mes",stem:"er",confidence:.88,type:"past"},{ending:"\u00e2tes",stem:"er",confidence:.88,type:"past"},{ending:"\u00e8rent",stem:"er",confidence:.88,type:"past"},{ending:"erai",stem:"er",confidence:.85,type:"future"},{ending:"eras",stem:"er",confidence:.85,type:"future"},{ending:"era",stem:"er",confidence:.82,type:"future"},{ending:"erons",stem:"er",confidence:.88,type:"future"},{ending:"erez",stem:"er",confidence:.88,type:"future"},{ending:"eront",stem:"er",confidence:.88,type:"future"},{ending:"erais",stem:"er",confidence:.85,type:"conditional"},{ending:"erait",stem:"er",confidence:.85,type:"conditional"},{ending:"erions",stem:"er",confidence:.88,type:"conditional"},{ending:"eriez",stem:"er",confidence:.88,type:"conditional"},{ending:"eraient",stem:"er",confidence:.88,type:"conditional"},{ending:"ions",stem:"er",confidence:.8,type:"subjunctive"},{ending:"iez",stem:"er",confidence:.8,type:"subjunctive"},{ending:"ons",stem:"er",confidence:.82,type:"imperative"},{ending:"ez",stem:"er",confidence:.82,type:"imperative"},{ending:"er",stem:"er",confidence:.92,type:"dictionary"}],Ks=[{ending:"issant",stem:"ir",confidence:.88,type:"gerund"},{ending:"i",stem:"ir",confidence:.8,type:"participle"},{ending:"ie",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"participle"},{ending:"ies",stem:"ir",confidence:.82,type:"participle"},{ending:"is",stem:"ir",confidence:.78,type:"present"},{ending:"it",stem:"ir",confidence:.78,type:"present"},{ending:"issons",stem:"ir",confidence:.88,type:"present"},{ending:"issez",stem:"ir",confidence:.88,type:"present"},{ending:"issent",stem:"ir",confidence:.88,type:"present"},{ending:"issais",stem:"ir",confidence:.85,type:"past"},{ending:"issait",stem:"ir",confidence:.85,type:"past"},{ending:"issions",stem:"ir",confidence:.88,type:"past"},{ending:"issiez",stem:"ir",confidence:.88,type:"past"},{ending:"issaient",stem:"ir",confidence:.88,type:"past"},{ending:"irai",stem:"ir",confidence:.85,type:"future"},{ending:"iras",stem:"ir",confidence:.85,type:"future"},{ending:"ira",stem:"ir",confidence:.82,type:"future"},{ending:"irons",stem:"ir",confidence:.88,type:"future"},{ending:"irez",stem:"ir",confidence:.88,type:"future"},{ending:"iront",stem:"ir",confidence:.88,type:"future"},{ending:"ir",stem:"ir",confidence:.9,type:"dictionary"}],Vs=[{ending:"ant",stem:"re",confidence:.82,type:"gerund"},{ending:"u",stem:"re",confidence:.8,type:"participle"},{ending:"ue",stem:"re",confidence:.82,type:"participle"},{ending:"us",stem:"re",confidence:.82,type:"participle"},{ending:"ues",stem:"re",confidence:.82,type:"participle"},{ending:"s",stem:"re",confidence:.72,type:"present"},{ending:"d",stem:"re",confidence:.75,type:"present"},{ending:"ons",stem:"re",confidence:.82,type:"present"},{ending:"ez",stem:"re",confidence:.82,type:"present"},{ending:"ent",stem:"re",confidence:.8,type:"present"},{ending:"re",stem:"re",confidence:.9,type:"dictionary"}],Bs=[...Is,...Ks,...Vs].sort((e,t)=>t.ending.length-e.ending.length),new(Ds=class{constructor(){this.language="fr"}isNormalizable(e){return e.length>=3&&function(e){const t=e.toLowerCase();return!!(t.endsWith("er")||t.endsWith("ir")||t.endsWith("re")||t.endsWith("ant")||t.endsWith("\u00e9")||t.endsWith("i")||t.endsWith("u")||/[\u00e0\u00e2\u00e4\u00e9\u00e8\u00ea\u00eb\u00ef\u00ee\u00f4\u00f9\u00fb\u00fc\u00ff\u00e7\u0153\u00e6]/i.test(e))}(e)}normalize(e){const t=e.toLowerCase();if((t.endsWith("er")||t.endsWith("ir")||t.endsWith("re"))&&t.length>=4)return y(e);const r=this.tryReflexiveNormalization(t);if(r)return r;const i=this.tryConjugationNormalization(t);return i||y(e)}tryReflexiveNormalization(e){for(const t of $s){const r="-"+t;if(e.endsWith(r)){const t=e.slice(0,-r.length),i=this.tryConjugationNormalization(t);if(i&&i.stem!==t)return u(i.stem,.95*i.confidence,{removedSuffixes:[r,...i.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}}return null}tryConjugationNormalization(e){for(const t of Bs)if(e.endsWith(t.ending)){const r=e.slice(0,-t.ending.length);if(2>r.length)continue;return u(r+t.stem,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}})}});var Xs,Qs,Js,el=b({"src/tokenizers/extractors/french-keyword.ts"(){var e;({isLetter:Hs,isIdentifierChar:Us}=(e=/[a-zA-Z\u00e0\u00e2\u00e6\u00e7\u00e9\u00e8\u00ea\u00eb\u00ef\u00ee\u00f4\u00f9\u00fb\u00fc\u00ff\u0153\u00c0\u00c2\u00c6\u00c7\u00c9\u00c8\u00ca\u00cb\u00cf\u00ce\u00d4\u00d9\u00db\u00dc\u0178\u0152]/,{isLetter:t=>e.test(t),isIdentifierChar:t=>/[0-9]/.test(t)||e.test(t)})),Gs=new Set(["\u00e0","a","de","du","des","dans","sur","sous","avec","sans","par","pour","entre","avant","apr\u00e8s","apres","depuis","vers","chez","contre","au","aux"]),Zs=class{constructor(){this.name="french-keyword"}setContext(e){this.context=e}canExtract(e,t){return Hs(e[t])}extract(e,t){if(!this.context)throw Error("FrenchKeywordExtractor: context not set");let r=t,i="";for(;e.length>r&&Us(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=Gs.has(a),o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;let l,p,m;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized,p=e.stem,m=e.confidence)}}return{value:i,length:r-t,metadata:{normalized:s||l,stem:p,stemConfidence:m,isPreposition:n}}}}}}),tl={};x(tl,{FrenchTokenizer:()=>Qs,frenchTokenizer:()=>Js});var rl,il,al,nl,ol,sl=b({"src/tokenizers/french.ts"(){zi(),tr(),Ys(),xi(),Vn(),el(),Xs=[{native:"vrai",normalized:"true"},{native:"faux",normalized:"false"},{native:"nul",normalized:"null"},{native:"ind\u00e9fini",normalized:"undefined"},{native:"indefini",normalized:"undefined"},{native:"premier",normalized:"first"},{native:"premi\u00e8re",normalized:"first"},{native:"premiere",normalized:"first"},{native:"dernier",normalized:"last"},{native:"derni\u00e8re",normalized:"last"},{native:"derniere",normalized:"last"},{native:"suivant",normalized:"next"},{native:"pr\u00e9c\u00e9dent",normalized:"previous"},{native:"precedent",normalized:"previous"},{native:"proche",normalized:"closest"},{native:"parent",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"entr\u00e9e",normalized:"input"},{native:"entree",normalized:"input"},{native:"changement",normalized:"change"},{native:"soumission",normalized:"submit"},{native:"touche bas",normalized:"keydown"},{native:"touche haut",normalized:"keyup"},{native:"souris dessus",normalized:"mouseover"},{native:"souris dehors",normalized:"mouseout"},{native:"focus",normalized:"focus"},{native:"flou",normalized:"blur"},{native:"chargement",normalized:"load"},{native:"d\u00e9filement",normalized:"scroll"},{native:"defilement",normalized:"scroll"},{native:"je",normalized:"me"},{native:"mon",normalized:"my"},{native:"ma",normalized:"my"},{native:"mes",normalized:"my"},{native:"\u00e7a",normalized:"it"},{native:"ca",normalized:"it"},{native:"resultat",normalized:"result"},{native:"evenement",normalized:"event"},{native:"seconde",normalized:"s"},{native:"secondes",normalized:"s"},{native:"milliseconde",normalized:"ms"},{native:"millisecondes",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minutes",normalized:"m"},{native:"heure",normalized:"h"},{native:"heures",normalized:"h"},{native:"prefixer",normalized:"prepend"},{native:"creer",normalized:"make"},{native:"definir",normalized:"set"},{native:"etablir",normalized:"set"},{native:"incrementer",normalized:"increment"},{native:"decrementer",normalized:"decrement"},{native:"declencher",normalized:"trigger"},{native:"defocaliser",normalized:"blur"},{native:"recuperer",normalized:"fetch"},{native:"repeter",normalized:"repeat"},{native:"arreter",normalized:"halt"},{native:"defaut",normalized:"default"},{native:"jusqua",normalized:"until"},{native:"apres",normalized:"after"},{native:"journaliser",normalized:"log"},{native:"transmuter",normalized:"morph"},{native:"tant que",normalized:"while"},{native:"inclusif",normalized:"inclusive"},{native:"exclusif",normalized:"exclusive"},{native:"caract\u00e8res",normalized:"characters"},{native:"al\u00e9atoire",normalized:"random"}],Js=new(Qs=class extends p{constructor(){super(),this.language="fr",this.direction="ltr",this.initializeKeywordsFromProfile(Xt,Xs),this.normalizer=new Ds,this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new Zs]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});var ll,pl,ml,cl,dl=b({"src/tokenizers/morphology/german-normalizer.ts"(){Jn(),rl=["an","auf","aus","ein","mit","vor","zu","ab","bei","nach","weg","um","her","hin"],il=[{ending:"end",stem:"en",confidence:.88,type:"gerund"},{ending:"e",stem:"en",confidence:.75,type:"present"},{ending:"st",stem:"en",confidence:.8,type:"present"},{ending:"t",stem:"en",confidence:.78,type:"present"},{ending:"en",stem:"en",confidence:.85,type:"dictionary"},{ending:"test",stem:"en",confidence:.85,type:"past"},{ending:"ten",stem:"en",confidence:.82,type:"past"},{ending:"tet",stem:"en",confidence:.85,type:"past"},{ending:"te",stem:"en",confidence:.82,type:"past"},{ending:"test",stem:"en",confidence:.8,type:"subjunctive"},{ending:"ten",stem:"en",confidence:.78,type:"subjunctive"},{ending:"tet",stem:"en",confidence:.8,type:"subjunctive"},{ending:"te",stem:"en",confidence:.78,type:"subjunctive"},{ending:"e",stem:"en",confidence:.72,type:"imperative"},{ending:"t",stem:"en",confidence:.72,type:"imperative"},{ending:"en",stem:"en",confidence:.75,type:"imperative"}],al=[{ending:"le",stem:"eln",confidence:.82,type:"present"},{ending:"elst",stem:"eln",confidence:.85,type:"present"},{ending:"elt",stem:"eln",confidence:.85,type:"present"},{ending:"eln",stem:"eln",confidence:.88,type:"dictionary"},{ending:"re",stem:"ern",confidence:.82,type:"present"},{ending:"erst",stem:"ern",confidence:.85,type:"present"},{ending:"ert",stem:"ern",confidence:.85,type:"present"},{ending:"ern",stem:"ern",confidence:.88,type:"dictionary"}],nl=[...il,...al].sort((e,t)=>t.ending.length-e.ending.length),new(ol=class{constructor(){this.language="de"}isNormalizable(e){return e.length>=3&&function(e){const t=e.toLowerCase();return!!(t.endsWith("en")||t.endsWith("eln")||t.endsWith("ern")||t.startsWith("ge")&&t.endsWith("t")||t.startsWith("ge")&&t.endsWith("en")||/[\u00e4\u00f6\u00fc\u00df]/i.test(e))}(e)}normalize(e){const t=e.toLowerCase();if(t.endsWith("en")&&t.length>=4)return y(e);if((t.endsWith("eln")||t.endsWith("ern"))&&t.length>=5)return y(e);const r=this.tryParticipleNormalization(t);if(r)return r;const i=this.tryConjugationNormalization(t);return i||y(e)}tryParticipleNormalization(e){for(const t of rl)if(e.startsWith(t+"ge")){const r=e.slice(t.length),i=this.trySimpleParticipleNormalization(r);if(i){const e={removedPrefixes:["ge"],conjugationType:"participle"};return i.metadata?.removedSuffixes&&(e.removedSuffixes=i.metadata.removedSuffixes),u(t+i.stem,.95*i.confidence,e)}}return this.trySimpleParticipleNormalization(e)}trySimpleParticipleNormalization(e){if(!e.startsWith("ge"))return null;const t=e.slice(2);if(t.endsWith("t")&&t.length>=3){const e=t.slice(0,-1);return u(e+"en",.85,{removedPrefixes:["ge"],removedSuffixes:["t"],conjugationType:"participle"})}return t.endsWith("en")&&t.length>=4?u(t,.82,{removedPrefixes:["ge"],conjugationType:"participle"}):null}tryConjugationNormalization(e){for(const t of nl)if(e.endsWith(t.ending)){const r=e.slice(0,-t.ending.length);if(2>r.length)continue;return u(r+t.stem,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}})}});var ul,yl,vl,fl=b({"src/tokenizers/extractors/german-keyword.ts"(){var e;({isLetter:ll,isIdentifierChar:pl}=(e=/[a-zA-Z\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df]/,{isLetter:t=>e.test(t),isIdentifierChar:t=>/[0-9]/.test(t)||e.test(t)})),ml=new Set(["an","auf","aus","bei","durch","f\u00fcr","fur","gegen","in","mit","nach","ohne","seit","\u00fcber","uber","um","unter","von","vor","zu","zwischen","bis","gegen\u00fcber","gegenuber","w\u00e4hrend","wahrend","wegen","trotz","statt","innerhalb","au\u00dferhalb","ausserhalb"]),cl=class{constructor(){this.name="german-keyword"}setContext(e){this.context=e}canExtract(e,t){return ll(e[t])}extract(e,t){if(!this.context)throw Error("GermanKeywordExtractor: context not set");return this.extractGermanWord(e,t)}extractGermanWord(e,t){if(!this.context)return null;let r=t,i="";for(;e.length>r&&pl(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=ml.has(a),o=this.context.lookupKeyword(i),s=o&&o.normalized!==o.native?o.normalized:void 0;let l;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized)}}return{value:i,length:r-t,metadata:{normalized:s||l,isPreposition:n}}}}}}),hl={};x(hl,{GermanTokenizer:()=>yl,germanTokenizer:()=>vl});var gl,kl,zl,wl,bl=b({"src/tokenizers/german.ts"(){zi(),Ht(),dl(),xi(),Vn(),fl(),ul=[{native:"wahr",normalized:"true"},{native:"falsch",normalized:"false"},{native:"null",normalized:"null"},{native:"undefiniert",normalized:"undefined"},{native:"erste",normalized:"first"},{native:"erster",normalized:"first"},{native:"erstes",normalized:"first"},{native:"letzte",normalized:"last"},{native:"letzter",normalized:"last"},{native:"letztes",normalized:"last"},{native:"n\u00e4chste",normalized:"next"},{native:"nachste",normalized:"next"},{native:"n\u00e4chstgelegene",normalized:"closest"},{native:"nachstgelegene",normalized:"closest"},{native:"vorherige",normalized:"previous"},{native:"eltern",normalized:"parent"},{native:"klick",normalized:"click"},{native:"click",normalized:"click"},{native:"eingabe",normalized:"input"},{native:"\u00e4nderung",normalized:"change"},{native:"anderung",normalized:"change"},{native:"absenden",normalized:"submit"},{native:"taste unten",normalized:"keydown"},{native:"taste oben",normalized:"keyup"},{native:"maus dr\u00fcber",normalized:"mouseover"},{native:"maus druber",normalized:"mouseover"},{native:"maus weg",normalized:"mouseout"},{native:"fokus",normalized:"focus"},{native:"unsch\u00e4rfe",normalized:"blur"},{native:"unscharfe",normalized:"blur"},{native:"scrollen",normalized:"scroll"},{native:"meine",normalized:"my"},{native:"meinen",normalized:"my"},{native:"ergebnis",normalized:"result"},{native:"ziel",normalized:"target"},{native:"sekunde",normalized:"s"},{native:"sekunden",normalized:"s"},{native:"millisekunde",normalized:"ms"},{native:"millisekunden",normalized:"ms"},{native:"minute",normalized:"m"},{native:"minuten",normalized:"m"},{native:"stunde",normalized:"h"},{native:"stunden",normalized:"h"},{native:"hinzufugen",normalized:"add"},{native:"hinzufgen",normalized:"add"},{native:"loschen",normalized:"remove"},{native:"anhangen",normalized:"append"},{native:"erhohen",normalized:"increment"},{native:"ubergang",normalized:"transition"},{native:"auslosen",normalized:"trigger"},{native:"zuruckgeben",normalized:"return"},{native:"anschliessend",normalized:"then"},{native:"erh\u00f6he",normalized:"increment"},{native:"erhohe",normalized:"increment"},{native:"verringere",normalized:"decrement"},{native:"inklusiv",normalized:"inclusive"},{native:"exklusiv",normalized:"exclusive"},{native:"Zeichen",normalized:"characters"},{native:"zuf\u00e4llig",normalized:"random"}],vl=new(yl=class extends p{constructor(){super(),this.language="de",this.direction="ltr",this.initializeKeywordsFromProfile(Vt,ul),this.normalizer=new ol,this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new cl]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}}),xl={};x(xl,{IndonesianTokenizer:()=>zl,indonesianTokenizer:()=>wl});var Tl,Sl,jl=b({"src/tokenizers/indonesian.ts"(){zi(),mr(),xi(),Vn(),mn(),gl=new Set(["di","ke","dari","pada","dengan","tanpa","untuk","oleh","antara","sebelum","sesudah","setelah","selama","sampai","hingga","sejak","menuju","tentang","terhadap","melalui","dalam","luar"]),kl=[{native:"ubah_ukuran",normalized:"resize"},{native:"tidak_ada",normalized:"no"},{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"null",normalized:"null"},{native:"kosong",normalized:"null"},{native:"tidakdidefinisikan",normalized:"undefined"},{native:"tidak_terdefinisi",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"berikutnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"ubah",normalized:"change"},{native:"kirim",normalized:"submit"},{native:"tekan",normalized:"keydown"},{native:"arahkan",normalized:"mouseover"},{native:"tinggalkan",normalized:"mouseout"},{native:"kabur",normalized:"blur"},{native:"muat",normalized:"load"},{native:"gulir",normalized:"scroll"},{native:"input",normalized:"input"},{native:"milik",normalized:"my"},{native:"detik",normalized:"s"},{native:"milidetik",normalized:"ms"},{native:"menit",normalized:"m"},{native:"jam",normalized:"h"},{native:"atau",normalized:"or"},{native:"tidak",normalized:"not"},{native:"adalah",normalized:"is"},{native:"ada",normalized:"exists"},{native:"inklusif",normalized:"inclusive"},{native:"eksklusif",normalized:"exclusive"},{native:"karakter",normalized:"characters"},{native:"acak",normalized:"random"}],wl=new(zl=class extends p{constructor(){super(),this.language="id",this.direction="ltr",this.initializeKeywordsFromProfile(or,kl),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new an]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){const t=e.toLowerCase();return gl.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});function El(e,r){const i=e.tokens;if(!i.some(e=>"identifier"===e.kind&&Sl.test(e.value)))return e;const a=[];for(const e of i){const t="identifier"===e.kind?Sl.exec(e.value)?.[1]:void 0,i=t?r(t):[],n=1===i.length?i[0]:void 0;if(!t||"keyword"!==n?.kind||!Tl.has((n.normalized??"").toLowerCase())){a.push(e);continue}const o=e.position.start,s=o+t.length;a.push({...n,position:{start:o,end:s}}),a.push({value:"'",kind:"identifier",position:{start:s,end:s+1}}),a.push({value:"s",kind:"identifier",position:{start:s+1,end:s+2}})}return new t(a,e.language)}var Ll,Cl,Pl=b({"src/tokenizers/reference-possessive-split.ts"(){bt(),Tl=new Set(["result","event","target","body","detail","document","window"]),Sl=/^(.+)'s$/u}});function _l(e){const t=e.charCodeAt(0);return t>=65&&90>=t||t>=97&&122>=t||("\u00f1"===e||"\u00d1"===e||"'"===e||"'"===e)}var Wl,Al,ql,Ml,Ol,Rl=b({"src/tokenizers/morphology/quechua-normalizer.ts"(){Jn(),Ll=[{pattern:"shankichik",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"shaniku",confidence:.8,conjugationType:"progressive",minStemLength:2},{pattern:"shanki",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shani",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shanchik",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shanku",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"shan",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"rqankichik",confidence:.8,conjugationType:"past",minStemLength:2},{pattern:"rqaniku",confidence:.8,conjugationType:"past",minStemLength:2},{pattern:"rqanki",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqani",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqanchik",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqanku",confidence:.82,conjugationType:"past",minStemLength:2},{pattern:"rqan",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"nqankichik",confidence:.8,conjugationType:"future",minStemLength:2},{pattern:"nqaniku",confidence:.8,conjugationType:"future",minStemLength:2},{pattern:"nqanki",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqani",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqanchik",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqanku",confidence:.82,conjugationType:"future",minStemLength:2},{pattern:"nqa",confidence:.85,conjugationType:"future",minStemLength:2},{pattern:"chikuy",confidence:.8,conjugationType:"compound",minStemLength:2},{pattern:"chiku",confidence:.82,conjugationType:"compound",minStemLength:2},{pattern:"chiy",confidence:.85,conjugationType:"causative",minStemLength:2,replacement:"y"},{pattern:"chiq",confidence:.85,conjugationType:"causative",minStemLength:2,replacement:"y"},{pattern:"chi",confidence:.82,conjugationType:"causative",minStemLength:2},{pattern:"kuy",confidence:.82,conjugationType:"reflexive",minStemLength:2},{pattern:"rqa",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"rqan",confidence:.85,conjugationType:"past",minStemLength:2},{pattern:"sha",confidence:.82,conjugationType:"progressive",minStemLength:2},{pattern:"na",confidence:.85,conjugationType:"obligation",minStemLength:2},{pattern:"manmi",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"man",confidence:.8,conjugationType:"potential",minStemLength:2},{pattern:"nkichik",confidence:.8,conjugationType:"present",minStemLength:2},{pattern:"niku",confidence:.8,conjugationType:"present",minStemLength:2},{pattern:"nki",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"nchik",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"nku",confidence:.82,conjugationType:"present",minStemLength:2},{pattern:"ni",confidence:.85,conjugationType:"present",minStemLength:2},{pattern:"ku",confidence:.82,conjugationType:"reflexive",minStemLength:2},{pattern:"ychik",confidence:.82,conjugationType:"imperative",minStemLength:2},{pattern:"y",confidence:.9,conjugationType:"dictionary",minStemLength:2},{pattern:"sqa",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"ska",confidence:.82,conjugationType:"passive",minStemLength:2},{pattern:"kama",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"manta",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"man",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"wan",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"pi",confidence:.7,conjugationType:"dictionary",minStemLength:2},{pattern:"ta",confidence:.7,conjugationType:"dictionary",minStemLength:2}],Cl=new class{constructor(){this.language="qu"}isNormalizable(e){if(!function(e){for(const t of e)if(_l(t))return!0;return!1}(e))return!1;if(3>e.length)return!1;return!!/[aiu]/.test(e.toLowerCase())}normalize(e){const t=e.toLowerCase();for(const e of Ll)if(t.endsWith(e.pattern)){let r=t.slice(0,-e.pattern.length);e.replacement&&!r.endsWith(e.replacement)&&(r+=e.replacement);if((e.minStemLength??2)>r.length)continue;if(!this.isValidStem(r))continue;const i={removedSuffixes:[e.pattern]};return e.conjugationType&&(i.conjugationType=e.conjugationType),u(r,e.confidence,i)}return y(e)}isValidStem(e){if(2>e.length)return!1;if(!/[aeiou]/.test(e))return!1;return!new Set(["ta","man","pi","wan","pa","kama","hina"]).has(e)}}}}),Nl={};x(Nl,{QuechuaTokenizer:()=>Ml,quechuaTokenizer:()=>Ol});var $l,Il,Kl,Vl,Bl=b({"src/tokenizers/quechua.ts"(){zi(),Pl(),_r(),Rl(),xi(),Vn(),Ln(),Wl=class{constructor(){this.name="quechua-string-literal"}canExtract(e,t){return'"'===e[t]||"'"===e[t]||"`"===e[t]}extract(e,t){const r=e[t];let i=r,a=t+1;for(;e.length>a;){const t=e[a];if(t===r)return i+=t,{value:i,length:i.length};"\\"===t&&e.length>a+1?(i+=t+e[a+1],a+=2):(i+=t,a++)}return null}},Al=new Set(["-ta","-man","-manta","-pi","-wan","-paq","-kama","-rayku","-hina","ta","man","manta","pi","wan","paq","kama","hina","pa"]),ql=[{native:"sanampa",normalized:"characters"},{native:"cheqaq",normalized:"true"},{native:"ar\u00ed",normalized:"true"},{native:"ari",normalized:"true"},{native:"llulla",normalized:"false"},{native:"manan",normalized:"false"},{native:"mana",normalized:"false"},{native:"ch'usaq",normalized:"null"},{native:"chusaq",normalized:"null"},{native:"mana riqsisqa",normalized:"undefined"},{native:"\u00f1awpaqpi",normalized:"before"},{native:"nawpaqpi",normalized:"before"},{native:"qhepapi",normalized:"after"},{native:"qhipapi",normalized:"after"},{native:"\u00f1awpaq",normalized:"first"},{native:"nawpaq",normalized:"first"},{native:"qhipa",normalized:"last"},{native:"hamuq",normalized:"next"},{native:"qhipantin",normalized:"next"},{native:"\u00f1awpaqnin",normalized:"previous"},{native:"\u00f1awpaq kaq",normalized:"previous"},{native:"\u00f1awpaq_kaq",normalized:"previous"},{native:"kaylla",normalized:"closest"},{native:"ukupi",normalized:"in"},{native:"k_iri",normalized:"window"},{native:"hatun_kay",normalized:"resize"},{native:"mana_kanchu",normalized:"no"},{native:"mana_riqsisqa",normalized:"undefined"},{native:"ukupi_kan",normalized:"contains"},{native:"qaylla",normalized:"closest"},{native:"tayta",normalized:"parent"},{native:"llikllay",normalized:"click"},{native:"\u00f1itiy",normalized:"click"},{native:"\u00f1it'iy",normalized:"click"},{native:"click",normalized:"click"},{native:"yaykuy",normalized:"input"},{native:"llave uray",normalized:"keydown"},{native:"llave hawa",normalized:"keyup"},{native:"mausiri yayku",normalized:"mouseover"},{native:"mausiri lluqsi",normalized:"mouseout"},{native:"rat\u00f1itiy",normalized:"mousedown"},{native:"rathuqariy",normalized:"mouseup"},{native:"qhaway",normalized:"focus"},{native:"mana qhaway",normalized:"blur"},{native:"kargay",normalized:"load"},{native:"muyuy",normalized:"scroll"},{native:"\u00f1uqa",normalized:"me"},{native:"nuqa",normalized:"me"},{native:"\u00f1uqap",normalized:"my"},{native:"nuqap",normalized:"my"},{native:"chay",normalized:"it"},{native:"chaymi",normalized:"it"},{native:"lluqsiy",normalized:"result"},{native:"ruway",normalized:"event"},{native:"maypi",normalized:"target"},{native:"sikundu",normalized:"s"},{native:"segundu",normalized:"s"},{native:"waranqa sikundu",normalized:"ms"},{native:"minutu",normalized:"m"},{native:"ura",normalized:"h"},{native:"hora",normalized:"h"},{native:"chaypim",normalized:"on"},{native:"kaypi",normalized:"on"},{native:"chayqa",normalized:"then"},{native:"chaymanta",normalized:"then"},{native:"chaymantataq",normalized:"then"},{native:"hinaspa",normalized:"then"},{native:"tukukuy",normalized:"end"},{native:"puchukay",normalized:"end"},{native:"kaykama",normalized:"until"},{native:"yapay",normalized:"add"},{native:"t'ikray",normalized:"toggle"},{native:"tikray",normalized:"toggle"},{native:"qhawachiy",normalized:"focus"},{native:"mana qhawachiy",normalized:"blur"},{native:"-manta",normalized:"from"},{native:"imaymanata",normalized:"random"}],Ol=new(Ml=class extends p{constructor(){super(),this.language="qu",this.direction="ltr",this.initializeKeywordsFromProfile(Er,ql),this.setNormalizer(Cl),this.registerExtractors(In()),this.registerExtractor(new Wl),this.registerExtractor(new a),this.registerExtractor(new kn),this.registerExtractor(new vi),this.registerExtractor(new fi)}tokenize(e){return El(super.tokenize(e),e=>super.tokenize(e).tokens)}classifyToken(e){const t=e.toLowerCase();return Al.has(t)?"particle":this.isKeyword(t)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":"identifier"}})}}),Dl={};x(Dl,{SwahiliTokenizer:()=>Kl,swahiliTokenizer:()=>Vl});var Fl,Hl,Ul,Gl,Zl,Yl,Xl=b({"src/tokenizers/swahili.ts"(){zi(),Rr(),xi(),Vn(),yn(),$l=new Set(["kwa","na","katika","kwenye","kutoka","hadi","mpaka","kabla","baada","wakati","bila","kuhusu","karibu","mbele","nyuma","ndani","nje","juu","chini","kati"]),Il=[{native:"badilisha_ukubwa",normalized:"resize"},{native:"kweli",normalized:"true"},{native:"uongo",normalized:"false"},{native:"null",normalized:"null"},{native:"haijafafanuliwa",normalized:"undefined"},{native:"kwanza",normalized:"first"},{native:"wamwisho",normalized:"last"},{native:"ifuatayo",normalized:"next"},{native:"ijayo",normalized:"next"},{native:"iliyotangulia",normalized:"previous"},{native:"iliyopita",normalized:"previous"},{native:"karibu",normalized:"closest"},{native:"mzazi",normalized:"parent"},{native:"bonyeza",normalized:"click"},{native:"click",normalized:"click"},{native:"ganti",normalized:"change"},{native:"wasilisha",normalized:"submit"},{native:"bonyeza kitufe",normalized:"keydown"},{native:"sogeza juu",normalized:"mouseover"},{native:"sogeza nje",normalized:"mouseout"},{native:"panya_shuka",normalized:"mousedown"},{native:"panya_juu",normalized:"mouseup"},{native:"panya_ingia",normalized:"mouseenter"},{native:"panya_toka",normalized:"mouseleave"},{native:"panya_nje",normalized:"mouseout"},{native:"panya_sogea",normalized:"mousemove"},{native:"kitufe_shuka",normalized:"keydown"},{native:"kitufe_juu",normalized:"keyup"},{native:"fifia",normalized:"blur"},{native:"pakia",normalized:"load"},{native:"sukuma",normalized:"scroll"},{native:"input",normalized:"input"},{native:"ingizo",normalized:"input"},{native:"yangu",normalized:"my"},{native:"wangu",normalized:"my"},{native:"changu",normalized:"my"},{native:"langu",normalized:"my"},{native:"sekunde",normalized:"s"},{native:"millisekunde",normalized:"ms"},{native:"dakika",normalized:"m"},{native:"saa",normalized:"h"},{native:"au",normalized:"or"},{native:"si",normalized:"not"},{native:"ni",normalized:"is"},{native:"ipo",normalized:"exists"},{native:"tupu",normalized:"empty"},{native:"herufi",normalized:"characters"},{native:"nasibu",normalized:"random"}],Vl=new(Kl=class extends p{constructor(){super(),this.language="sw",this.direction="ltr",this.initializeKeywordsFromProfile(Ar,Il),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new pn]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){const t=e.toLowerCase();return $l.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});function Ql(e){return/[\u00e0\u00e8\u00e9\u00ec\u00ed\u00ee\u00f2\u00f3\u00f9\u00fa\u00c0\u00c8\u00c9\u00cc\u00cd\u00ce\u00d2\u00d3\u00d9\u00da]/.test(e)}var Jl,ep,tp=b({"src/tokenizers/morphology/italian-normalizer.ts"(){Jn(),Fl=["si","mi","ti","ci","vi"],Hl=[{ending:"ando",stem:"are",confidence:.88,type:"gerund"},{ending:"ato",stem:"are",confidence:.88,type:"participle"},{ending:"ata",stem:"are",confidence:.88,type:"participle"},{ending:"ati",stem:"are",confidence:.88,type:"participle"},{ending:"ate",stem:"are",confidence:.88,type:"participle"},{ending:"o",stem:"are",confidence:.75,type:"present"},{ending:"i",stem:"are",confidence:.72,type:"present"},{ending:"a",stem:"are",confidence:.75,type:"present"},{ending:"iamo",stem:"are",confidence:.85,type:"present"},{ending:"ate",stem:"are",confidence:.85,type:"present"},{ending:"ano",stem:"are",confidence:.85,type:"present"},{ending:"avo",stem:"are",confidence:.88,type:"past"},{ending:"avi",stem:"are",confidence:.88,type:"past"},{ending:"ava",stem:"are",confidence:.88,type:"past"},{ending:"avamo",stem:"are",confidence:.88,type:"past"},{ending:"avate",stem:"are",confidence:.88,type:"past"},{ending:"avano",stem:"are",confidence:.88,type:"past"},{ending:"ai",stem:"are",confidence:.85,type:"past"},{ending:"asti",stem:"are",confidence:.88,type:"past"},{ending:"\u00f2",stem:"are",confidence:.85,type:"past"},{ending:"ammo",stem:"are",confidence:.88,type:"past"},{ending:"aste",stem:"are",confidence:.88,type:"past"},{ending:"arono",stem:"are",confidence:.88,type:"past"},{ending:"i",stem:"are",confidence:.72,type:"subjunctive"},{ending:"ino",stem:"are",confidence:.82,type:"subjunctive"},{ending:"a",stem:"are",confidence:.75,type:"imperative"},{ending:"are",stem:"are",confidence:.92,type:"dictionary"}],Ul=[{ending:"endo",stem:"ere",confidence:.88,type:"gerund"},{ending:"uto",stem:"ere",confidence:.85,type:"participle"},{ending:"uta",stem:"ere",confidence:.85,type:"participle"},{ending:"uti",stem:"ere",confidence:.85,type:"participle"},{ending:"ute",stem:"ere",confidence:.85,type:"participle"},{ending:"o",stem:"ere",confidence:.72,type:"present"},{ending:"i",stem:"ere",confidence:.72,type:"present"},{ending:"e",stem:"ere",confidence:.72,type:"present"},{ending:"iamo",stem:"ere",confidence:.85,type:"present"},{ending:"ete",stem:"ere",confidence:.85,type:"present"},{ending:"ono",stem:"ere",confidence:.82,type:"present"},{ending:"evo",stem:"ere",confidence:.88,type:"past"},{ending:"evi",stem:"ere",confidence:.88,type:"past"},{ending:"eva",stem:"ere",confidence:.88,type:"past"},{ending:"evamo",stem:"ere",confidence:.88,type:"past"},{ending:"evate",stem:"ere",confidence:.88,type:"past"},{ending:"evano",stem:"ere",confidence:.88,type:"past"},{ending:"ei",stem:"ere",confidence:.85,type:"past"},{ending:"etti",stem:"ere",confidence:.85,type:"past"},{ending:"esti",stem:"ere",confidence:.88,type:"past"},{ending:"\u00e9",stem:"ere",confidence:.85,type:"past"},{ending:"ette",stem:"ere",confidence:.85,type:"past"},{ending:"emmo",stem:"ere",confidence:.88,type:"past"},{ending:"este",stem:"ere",confidence:.88,type:"past"},{ending:"erono",stem:"ere",confidence:.88,type:"past"},{ending:"ettero",stem:"ere",confidence:.88,type:"past"},{ending:"ere",stem:"ere",confidence:.92,type:"dictionary"}],Gl=[{ending:"endo",stem:"ire",confidence:.85,type:"gerund"},{ending:"ito",stem:"ire",confidence:.85,type:"participle"},{ending:"ita",stem:"ire",confidence:.85,type:"participle"},{ending:"iti",stem:"ire",confidence:.85,type:"participle"},{ending:"ite",stem:"ire",confidence:.85,type:"participle"},{ending:"o",stem:"ire",confidence:.7,type:"present"},{ending:"i",stem:"ire",confidence:.7,type:"present"},{ending:"e",stem:"ire",confidence:.7,type:"present"},{ending:"iamo",stem:"ire",confidence:.85,type:"present"},{ending:"ite",stem:"ire",confidence:.85,type:"present"},{ending:"ono",stem:"ire",confidence:.78,type:"present"},{ending:"isco",stem:"ire",confidence:.85,type:"present"},{ending:"isci",stem:"ire",confidence:.85,type:"present"},{ending:"isce",stem:"ire",confidence:.85,type:"present"},{ending:"iscono",stem:"ire",confidence:.88,type:"present"},{ending:"ivo",stem:"ire",confidence:.88,type:"past"},{ending:"ivi",stem:"ire",confidence:.88,type:"past"},{ending:"iva",stem:"ire",confidence:.88,type:"past"},{ending:"ivamo",stem:"ire",confidence:.88,type:"past"},{ending:"ivate",stem:"ire",confidence:.88,type:"past"},{ending:"ivano",stem:"ire",confidence:.88,type:"past"},{ending:"ii",stem:"ire",confidence:.85,type:"past"},{ending:"isti",stem:"ire",confidence:.88,type:"past"},{ending:"\u00ec",stem:"ire",confidence:.85,type:"past"},{ending:"immo",stem:"ire",confidence:.88,type:"past"},{ending:"iste",stem:"ire",confidence:.88,type:"past"},{ending:"irono",stem:"ire",confidence:.88,type:"past"},{ending:"ire",stem:"ire",confidence:.92,type:"dictionary"}],Zl=[...Hl,...Ul,...Gl].sort((e,t)=>t.ending.length-e.ending.length),new(Yl=class{constructor(){this.language="it"}isNormalizable(e){return e.length>=3&&function(e){const t=e.toLowerCase();if(t.endsWith("are")||t.endsWith("ere")||t.endsWith("ire"))return!0;if(t.endsWith("ando")||t.endsWith("endo"))return!0;if(t.endsWith("ato")||t.endsWith("uto")||t.endsWith("ito"))return!0;if(t.endsWith("arsi")||t.endsWith("ersi")||t.endsWith("irsi"))return!0;for(const t of e)if(Ql(t))return!0;return!1}(e)}normalize(e){const t=e.toLowerCase();if((t.endsWith("are")||t.endsWith("ere")||t.endsWith("ire"))&&!Fl.some(e=>t.endsWith(e+"are")||t.endsWith(e+"ere")||t.endsWith(e+"ire")))return y(e);const r=this.tryReflexiveNormalization(t);if(r)return r;const i=this.tryConjugationNormalization(t);return i||y(e)}tryReflexiveNormalization(e){for(const t of Fl)if(e.endsWith(t)){const r=e.slice(0,-t.length);if(r.endsWith("ar")||r.endsWith("er")||r.endsWith("ir")){return u(r+"e",.88,{removedSuffixes:[t],conjugationType:"reflexive"})}if(r.endsWith("are")||r.endsWith("ere")||r.endsWith("ire"))return u(r,.88,{removedSuffixes:[t],conjugationType:"reflexive"});const i=this.tryConjugationNormalization(r);if(i&&i.stem!==r)return u(i.stem,.95*i.confidence,{removedSuffixes:[t,...i.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}tryConjugationNormalization(e){for(const t of Zl)if(e.endsWith(t.ending)){const r=e.slice(0,-t.ending.length);if(2>r.length)continue;return u(r+t.stem,t.confidence,{removedSuffixes:[t.ending],conjugationType:t.type})}return null}})}});var rp,ip,ap,np,op=b({"src/tokenizers/extractors/romance-language-keyword.ts"(){Jl=class{constructor(e,t,r){this.name=e;const i=(a=t,{isLetter:e=>a.test(e),isIdentifierChar:e=>/[0-9]/.test(e)||a.test(e)});var a;this.isLetter=i.isLetter,this.isIdentifierChar=i.isIdentifierChar,this.prepositions=r}setContext(e){this.context=e}canExtract(e,t){return this.isLetter(e[t])}extract(e,t){if(!this.context)throw Error(this.name+": context not set");let r=t,i="";for(;e.length>r&&this.isIdentifierChar(e[r]);)i+=e[r++];if(!i)return null;const a=i.toLowerCase(),n=this.prepositions.has(a),o=this.context.lookupKeyword(a),s=o&&o.normalized!==o.native?o.normalized:void 0;let l;if(!o&&this.context.normalizer){const e=this.context.normalizer.normalize(i);if(e.stem!==i&&e.confidence>=.7){const t=this.context.lookupKeyword(e.stem);t&&(l=t.normalized)}}return{value:i,length:r-t,metadata:{normalized:s||l,isPreposition:n}}}},ep=new Set(["in","a","di","da","con","su","per","tra","fra","dopo","prima","dentro","fuori","sopra","sotto","al","allo","alla","ai","agli","alle","del","dello","della","dei","degli","delle","dal","dallo","dalla","dai","dagli","dalle","nel","nello","nella","nei","negli","nelle","sul","sullo","sulla","sui","sugli","sulle"])}}),sp={};x(sp,{ItalianTokenizer:()=>ap,italianTokenizer:()=>np});var lp,pp=b({"src/tokenizers/italian.ts"(){zi(),tp(),ur(),xi(),Vn(),op(),rp=new Set(["in","a","di","da","con","su","per","tra","fra","dopo","prima","dentro","fuori","sopra","sotto","al","allo","alla","ai","agli","alle","del","dello","della","dei","degli","delle","dal","dallo","dalla","dai","dagli","dalle","nel","nello","nella","nei","negli","nelle","sul","sullo","sulla","sui","sugli","sulle"]),ip=[{native:"vero",normalized:"true"},{native:"falso",normalized:"false"},{native:"nullo",normalized:"null"},{native:"indefinito",normalized:"undefined"},{native:"primo",normalized:"first"},{native:"prima",normalized:"first"},{native:"ultimo",normalized:"last"},{native:"ultima",normalized:"last"},{native:"prossimo",normalized:"next"},{native:"successivo",normalized:"next"},{native:"precedente",normalized:"previous"},{native:"vicino",normalized:"closest"},{native:"padre",normalized:"parent"},{native:"clic",normalized:"click"},{native:"click",normalized:"click"},{native:"fare clic",normalized:"click"},{native:"input",normalized:"input"},{native:"cambio",normalized:"change"},{native:"invio",normalized:"submit"},{native:"tasto gi\u00f9",normalized:"keydown"},{native:"tasto su",normalized:"keyup"},{native:"mouse sopra",normalized:"mouseover"},{native:"mouse fuori",normalized:"mouseout"},{native:"fuoco",normalized:"focus"},{native:"sfuocatura",normalized:"blur"},{native:"caricamento",normalized:"load"},{native:"scorrimento",normalized:"scroll"},{native:"io",normalized:"me"},{native:"me",normalized:"me"},{native:"destinazione",normalized:"target"},{native:"secondo",normalized:"s"},{native:"secondi",normalized:"s"},{native:"millisecondo",normalized:"ms"},{native:"millisecondi",normalized:"ms"},{native:"minuto",normalized:"m"},{native:"minuti",normalized:"m"},{native:"ora",normalized:"h"},{native:"ore",normalized:"h"},{native:"fino a",normalized:"until"},{native:"prima di",normalized:"before"},{native:"dopo di",normalized:"after"},{native:"dentro di",normalized:"into"},{native:"fuori di",normalized:"out"},{native:"aggiungere",normalized:"add"},{native:"aggiungi",normalized:"add"},{native:"rimuovi",normalized:"remove"},{native:"elimina",normalized:"remove"},{native:"togli",normalized:"remove"},{native:"metti",normalized:"put"},{native:"inserisci",normalized:"put"},{native:"prendi",normalized:"take"},{native:"fai",normalized:"make"},{native:"crea",normalized:"make"},{native:"clona",normalized:"clone"},{native:"copia",normalized:"clone"},{native:"imposta",normalized:"set"},{native:"ottieni",normalized:"get"},{native:"incrementa",normalized:"increment"},{native:"aumenta",normalized:"increment"},{native:"decrementa",normalized:"decrement"},{native:"diminuisci",normalized:"decrement"},{native:"registra",normalized:"log"},{native:"mostra",normalized:"show"},{native:"visualizza",normalized:"show"},{native:"nascondi",normalized:"hide"},{native:"anima",normalized:"transition"},{native:"scatena",normalized:"trigger"},{native:"attiva",normalized:"trigger"},{native:"invia",normalized:"send"},{native:"focalizza",normalized:"focus"},{native:"sfuoca",normalized:"blur"},{native:"vai",normalized:"go"},{native:"naviga",normalized:"go"},{native:"aspetta",normalized:"wait"},{native:"attendi",normalized:"wait"},{native:"recupera",normalized:"fetch"},{native:"stabilizza",normalized:"settle"},{native:"ripeti",normalized:"repeat"},{native:"continua",normalized:"continue"},{native:"ferma",normalized:"halt"},{native:"lancia",normalized:"throw"},{native:"chiama",normalized:"call"},{native:"ritorna",normalized:"return"},{native:"inizializza",normalized:"init"},{native:"installa",normalized:"install"},{native:"misura",normalized:"measure"},{native:"e",normalized:"and"},{native:"o",normalized:"or"},{native:"non",normalized:"not"},{native:"\u00e8",normalized:"is"},{native:"esiste",normalized:"exists"},{native:"vuoto",normalized:"empty"},{native:"toggle",normalized:"toggle"},{native:"di",normalized:"tell"},{native:"inclusivo",normalized:"inclusive"},{native:"esclusivo",normalized:"exclusive"},{native:"caratteri",normalized:"characters"},{native:"casuale",normalized:"random"}],np=new(ap=class extends p{constructor(){super(),this.language="it",this.direction="ltr",this.initializeKeywordsFromProfile(pr,ip),this.setNormalizer(new Yl),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new Jl("italian-keyword",/[a-zA-Z\u00e0\u00e8\u00e9\u00ec\u00ed\u00ee\u00f2\u00f3\u00f9\u00fa\u00c0\u00c8\u00c9\u00cc\u00cd\u00ce\u00d2\u00d3\u00d9\u00da]/,ep)]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){const t=e.toLowerCase();return rp.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});function mp(e){return"literal"===e.kind||"selector"===e.kind||("reference"===e.kind||("identifier"===e.kind?/^[:$]?[\p{L}_][\p{L}\p{M}\p{N}_]*$/u.test(e.value):"keyword"===e.kind&&lp.has((e.normalized??"").toLowerCase())))}function cp(e,r,i){const a=e.tokens;if(!a.some(e=>e.value===r))return e;const n=[];return a.forEach((e,t)=>{if(e.value!==r||!function(e){return!!e&&(/^[([-]$/.test(e.value)||mp(e))}(a[t+1])||function(e){return!!e&&(")"===e.value||"]"===e.value||mp(e))}(a[t-1]))return void n.push(e);const o=r.indexOf(" ");for(const[t,a]of[[r.slice(0,o),0],[r.slice(o+1),o+1]]){const r=e.position.start+a;for(const e of i(t))n.push({...e,position:{start:e.position.start+r,end:e.position.end+r}})}}),new t(n,e.language)}var dp,up,yp,vp=b({"src/tokenizers/if-not-split.ts"(){bt(),lp=new Set(["true","false","null","undefined","me","my","it","its","you","your","result","event","target","body"])}}),fp={};x(fp,{VietnameseTokenizer:()=>up,vietnameseTokenizer:()=>yp});var hp,gp,kp,zp,wp,bp,xp=b({"src/tokenizers/vietnamese.ts"(){vp(),zi(),Qr(),wa(),xi(),Vn(),dp=[{native:"\u0111\u00fang",normalized:"true"},{native:"sai",normalized:"false"},{native:"null",normalized:"null"},{native:"r\u1ed7ng",normalized:"null"},{native:"kh\u00f4ng x\u00e1c \u0111\u1ecbnh",normalized:"undefined"},{native:"\u0111\u1ea7u ti\u00ean",normalized:"first"},{native:"cu\u1ed1i c\u00f9ng",normalized:"last"},{native:"ti\u1ebfp theo",normalized:"next"},{native:"tr\u01b0\u1edbc \u0111\u00f3",normalized:"previous"},{native:"g\u1ea7n nh\u1ea5t",normalized:"closest"},{native:"cha",normalized:"parent"},{native:"nh\u1ea5p",normalized:"click"},{native:"nh\u1ea5p chu\u1ed9t",normalized:"click"},{native:"click",normalized:"click"},{native:"nh\u1ea5p \u0111\u00fap",normalized:"dblclick"},{native:"nh\u1eadp",normalized:"input"},{native:"thay \u0111\u1ed5i",normalized:"change"},{native:"g\u1eedi bi\u1ec3u m\u1eabu",normalized:"submit"},{native:"ph\u00edm xu\u1ed1ng",normalized:"keydown"},{native:"ph\u00edm l\u00ean",normalized:"keyup"},{native:"chu\u1ed9t v\u00e0o",normalized:"mouseover"},{native:"chu\u1ed9t ra",normalized:"mouseout"},{native:"t\u1ea3i trang",normalized:"load"},{native:"cu\u1ed9n",normalized:"scroll"},{native:"c\u1ee7a t\u00f4i",normalized:"my"},{native:"c\u1ee7a n\u00f3",normalized:"its"},{native:"gi\u00e2y",normalized:"s"},{native:"mili gi\u00e2y",normalized:"ms"},{native:"ph\u00fat",normalized:"m"},{native:"gi\u1edd",normalized:"h"},{native:"th\u00eam v\u00e0o cu\u1ed1i",normalized:"append"},{native:"nh\u00e2n b\u1ea3n",normalized:"clone"},{native:"t\u1ea1o ra",normalized:"make"},{native:"\u0111\u1eb7t gi\u00e1 tr\u1ecb",normalized:"set"},{native:"gi\u00e1 tr\u1ecb",normalized:"value"},{native:"ghi nh\u1eadt k\u00fd",normalized:"log"},{native:"chuy\u1ec3n t\u1edbi",normalized:"go"},{native:"ng\u01b0\u1ee3c l\u1ea1i",normalized:"else"},{native:"l\u1eb7p",normalized:"repeat"},{native:"ho\u1eb7c",normalized:"or"},{native:"kh\u00f4ng",normalized:"not"},{native:"l\u00e0",normalized:"is"},{native:"t\u1ed3n t\u1ea1i",normalized:"exists"},{native:"javascript",normalized:"js"},{native:"bao g\u1ed3m",normalized:"inclusive"},{native:"lo\u1ea1i tr\u1eeb",normalized:"exclusive"},{native:"k\u00fd t\u1ef1",normalized:"characters"},{native:"ng\u1eabu nhi\u00ean",normalized:"random"}],yp=new(up=class extends p{constructor(){super(),this.language="vi",this.direction="ltr",this.initializeKeywordsFromProfile(Gr,dp),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new na]),this.registerExtractor(new vi),this.registerExtractor(new fi)}tokenize(e){return cp(super.tokenize(e),"n\u1ebfu kh\u00f4ng",e=>super.tokenize(e).tokens)}classifyToken(e){const t=e.toLowerCase();return this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}}),Tp=b({"src/tokenizers/morphology/polish-normalizer.ts"(){Jn(),hp=new Map([["prze\u0142\u0105cz","prze\u0142\u0105cza\u0107"],["przelacz","przelaczac"],["dodaj","dodawa\u0107"],["usu\u0144","usuwa\u0107"],["usun","usuwac"],["umie\u015b\u0107","umieszcza\u0107"],["umiesc","umieszczac"],["wstaw","wstawia\u0107"],["ustaw","ustawia\u0107"],["pobierz","pobiera\u0107"],["we\u017a","bra\u0107"],["wez","brac"],["zwi\u0119ksz","zwi\u0119ksza\u0107"],["zwieksz","zwiekszac"],["zmniejsz","zmniejsza\u0107"],["poka\u017c","pokazywa\u0107"],["pokaz","pokazywac"],["ukryj","ukrywa\u0107"],["schowaj","schowywa\u0107"],["czekaj","czeka\u0107"],["poczekaj","poczeka\u0107"],["id\u017a","i\u015b\u0107"],["idz","isc"],["przejd\u017a","przej\u015b\u0107"],["przejdz","przejsc"],["wywo\u0142aj","wywo\u0142ywa\u0107"],["wywolaj","wywolywac"],["wy\u015blij","wysy\u0142a\u0107"],["wyslij","wysylac"],["loguj","logowa\u0107"],["wypisz","wypisywa\u0107"],["sklonuj","sklonowa\u0107"],["kopiuj","kopiowa\u0107"],["zamie\u0144","zamienia\u0107"],["zamien","zamieniac"],["utw\u00f3rz","tworzy\u0107"],["utworz","tworzyc"],["stw\u00f3rz","stwarza\u0107"],["stworz","stwarzac"],["skup","skupia\u0107"],["rozmyj","rozmywa\u0107"],["nawiguj","nawigowa\u0107"],["za\u0142aduj","\u0142adowa\u0107"],["zaladuj","ladowac"],["powt\u00f3rz","powtarza\u0107"],["powtorz","powtarzac"],["kontynuuj","kontynuowa\u0107"],["zatrzymaj","zatrzymywa\u0107"],["przerwij","przerywa\u0107"],["rzu\u0107","rzuca\u0107"],["rzuc","rzucac"],["zwr\u00f3\u0107","zwraca\u0107"],["zwroc","zwracac"],["inicjuj","inicjowa\u0107"],["zainstaluj","instalowa\u0107"],["zmierz","mierzy\u0107"]]),new(gp=class{constructor(){this.language="pl"}isNormalizable(e){return e.length>=3&&/[a-zA-Z\u0105\u0119\u0107\u0144\u00f3\u015b\u017a\u017c\u0142\u0104\u0118\u0106\u0143\u00d3\u015a\u0179\u017b\u0141]/.test(e)}normalize(e){const t=e.toLowerCase();if(this.isInfinitive(t))return y(t);const r=this.tryImperativeNormalization(t);if(r)return r;const i=this.tryPastTenseNormalization(t);if(i)return i;const a=this.tryPresentTenseNormalization(t);return a||y(t)}isInfinitive(e){return["a\u0107","e\u0107","i\u0107","y\u0107","\u0105\u0107","owa\u0107","iwa\u0107","ywa\u0107"].some(t=>e.endsWith(t))}tryImperativeNormalization(e){return hp.has(e)?u(hp.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):e.endsWith("aj")?u(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["aj"],conjugationType:"imperative"}):e.endsWith("uj")?u(e.slice(0,-2)+"owa\u0107",.8,{removedSuffixes:["uj"],conjugationType:"imperative"}):e.endsWith("ij")?u(e.slice(0,-2)+"i\u0107",.75,{removedSuffixes:["ij"],conjugationType:"imperative"}):null}tryPresentTenseNormalization(e){return e.endsWith("uj\u0119")||e.endsWith("uje")?u(e.slice(0,-3)+"owa\u0107",.85,{removedSuffixes:["uj\u0119"],conjugationType:"present"}):e.endsWith("am")&&e.length>3?u(e.slice(0,-2)+"a\u0107",.8,{removedSuffixes:["am"],conjugationType:"present"}):e.endsWith("em")&&e.length>3?u(e.slice(0,-2)+"e\u0107",.75,{removedSuffixes:["em"],conjugationType:"present"}):e.endsWith("\u0119")&&e.length>2?u(e.slice(0,-1)+"a\u0107",.7,{removedSuffixes:["\u0119"],conjugationType:"present"}):null}tryPastTenseNormalization(e){if(e.endsWith("a\u0142em")||e.endsWith("a\u0142am"))return u(e.slice(0,-4)+"a\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("a\u0142")||e.endsWith("a\u0142a")){const t=e.endsWith("a\u0142a")?3:2;return u(e.slice(0,-t)+"a\u0107",.8,{removedSuffixes:[e.slice(-t)],conjugationType:"past"})}if(e.endsWith("i\u0142em")||e.endsWith("i\u0142am")||e.endsWith("ilem")||e.endsWith("ilam"))return u(e.slice(0,-4)+"i\u0107",.85,{removedSuffixes:[e.slice(-4)],conjugationType:"past"});if(e.endsWith("i\u0142")||e.endsWith("i\u0142a")||e.endsWith("il")||e.endsWith("ila")){const t=e.endsWith("i\u0142a")||e.endsWith("ila")?3:2;return u(e.slice(0,-t)+"i\u0107",.8,{removedSuffixes:[e.slice(-t)],conjugationType:"past"})}return null}})}}),Sp={};x(Sp,{PolishTokenizer:()=>wp,polishTokenizer:()=>bp});var jp,Ep,Lp=b({"src/tokenizers/polish.ts"(){zi(),Sr(),Tp(),xi(),Vn(),nn(),kp=new Set(["do","od","z","ze","w","we","na","po","pod","przed","za","nad","mi\u0119dzy","miedzy","przez","dla","bez","o","przy","u","wed\u0142ug","wedlug","mimo","w\u015br\u00f3d","wsrod","obok","poza","wok\u00f3\u0142","wokol","przeciw","ku"]),zp=[{native:"prawda",normalized:"true"},{native:"fa\u0142sz",normalized:"false"},{native:"falsz",normalized:"false"},{native:"null",normalized:"null"},{native:"nieokre\u015blony",normalized:"undefined"},{native:"nieokreslony",normalized:"undefined"},{native:"r\u00f3wna si\u0119",normalized:"equals"},{native:"pierwszy",normalized:"first"},{native:"pierwsza",normalized:"first"},{native:"pierwsze",normalized:"first"},{native:"ostatni",normalized:"last"},{native:"ostatnia",normalized:"last"},{native:"ostatnie",normalized:"last"},{native:"nast\u0119pny",normalized:"next"},{native:"nastepny",normalized:"next"},{native:"poprzedni",normalized:"previous"},{native:"najbli\u017cszy",normalized:"closest"},{native:"najblizszy",normalized:"closest"},{native:"rodzic",normalized:"parent"},{native:"klikni\u0119cie",normalized:"click"},{native:"klikniecie",normalized:"click"},{native:"klik",normalized:"click"},{native:"click",normalized:"click"},{native:"zmiana",normalized:"change"},{native:"wys\u0142anie",normalized:"submit"},{native:"wyslanie",normalized:"submit"},{native:"naci\u015bni\u0119cie",normalized:"keydown"},{native:"nacisniecie",normalized:"keydown"},{native:"klawisz",normalized:"keydown"},{native:"najechanie",normalized:"mouseover"},{native:"zjechanie",normalized:"mouseout"},{native:"rozmycie",normalized:"blur"},{native:"za\u0142adowanie",normalized:"load"},{native:"zaladowanie",normalized:"load"},{native:"przewini\u0119cie",normalized:"scroll"},{native:"przewiniecie",normalized:"scroll"},{native:"input",normalized:"input"},{native:"m\u00f3j",normalized:"my"},{native:"moj",normalized:"my"},{native:"sekunda",normalized:"s"},{native:"sekundy",normalized:"s"},{native:"sekund",normalized:"s"},{native:"milisekunda",normalized:"ms"},{native:"milisekundy",normalized:"ms"},{native:"milisekund",normalized:"ms"},{native:"minuta",normalized:"m"},{native:"minuty",normalized:"m"},{native:"minut",normalized:"m"},{native:"godzina",normalized:"h"},{native:"godziny",normalized:"h"},{native:"godzin",normalized:"h"},{native:"po\u0142\u00f3\u017c",normalized:"put"},{native:"poloz",normalized:"put"},{native:"lub",normalized:"or"},{native:"nie",normalized:"not"},{native:"jest",normalized:"is"},{native:"istnieje",normalized:"exists"},{native:"pusty",normalized:"empty"},{native:"puste",normalized:"empty"},{native:"w\u0142\u0105cznie",normalized:"inclusive"},{native:"wy\u0142\u0105cznie",normalized:"exclusive"},{native:"znaki",normalized:"characters"},{native:"losowy",normalized:"random"}],bp=new(wp=class extends p{constructor(){super(),this.language="pl",this.direction="ltr",this.initializeKeywordsFromProfile(wr,zp),this.setNormalizer(new gp),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new Qa]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){const t=e.toLowerCase();return kp.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});function Cp(e){return/[\u0430-\u044f\u0410-\u042f\u0451\u0401]/.test(e)}var Pp,_p,Wp,Ap,qp=b({"src/tokenizers/morphology/russian-normalizer.ts"(){Jn(),jp=new Map([["\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438","\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c"],["\u0434\u043e\u0431\u0430\u0432\u044c","\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c"],["\u0443\u0434\u0430\u043b\u0438","\u0443\u0434\u0430\u043b\u0438\u0442\u044c"],["\u0443\u0431\u0435\u0440\u0438","\u0443\u0431\u0440\u0430\u0442\u044c"],["\u043f\u043e\u043b\u043e\u0436\u0438","\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c"],["\u043f\u043e\u043c\u0435\u0441\u0442\u0438","\u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c"],["\u0432\u0441\u0442\u0430\u0432\u044c","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c"],["\u0432\u043e\u0437\u044c\u043c\u0438","\u0432\u0437\u044f\u0442\u044c"],["\u0441\u043e\u0437\u0434\u0430\u0439","\u0441\u043e\u0437\u0434\u0430\u0442\u044c"],["\u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439","\u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c"],["\u043f\u043e\u043c\u0435\u043d\u044f\u0439","\u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c"],["\u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0439","\u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c"],["\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438","\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u044c"],["\u043f\u043e\u043b\u0443\u0447\u0438","\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c"],["\u0443\u0432\u0435\u043b\u0438\u0447\u044c","\u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c"],["\u0443\u043c\u0435\u043d\u044c\u0448\u0438","\u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c"],["\u0437\u0430\u043f\u0438\u0448\u0438","\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c"],["\u043f\u043e\u043a\u0430\u0436\u0438","\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c"],["\u0441\u043a\u0440\u043e\u0439","\u0441\u043a\u0440\u044b\u0442\u044c"],["\u0441\u043f\u0440\u044f\u0447\u044c","\u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c"],["\u0430\u043d\u0438\u043c\u0438\u0440\u0443\u0439","\u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c"],["\u0432\u044b\u0437\u043e\u0432\u0438","\u0432\u044b\u0437\u0432\u0430\u0442\u044c"],["\u043e\u0442\u043f\u0440\u0430\u0432\u044c","\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c"],["\u0441\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u0439","\u0441\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c"],["\u0440\u0430\u0437\u043c\u043e\u0439","\u0440\u0430\u0437\u043c\u044b\u0442\u044c"],["\u043f\u0435\u0440\u0435\u0439\u0434\u0438","\u043f\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0438\u0434\u0438","\u0438\u0434\u0442\u0438"],["\u0436\u0434\u0438","\u0436\u0434\u0430\u0442\u044c"],["\u043f\u043e\u0434\u043e\u0436\u0434\u0438","\u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c"],["\u0437\u0430\u0433\u0440\u0443\u0437\u0438","\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c"],["\u043f\u043e\u0432\u0442\u043e\u0440\u0438","\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"],["\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438","\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c"],["\u0431\u0440\u043e\u0441\u044c","\u0431\u0440\u043e\u0441\u0438\u0442\u044c"],["\u0432\u0435\u0440\u043d\u0438","\u0432\u0435\u0440\u043d\u0443\u0442\u044c"],["\u0441\u043a\u0430\u0436\u0438","\u0441\u043a\u0430\u0437\u0430\u0442\u044c"],["\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0439","\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c"],["\u0438\u0437\u043c\u0435\u0440\u044c","\u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c"]]),new(Ep=class{constructor(){this.language="ru"}isNormalizable(e){return e.length>=3&&function(e){for(const t of e)if(Cp(t))return!0;return!1}(e)}normalize(e){const t=e.toLowerCase();if(t.endsWith("\u0441\u044f")||t.endsWith("\u0441\u044c")){const e=this.tryReflexiveNormalization(t);if(e)return e}if(t.endsWith("\u0442\u044c")||t.endsWith("\u0442\u0438")||t.endsWith("\u0447\u044c"))return y(e);const r=this.tryImperativeLookup(t);if(r)return r;const i=this.tryPastTenseNormalization(t);if(i)return i;const a=this.tryPresentTenseNormalization(t);if(a)return a;const n=this.tryGenericImperativeNormalization(t);return n||y(e)}tryReflexiveNormalization(e){e.endsWith("\u0441\u044f");const t=e.slice(0,-2);if(e.endsWith("\u0442\u044c\u0441\u044f")||e.endsWith("\u0442\u0438\u0441\u044c")||e.endsWith("\u0447\u044c\u0441\u044f"))return y(e);const r=this.normalizeNonReflexive(t);if(1>r.confidence){const e=r.stem.endsWith("\u0442\u044c")?r.stem.slice(0,-2)+"\u0442\u044c\u0441\u044f":r.stem+"\u0441\u044f";return u(e,.95*r.confidence,{removedSuffixes:["\u0441\u044f",...r.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u044c")||e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u044c"))return y(e);const t=this.tryImperativeLookup(e);if(t)return t;const r=this.tryPastTenseNormalization(e);if(r)return r;const i=this.tryPresentTenseNormalization(e);if(i)return i;const a=this.tryGenericImperativeNormalization(e);return a||y(e)}tryImperativeLookup(e){return jp.has(e)?u(jp.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?u(e.slice(0,-3)+"\u0442\u044c",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0438\u0442\u0435")&&e.length>5?u(e.slice(0,-3)+"\u0438\u0442\u044c",.8,{removedSuffixes:["\u0438\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?u(e.slice(0,-1)+"\u0442\u044c",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?u(e+"\u0442\u044c",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u044c"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043b\u0430")&&e.length>4?u(e.slice(0,-3)+"\u0430\u0442\u044c",.85,{removedSuffixes:["\u0430\u043b\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043b\u0430")&&e.length>4?u(e.slice(0,-3)+"\u0438\u0442\u044c",.85,{removedSuffixes:["\u0438\u043b\u0430"],conjugationType:"past"}):e.endsWith("\u0435\u043b\u043e")&&e.length>4?u(e.slice(0,-3)+"\u0435\u0442\u044c",.82,{removedSuffixes:["\u0435\u043b\u043e"],conjugationType:"past"}):e.endsWith("\u0430\u0431\u043e")&&e.length>4?u(e.slice(0,-3)+"\u0430\u0442\u044c",.82,{removedSuffixes:["\u0430\u0431\u043e"],conjugationType:"past"}):e.endsWith("\u0430\u043b\u0438")&&e.length>4?u(e.slice(0,-3)+"\u0430\u0442\u044c",.85,{removedSuffixes:["\u0430\u043b\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043b\u0438")&&e.length>4?u(e.slice(0,-3)+"\u0438\u0442\u044c",.85,{removedSuffixes:["\u0438\u043b\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u043b")&&e.length>3?u(e.slice(0,-2)+"\u0430\u0442\u044c",.82,{removedSuffixes:["\u0430\u043b"],conjugationType:"past"}):e.endsWith("\u0438\u043b")&&e.length>3?u(e.slice(0,-2)+"\u0438\u0442\u044c",.82,{removedSuffixes:["\u0438\u043b"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448\u044c")&&e.length>4?u(e.slice(0,-3)+"\u0438\u0442\u044c",.8,{removedSuffixes:["\u0438\u0448\u044c"],conjugationType:"present"}):e.endsWith("\u0438\u0442")&&e.length>3?u(e.slice(0,-2)+"\u0438\u0442\u044c",.78,{removedSuffixes:["\u0438\u0442"],conjugationType:"present"}):e.endsWith("\u0438\u043c")&&e.length>3?u(e.slice(0,-2)+"\u0438\u0442\u044c",.78,{removedSuffixes:["\u0438\u043c"],conjugationType:"present"}):e.endsWith("\u044f\u0442")&&e.length>3?u(e.slice(0,-2)+"\u0438\u0442\u044c",.78,{removedSuffixes:["\u044f\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u0448\u044c")&&e.length>4?u(e.slice(0,-3)+"\u0430\u0442\u044c",.75,{removedSuffixes:["\u0435\u0448\u044c"],conjugationType:"present"}):e.endsWith("\u0435\u0442")&&e.length>3?u(e.slice(0,-2)+"\u0430\u0442\u044c",.72,{removedSuffixes:["\u0435\u0442"],conjugationType:"present"}):e.endsWith("\u0435\u043c")&&e.length>3?u(e.slice(0,-2)+"\u0430\u0442\u044c",.72,{removedSuffixes:["\u0435\u043c"],conjugationType:"present"}):e.endsWith("\u044e\u0442")&&e.length>3?u(e.slice(0,-2)+"\u0430\u0442\u044c",.75,{removedSuffixes:["\u044e\u0442"],conjugationType:"present"}):e.endsWith("\u0443\u0442")&&e.length>3?u(e.slice(0,-2)+"\u0430\u0442\u044c",.72,{removedSuffixes:["\u0443\u0442"],conjugationType:"present"}):null}})}}),Mp={};x(Mp,{RussianTokenizer:()=>Wp,russianTokenizer:()=>Ap});var Op,Rp,Np=b({"src/tokenizers/russian.ts"(){zi(),qp(),qr(),xi(),Vn(),ja(),Nn(),Pp=new Set(["\u0432","\u0432\u043e","\u043d\u0430","\u0441","\u0441\u043e","\u043a","\u043a\u043e","\u043e","\u043e\u0431","\u043e\u0431\u043e","\u0443","\u043e\u0442","\u0434\u043e","\u0438\u0437","\u0437\u0430","\u043f\u043e","\u043f\u043e\u0434","\u043d\u0430\u0434","\u043f\u0435\u0440\u0435\u0434","\u043f\u0435\u0440\u0435\u0434\u043e","\u043c\u0435\u0436\u0434\u0443","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u0434\u043b\u044f","\u043f\u0440\u0438","\u043f\u0440\u043e","\u043f\u043e\u0441\u043b\u0435","\u0432\u043e\u043a\u0440\u0443\u0433","\u043f\u0440\u043e\u0442\u0438\u0432","\u0432\u043c\u0435\u0441\u0442\u043e","\u043a\u0440\u043e\u043c\u0435","\u0441\u0440\u0435\u0434\u0438"]),_p=[{native:"\u043c\u044b\u0448\u044c\u0432\u043d\u0438\u0437",normalized:"mousedown"},{native:"\u043c\u044b\u0448\u044c\u0432\u0432\u0435\u0440\u0445",normalized:"mouseup"},{native:"\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u0440\u0430\u0437\u043c\u0435\u0440\u0430",normalized:"resize"},{native:"\u0438\u0441\u0442\u0438\u043d\u0430",normalized:"true"},{native:"\u043f\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u043b\u043e\u0436\u044c",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e",normalized:"undefined"},{native:"\u043d\u0438\u0447\u0435\u0433\u043e",normalized:"null"},{native:"\u0441\u0435\u043a\u0443\u043d\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043a\u0443\u043d\u0434\u044b",normalized:"s"},{native:"\u0441\u0435\u043a\u0443\u043d\u0434",normalized:"s"},{native:"\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430",normalized:"ms"},{native:"\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u044b",normalized:"ms"},{native:"\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434",normalized:"ms"},{native:"\u043c\u0438\u043d\u0443\u0442\u0430",normalized:"m"},{native:"\u043c\u0438\u043d\u0443\u0442\u044b",normalized:"m"},{native:"\u043c\u0438\u043d\u0443\u0442",normalized:"m"},{native:"\u0447\u0430\u0441",normalized:"h"},{native:"\u0447\u0430\u0441\u0430",normalized:"h"},{native:"\u0447\u0430\u0441\u043e\u0432",normalized:"h"},{native:"\u043f\u0435\u0440\u0432\u044b\u0439",normalized:"first"},{native:"\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439",normalized:"last"},{native:"\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439",normalized:"next"},{native:"\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439",normalized:"previous"},{native:"\u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439",normalized:"closest"},{native:"\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c",normalized:"parent"},{native:"\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439",normalized:"random"},{native:"\u043f\u0435\u0440\u0432\u0430\u044f",normalized:"first"},{native:"\u043f\u0435\u0440\u0432\u043e\u0435",normalized:"first"},{native:"\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f",normalized:"last"},{native:"\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435",normalized:"last"},{native:"\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f",normalized:"next"},{native:"\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f",normalized:"previous"},{native:"\u043f\u0443\u0441\u0442\u0430\u044f",normalized:"empty"},{native:"\u043f\u0443\u0441\u0442\u043e\u0435",normalized:"empty"},{native:"\u043c\u043e\u044f",normalized:"my"},{native:"\u043c\u043e\u0451",normalized:"my"},{native:"\u043c\u043e\u0438",normalized:"my"},{native:"\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e",normalized:"inclusive"},{native:"\u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e",normalized:"exclusive"},{native:"\u0441\u0438\u043c\u0432\u043e\u043b\u044b",normalized:"characters"}],Ap=new(Wp=class extends p{constructor(){super(),this.language="ru",this.direction="ltr",this.initializeKeywordsFromProfile(Pr,_p),this.setNormalizer(new Ep),this.registerExtractors([...In(),new ga("russian-keyword",/[a-zA-Z\u0430-\u044f\u0410-\u042f\u0451\u0401]/,ka),new i,new a,new Mn,new vi,new fi])}classifyToken(e){const t=e.toLowerCase();return Pp.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});var $p,Ip,Kp,Vp,Bp=b({"src/tokenizers/morphology/ukrainian-normalizer.ts"(){Jn(),Op=new Map([["\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0438","\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0443\u0442\u0438"],["\u0434\u043e\u0434\u0430\u0439","\u0434\u043e\u0434\u0430\u0442\u0438"],["\u0432\u0438\u0434\u0430\u043b\u0438","\u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438"],["\u043f\u0440\u0438\u0431\u0435\u0440\u0438","\u043f\u0440\u0438\u0431\u0440\u0430\u0442\u0438"],["\u043f\u043e\u043a\u043b\u0430\u0434\u0438","\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438"],["\u043f\u043e\u043c\u0456\u0441\u0442\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438\u0442\u0438"],["\u0432\u0441\u0442\u0430\u0432","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438"],["\u0432\u0456\u0437\u044c\u043c\u0438","\u0432\u0437\u044f\u0442\u0438"],["\u0441\u0442\u0432\u043e\u0440\u0438","\u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438"],["\u043a\u043b\u043e\u043d\u0443\u0439","\u043a\u043b\u043e\u043d\u0443\u0432\u0430\u0442\u0438"],["\u043f\u043e\u043c\u0456\u043d\u044f\u0439","\u043f\u043e\u043c\u0456\u043d\u044f\u0442\u0438"],["\u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0443\u0439","\u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438","\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438"],["\u0437\u0430\u0434\u0430\u0439","\u0437\u0430\u0434\u0430\u0442\u0438"],["\u043e\u0442\u0440\u0438\u043c\u0430\u0439","\u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438"],["\u0437\u0431\u0456\u043b\u044c\u0448","\u0437\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438"],["\u0437\u043c\u0435\u043d\u0448","\u0437\u043c\u0435\u043d\u0448\u0438\u0442\u0438"],["\u0437\u0430\u043f\u0438\u0448\u0438","\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u0438"],["\u043f\u043e\u043a\u0430\u0436\u0438","\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438"],["\u0441\u0445\u043e\u0432\u0430\u0439","\u0441\u0445\u043e\u0432\u0430\u0442\u0438"],["\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0439","\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438"],["\u0430\u043d\u0456\u043c\u0443\u0439","\u0430\u043d\u0456\u043c\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043a\u043b\u0438\u0447","\u0432\u0438\u043a\u043b\u0438\u043a\u0430\u0442\u0438"],["\u043d\u0430\u0434\u0456\u0448\u043b\u0438","\u043d\u0430\u0434\u0456\u0441\u043b\u0430\u0442\u0438"],["\u0441\u0444\u043e\u043a\u0443\u0441\u0443\u0439","\u0441\u0444\u043e\u043a\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u0440\u043e\u0437\u0444\u043e\u043a\u0443\u0441\u0443\u0439","\u0440\u043e\u0437\u0444\u043e\u043a\u0443\u0441\u0443\u0432\u0430\u0442\u0438"],["\u043f\u0435\u0440\u0435\u0439\u0434\u0438","\u043f\u0435\u0440\u0435\u0439\u0442\u0438"],["\u0439\u0434\u0438","\u0439\u0442\u0438"],["\u0447\u0435\u043a\u0430\u0439","\u0447\u0435\u043a\u0430\u0442\u0438"],["\u0437\u0430\u0447\u0435\u043a\u0430\u0439","\u0437\u0430\u0447\u0435\u043a\u0430\u0442\u0438"],["\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436","\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438"],["\u043f\u043e\u0432\u0442\u043e\u0440\u0438","\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0438"],["\u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0443\u0439","\u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438"],["\u043a\u0438\u043d\u044c","\u043a\u0438\u043d\u0443\u0442\u0438"],["\u043f\u043e\u0432\u0435\u0440\u043d\u0438","\u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438"],["\u0441\u043a\u0430\u0436\u0438","\u0441\u043a\u0430\u0437\u0430\u0442\u0438"],["\u0456\u043d\u0456\u0446\u0456\u0430\u043b\u0456\u0437\u0443\u0439","\u0456\u043d\u0456\u0446\u0456\u0430\u043b\u0456\u0437\u0443\u0432\u0430\u0442\u0438"],["\u0432\u0438\u043c\u0456\u0440\u044f\u0439","\u0432\u0438\u043c\u0456\u0440\u044f\u0442\u0438"]]),new(Rp=class{constructor(){this.language="uk"}isNormalizable(e){return e.length>=3&&function(e){return/[\u0430-\u044f\u0410-\u042f\u0456\u0406\u0457\u0407\u0454\u0404\u0491\u0490\u044c\u042c']/.test(e)}(e)}normalize(e){const t=e.toLowerCase();if(t.endsWith("\u0441\u044f")||t.endsWith("\u0441\u044c")){const e=this.tryReflexiveNormalization(t);if(e)return e}if(t.endsWith("\u0442\u0438")||t.endsWith("\u0447\u0438"))return y(e);const r=this.tryImperativeLookup(t);if(r)return r;const i=this.tryPastTenseNormalization(t);if(i)return i;const a=this.tryPresentTenseNormalization(t);if(a)return a;const n=this.tryGenericImperativeNormalization(t);return n||y(e)}tryReflexiveNormalization(e){const t=e.slice(0,-2);if(e.endsWith("\u0442\u0438\u0441\u044f")||e.endsWith("\u0447\u0438\u0441\u044f"))return y(e);const r=this.normalizeNonReflexive(t);if(1>r.confidence){const e=r.stem.endsWith("\u0442\u0438")?r.stem.slice(0,-2)+"\u0442\u0438\u0441\u044f":r.stem+"\u0441\u044f";return u(e,.95*r.confidence,{removedSuffixes:["\u0441\u044f",...r.metadata?.removedSuffixes||[]],conjugationType:"reflexive"})}return null}normalizeNonReflexive(e){if(e.endsWith("\u0442\u0438")||e.endsWith("\u0447\u0438"))return y(e);const t=this.tryImperativeLookup(e);if(t)return t;const r=this.tryPastTenseNormalization(e);if(r)return r;const i=this.tryPresentTenseNormalization(e);if(i)return i;const a=this.tryGenericImperativeNormalization(e);return a||y(e)}tryImperativeLookup(e){return Op.has(e)?u(Op.get(e),.95,{removedSuffixes:["imperative"],conjugationType:"imperative"}):null}tryGenericImperativeNormalization(e){return e.endsWith("\u0439\u0442\u0435")&&e.length>5?u(e.slice(0,-3)+"\u0442\u0438",.8,{removedSuffixes:["\u0439\u0442\u0435"],conjugationType:"imperative"}):e.endsWith("\u0456\u0442\u044c")&&e.length>5?u(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0456\u0442\u044c"],conjugationType:"imperative"}):e.endsWith("\u0439")&&e.length>3?u(e.slice(0,-1)+"\u0442\u0438",.75,{removedSuffixes:["\u0439"],conjugationType:"imperative"}):e.endsWith("\u0438")&&e.length>3?u(e+"\u0442\u0438",.7,{removedSuffixes:["\u0438\u2192\u0438\u0442\u0438"],conjugationType:"imperative"}):null}tryPastTenseNormalization(e){return e.endsWith("\u0430\u043b\u0430")&&e.length>4?u(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043b\u0430"],conjugationType:"past"}):e.endsWith("\u0438\u043b\u0430")&&e.length>4?u(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043b\u0430"],conjugationType:"past"}):e.endsWith("\u0430\u043b\u0438")&&e.length>4?u(e.slice(0,-3)+"\u0430\u0442\u0438",.85,{removedSuffixes:["\u0430\u043b\u0438"],conjugationType:"past"}):e.endsWith("\u0438\u043b\u0438")&&e.length>4?u(e.slice(0,-3)+"\u0438\u0442\u0438",.85,{removedSuffixes:["\u0438\u043b\u0438"],conjugationType:"past"}):e.endsWith("\u0430\u0432")&&e.length>3?u(e.slice(0,-2)+"\u0430\u0442\u0438",.82,{removedSuffixes:["\u0430\u0432"],conjugationType:"past"}):e.endsWith("\u0438\u0432")&&e.length>3?u(e.slice(0,-2)+"\u0438\u0442\u0438",.82,{removedSuffixes:["\u0438\u0432"],conjugationType:"past"}):null}tryPresentTenseNormalization(e){return e.endsWith("\u0438\u0448")&&e.length>3?u(e.slice(0,-2)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u0448"],conjugationType:"present"}):e.endsWith("\u0438\u0442\u044c")&&e.length>4?u(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u0438\u0442\u044c"],conjugationType:"present"}):e.endsWith("\u0438\u043c\u043e")&&e.length>4?u(e.slice(0,-3)+"\u0438\u0442\u0438",.8,{removedSuffixes:["\u0438\u043c\u043e"],conjugationType:"present"}):e.endsWith("\u044f\u0442\u044c")&&e.length>4?u(e.slice(0,-3)+"\u0438\u0442\u0438",.78,{removedSuffixes:["\u044f\u0442\u044c"],conjugationType:"present"}):e.endsWith("\u0454\u0448")&&e.length>3?u(e.slice(0,-2)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u0454\u0448"],conjugationType:"present"}):e.endsWith("\u0435\u0448")&&e.length>3?u(e.slice(0,-2)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0435\u0448"],conjugationType:"present"}):e.endsWith("\u0454")&&e.length>2?u(e.slice(0,-1)+"\u0430\u0442\u0438",.72,{removedSuffixes:["\u0454"],conjugationType:"present"}):e.endsWith("\u0454\u043c\u043e")&&e.length>4?u(e.slice(0,-3)+"\u0430\u0442\u0438",.8,{removedSuffixes:["\u0454\u043c\u043e"],conjugationType:"present"}):e.endsWith("\u044e\u0442\u044c")&&e.length>4?u(e.slice(0,-3)+"\u0430\u0442\u0438",.78,{removedSuffixes:["\u044e\u0442\u044c"],conjugationType:"present"}):e.endsWith("\u0443\u0442\u044c")&&e.length>4?u(e.slice(0,-3)+"\u0430\u0442\u0438",.75,{removedSuffixes:["\u0443\u0442\u044c"],conjugationType:"present"}):null}})}}),Dp={};x(Dp,{UkrainianTokenizer:()=>Kp,ukrainianTokenizer:()=>Vp});var Fp,Hp,Up,Gp,Zp=b({"src/tokenizers/ukrainian.ts"(){zi(),Pl(),Bp(),Zr(),xi(),Vn(),ja(),Nn(),$p=new Set(["\u0432","\u0443","\u043d\u0430","\u0437","\u0456\u0437","\u0437\u0456","\u0434\u043e","\u0432\u0456\u0434","\u043e","\u043e\u0431","\u043f\u0440\u0438","\u0434\u043b\u044f","\u043f\u0456\u0434","\u043d\u0430\u0434","\u043f\u0435\u0440\u0435\u0434","\u043c\u0456\u0436","\u0447\u0435\u0440\u0435\u0437","\u0431\u0435\u0437","\u043f\u043e","\u0437\u0430","\u043f\u0440\u043e","\u043f\u0456\u0441\u043b\u044f","\u043d\u0430\u0432\u043a\u043e\u043b\u043e","\u043f\u0440\u043e\u0442\u0438","\u0437\u0430\u043c\u0456\u0441\u0442\u044c","\u043a\u0440\u0456\u043c","\u0441\u0435\u0440\u0435\u0434","\u043a"]),Ip=[{native:"\u043c\u0438\u0448\u0430\u0432\u043d\u0438\u0437",normalized:"mousedown"},{native:"\u043c\u0438\u0448\u0430\u0432\u0433\u043e\u0440\u0443",normalized:"mouseup"},{native:"\u0437\u043c\u0456\u043d\u0430\u0440\u043e\u0437\u043c\u0456\u0440\u0443",normalized:"resize"},{native:"\u0456\u0441\u0442\u0438\u043d\u0430",normalized:"true"},{native:"\u043f\u0440\u0430\u0432\u0434\u0430",normalized:"true"},{native:"\u0445\u0438\u0431\u043d\u0456\u0441\u0442\u044c",normalized:"false"},{native:"null",normalized:"null"},{native:"\u043d\u0435\u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043e",normalized:"undefined"},{native:"\u043d\u0456\u0447\u043e\u0433\u043e",normalized:"null"},{native:"\u0441\u0435\u043a\u0443\u043d\u0434\u0430",normalized:"s"},{native:"\u0441\u0435\u043a\u0443\u043d\u0434\u0438",normalized:"s"},{native:"\u0441\u0435\u043a\u0443\u043d\u0434",normalized:"s"},{native:"\u043c\u0456\u043b\u0456\u0441\u0435\u043a\u0443\u043d\u0434\u0430",normalized:"ms"},{native:"\u043c\u0456\u043b\u0456\u0441\u0435\u043a\u0443\u043d\u0434\u0438",normalized:"ms"},{native:"\u043c\u0456\u043b\u0456\u0441\u0435\u043a\u0443\u043d\u0434",normalized:"ms"},{native:"\u0445\u0432\u0438\u043b\u0438\u043d\u0430",normalized:"m"},{native:"\u0445\u0432\u0438\u043b\u0438\u043d\u0438",normalized:"m"},{native:"\u0445\u0432\u0438\u043b\u0438\u043d",normalized:"m"},{native:"\u0433\u043e\u0434\u0438\u043d\u0430",normalized:"h"},{native:"\u0433\u043e\u0434\u0438\u043d\u0438",normalized:"h"},{native:"\u0433\u043e\u0434\u0438\u043d",normalized:"h"},{native:"\u043f\u0435\u0440\u0448\u0438\u0439",normalized:"first"},{native:"\u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439",normalized:"last"},{native:"\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439",normalized:"next"},{native:"\u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439",normalized:"previous"},{native:"\u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0438\u0439",normalized:"closest"},{native:"\u0431\u0430\u0442\u044c\u043a\u0456\u0432\u0441\u044c\u043a\u0438\u0439",normalized:"parent"},{native:"\u0432\u0438\u043f\u0430\u0434\u043a\u043e\u0432\u0438\u0439",normalized:"random"},{native:"\u043f\u0435\u0440\u0448\u0430",normalized:"first"},{native:"\u043f\u0435\u0440\u0448\u0435",normalized:"first"},{native:"\u043e\u0441\u0442\u0430\u043d\u043d\u044f",normalized:"last"},{native:"\u043e\u0441\u0442\u0430\u043d\u043d\u0454",normalized:"last"},{native:"\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0430",normalized:"next"},{native:"\u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044f",normalized:"previous"},{native:"\u043f\u043e\u0440\u043e\u0436\u043d\u044f",normalized:"empty"},{native:"\u043f\u043e\u0440\u043e\u0436\u043d\u0454",normalized:"empty"},{native:"\u043c\u043e\u044f",normalized:"my"},{native:"\u043c\u043e\u0454",normalized:"my"},{native:"\u043c\u043e\u0457",normalized:"my"},{native:"\u0432\u043a\u043b\u044e\u0447\u043d\u043e",normalized:"inclusive"},{native:"\u0432\u0438\u043a\u043b\u044e\u0447\u043d\u043e",normalized:"exclusive"},{native:"\u0441\u0438\u043c\u0432\u043e\u043b\u0438",normalized:"characters"}],Vp=new(Kp=class extends p{constructor(){super(),this.language="uk",this.direction="ltr",this.initializeKeywordsFromProfile(Fr,Ip),this.setNormalizer(new Rp),this.registerExtractors([...In(),new ga("ukrainian-keyword",/[a-zA-Z\u0430-\u044f\u0410-\u042f\u0456\u0406\u0457\u0407\u0454\u0404\u0491\u0490\u044c\u042c']/,za),new i,new a,new Mn,new vi,new fi])}tokenize(e){return El(super.tokenize(e),e=>super.tokenize(e).tokens)}classifyToken(e){const t=e.toLowerCase();return $p.has(t)?"particle":this.isKeyword(t)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}}),Yp={};x(Yp,{HebrewTokenizer:()=>Up,hebrewTokenizer:()=>Gp});var Xp,Qp,Jp=b({"src/tokenizers/he.ts"(){zi(),ar(),xi(),Vn(),qn(),On(),Nn(),Fp=new Set(["\u05e2\u05dc","\u05d0\u05ea","\u05d0\u05dc","\u05de\u05df","\u05e2\u05dd","\u05d1\u05ea\u05d5\u05da","\u05de\u05ea\u05d5\u05da","\u05dc\u05d9\u05d3","\u05d0\u05d7\u05e8\u05d9","\u05dc\u05e4\u05e0\u05d9","\u05d1\u05d9\u05df","\u05e2\u05d3","\u05e9\u05dc"]),Hp=[{native:"\u05d0\u05de\u05ea",normalized:"true"},{native:"\u05e9\u05e7\u05e8",normalized:"false"},{native:"null",normalized:"null"},{native:"\u05e8\u05d9\u05e7",normalized:"null"},{native:"\u05dc\u05d0 \u05de\u05d5\u05d2\u05d3\u05e8",normalized:"undefined"},{native:"\u05e8\u05d0\u05e9\u05d5\u05df",normalized:"first"},{native:"\u05d0\u05d7\u05e8\u05d5\u05df",normalized:"last"},{native:"\u05d4\u05d1\u05d0",normalized:"next"},{native:"\u05d4\u05e7\u05d5\u05d3\u05dd",normalized:"previous"},{native:"\u05d4\u05e7\u05e8\u05d5\u05d1",normalized:"closest"},{native:"\u05d4\u05d5\u05e8\u05d4",normalized:"parent"},{native:"\u05dc\u05d7\u05d9\u05e6\u05d4",normalized:"click"},{native:"\u05e7\u05dc\u05d9\u05e7",normalized:"click"},{native:"\u05e7\u05dc\u05d8",normalized:"input"},{native:"\u05e9\u05d9\u05e0\u05d5\u05d9",normalized:"change"},{native:"\u05e9\u05dc\u05d9\u05d7\u05d4",normalized:"submit"},{native:"\u05de\u05d9\u05e7\u05d5\u05d3",normalized:"focus"},{native:"\u05d8\u05e9\u05d8\u05d5\u05e9",normalized:"blur"},{native:"\u05dc\u05d7\u05d9\u05e6\u05ea \u05de\u05e7\u05e9",normalized:"keydown"},{native:"\u05e9\u05d7\u05e8\u05d5\u05e8 \u05de\u05e7\u05e9",normalized:"keyup"},{native:"\u05de\u05e2\u05d1\u05e8 \u05e2\u05db\u05d1\u05e8",normalized:"mouseover"},{native:"\u05d9\u05e6\u05d9\u05d0\u05ea \u05e2\u05db\u05d1\u05e8",normalized:"mouseout"},{native:"load",normalized:"load"},{native:"resize",normalized:"resize"},{native:"scroll",normalized:"scroll"},{native:"keydown",normalized:"keydown"},{native:"keyup",normalized:"keyup"},{native:"mousedown",normalized:"mousedown"},{native:"mouseup",normalized:"mouseup"},{native:"\u05d8\u05e2\u05d9\u05e0\u05d4",normalized:"load"},{native:"\u05d2\u05dc\u05d9\u05dc\u05d4",normalized:"scroll"},{native:"\u05d4\u05d9\u05d0",normalized:"it"},{native:"\u05d4\u05d5\u05d0",normalized:"it"},{native:"\u05e9\u05e0\u05d9\u05d9\u05d4",normalized:"s"},{native:"\u05e9\u05e0\u05d9\u05d5\u05ea",normalized:"s"},{native:"\u05de\u05d9\u05dc\u05d9\u05e9\u05e0\u05d9\u05d9\u05d4",normalized:"ms"},{native:"\u05d3\u05e7\u05d4",normalized:"m"},{native:"\u05d3\u05e7\u05d5\u05ea",normalized:"m"},{native:"\u05e9\u05e2\u05d4",normalized:"h"},{native:"\u05e9\u05e2\u05d5\u05ea",normalized:"h"},{native:"\u05db\u05d5\u05dc\u05dc",normalized:"inclusive"},{native:"\u05d1\u05dc\u05e2\u05d3\u05d9",normalized:"exclusive"},{native:"\u05ea\u05d5\u05d5\u05d9\u05dd",normalized:"characters"},{native:"\u05d0\u05e7\u05e8\u05d0\u05d9",normalized:"random"}],Gp=new(Up=class extends p{constructor(){super(),this.language="he",this.direction="rtl",this.initializeKeywordsFromProfile(er,Hp),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractor(new Mn),this.registerExtractor(new An),this.registerExtractors([new En]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return Fp.has(e)?"particle":this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":["==","!=","<=",">=","<",">","&&","||","!"].includes(e)?"operator":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});function em(e){return/[\u0900-\u097F\u0A8E-\u0A8F]/u.test(e)}var tm,rm,im,am,nm=b({"src/tokenizers/morphology/hindi-normalizer.ts"(){Jn(),Xp=[{suffix:" \u0930\u0939\u093e \u0939\u0948",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:" \u0930\u0939\u0940 \u0939\u0948",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:" \u0930\u0939\u0947 \u0939\u0948\u0902",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u093e",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u0940",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0930\u0939\u0947",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u0942\u0902\u0917\u093e",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0942\u0902\u0917\u0940",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0917\u093e",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0917\u0940",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0947\u0902\u0917\u0947",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u0924\u093e \u0939\u0948",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0940 \u0939\u0948",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0947 \u0939\u0948\u0902",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u093e",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0940",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0924\u0947",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u0928\u093e",replacement:"",confidence:.9,type:"dictionary",minStemLength:1},{suffix:"\u093e\u092f\u093e",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093e\u092f\u0940",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093e\u092f\u0947",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u092f\u093e",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u093f\u092f\u0947",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u093f\u090f",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u0908",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u090f",replacement:"",confidence:.82,type:"past",minStemLength:1},{suffix:"\u0947\u0902",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u094b",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u093e",replacement:"",confidence:.82,type:"past",minStemLength:2},{suffix:"\u0940",replacement:"",confidence:.82,type:"past",minStemLength:2},{suffix:"\u0947",replacement:"",confidence:.82,type:"past",minStemLength:2}],new(Qp=class{constructor(){this.language="hi"}isNormalizable(e){return e.length>=2&&em(e)}normalize(e){const t=this.tryConjugationNormalization(e);return t||y(e)}tryConjugationNormalization(e){for(const t of Xp)if(e.endsWith(t.suffix)){const r=Array.from(e),i=Array.from(t.suffix),a=r.slice(0,r.length-i.length),n=a.join("")+t.replacement;if((t.minStemLength??1)>a.length)continue;if(n.length>0&&!em(n))continue;return u(n,t.confidence,{removedSuffixes:[t.suffix],conjugationType:t.type})}return null}})}}),om={};x(om,{HindiTokenizer:()=>im,hindiTokenizer:()=>am});var sm,lm,pm=b({"src/tokenizers/hindi.ts"(){zi(),nm(),sr(),xi(),Vn(),Wa(),Aa(),Nn(),tm=new Set(["\u0915\u094b","\u092e\u0947\u0902","\u092a\u0930","\u0938\u0947","\u0915\u093e","\u0915\u0940","\u0915\u0947","\u0924\u0915","\u0928\u0947"]),rm=[{native:"\u092e\u093e\u0909\u0938\u0928\u0940\u091a\u0947",normalized:"mousedown"},{native:"\u092e\u093e\u0909\u0938\u090a\u092a\u0930",normalized:"mouseup"},{native:"\u0906\u0915\u093e\u0930_\u092c\u0926\u0932\u0947\u0902",normalized:"resize"},{native:"\u0938\u091a",normalized:"true"},{native:"\u0938\u0924\u094d\u092f",normalized:"true"},{native:"\u091d\u0942\u0920",normalized:"false"},{native:"\u0905\u0938\u0924\u094d\u092f",normalized:"false"},{native:"\u0916\u093e\u0932\u0940",normalized:"null"},{native:"\u0905\u092a\u0930\u093f\u092d\u093e\u0937\u093f\u0924",normalized:"undefined"},{native:"\u092a\u0939\u0932\u093e",normalized:"first"},{native:"\u0905\u0902\u0924\u093f\u092e",normalized:"last"},{native:"\u0905\u0917\u0932\u093e",normalized:"next"},{native:"\u092a\u093f\u091b\u0932\u093e",normalized:"previous"},{native:"\u0928\u093f\u0915\u091f\u0924\u092e",normalized:"closest"},{native:"\u092e\u0942\u0932",normalized:"parent"},{native:"\u0915\u094d\u0932\u093f\u0915",normalized:"click"},{native:"\u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928",normalized:"change"},{native:"\u091c\u092e\u093e",normalized:"submit"},{native:"\u0907\u0928\u092a\u0941\u091f",normalized:"input"},{native:"\u0932\u094b\u0921",normalized:"load"},{native:"\u0938\u094d\u0915\u094d\u0930\u0949\u0932",normalized:"scroll"},{native:"\u0915\u094b",normalized:"to"},{native:"\u0915\u0947 \u0938\u093e\u0925",normalized:"with"},{native:"\u0915\u0947_\u0930\u0942\u092a_\u092e\u0947\u0902",normalized:"as"},{native:"\u092e\u0947\u0902_\u0939\u0948",normalized:"includes"},{native:"\u092f\u093e",normalized:"or"},{native:"\u0905\u0915\u094d\u0937\u0930",normalized:"characters"},{native:"\u092f\u093e\u0926\u0943\u091a\u094d\u091b\u093f\u0915",normalized:"random"}],am=new(im=class extends p{constructor(){super(),this.language="hi",this.direction="ltr",this.initializeKeywordsFromProfile(ir,rm),this.normalizer=new Qp,this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractor(new Pa),this.registerExtractor(new Sa),this.registerExtractor(new Mn),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return tm.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":(e.startsWith(":"),"identifier")}})}});function mm(e){return/[\u0980-\u09FF]/u.test(e)}var cm,dm,um,ym,vm=b({"src/tokenizers/morphology/bengali-normalizer.ts"(){Jn(),sm=[{suffix:"\u099a\u09cd\u099b\u09c7 \u0986\u099b\u09c7",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099a\u09cd\u099b \u0986\u099b\u09bf",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099a\u09cd\u099b\u09c7\u09a8 \u0986\u099b\u09c7\u09a8",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u09c7\u099b\u09c7\u09a8",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09c7\u099b\u09c7",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09c7\u099b",replacement:"",confidence:.85,type:"present",minStemLength:1},{suffix:"\u09ac\u09c7\u09a8",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09ac\u09c7",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09ac\u09cb",replacement:"",confidence:.85,type:"future",minStemLength:1},{suffix:"\u09b2\u09c7\u09a8",replacement:"",confidence:.85,type:"past",minStemLength:1},{suffix:"\u09b2\u09cb",replacement:"",confidence:.85,type:"past",minStemLength:1},{suffix:"\u09b2",replacement:"",confidence:.85,type:"past",minStemLength:2},{suffix:"\u09c1\u09a8",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u09cb",replacement:"",confidence:.85,type:"imperative",minStemLength:1},{suffix:"\u099a\u09cd\u099b\u09c7",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099a\u09cd\u099b",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u099a\u09cd\u099b\u09bf",replacement:"",confidence:.82,type:"progressive",minStemLength:1},{suffix:"\u09be",replacement:"",confidence:.9,type:"dictionary",minStemLength:1},{suffix:"\u09c7",replacement:"",confidence:.85,type:"present",minStemLength:2},{suffix:"\u09bf",replacement:"",confidence:.85,type:"present",minStemLength:2},{suffix:"\u09cb",replacement:"",confidence:.85,type:"present",minStemLength:2}],lm=new class{constructor(){this.language="bn"}isNormalizable(e){return e.length>=2&&mm(e)}normalize(e){const t=this.tryConjugationNormalization(e);return t||y(e)}tryConjugationNormalization(e){for(const t of sm)if(e.endsWith(t.suffix)){const r=Array.from(e),i=Array.from(t.suffix),a=r.slice(0,r.length-i.length),n=a.join("")+t.replacement;if((t.minStemLength??1)>a.length)continue;if(n.length>0&&!mm(n))continue;return u(n,t.confidence,{removedSuffixes:[t.suffix],conjugationType:t.type})}return null}}}}),fm={};x(fm,{BengaliTokenizer:()=>um,bengaliTokenizer:()=>ym});var hm,gm,km,zm=b({"src/tokenizers/bengali.ts"(){vp(),zi(),vm(),Bt(),xi(),Vn(),Na(),$a(),Nn(),cm=new Set(["\u0995\u09c7","\u09a4\u09c7","\u09a5\u09c7\u0995\u09c7","\u09b0","\u098f\u09b0","\u09a6\u09bf\u09af\u09bc\u09c7","\u099c\u09a8\u09cd\u09af","\u09aa\u09b0\u09cd\u09af\u09a8\u09cd\u09a4","\u098f","\u09ae\u09a7\u09cd\u09af\u09c7"]),dm=[{native:"\u09b8\u09a4\u09cd\u09af",normalized:"true"},{native:"\u09ae\u09bf\u09a5\u09cd\u09af\u09be",normalized:"false"},{native:"\u09b6\u09c2\u09a8\u09cd\u09af",normalized:"null"},{native:"\u0985\u09a8\u09bf\u09b0\u09cd\u09a7\u09be\u09b0\u09bf\u09a4",normalized:"undefined"},{native:"\u09aa\u09cd\u09b0\u09a5\u09ae",normalized:"first"},{native:"\u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0",normalized:"next"},{native:"\u0986\u0997\u09c7\u09b0",normalized:"previous"},{native:"\u09a8\u09bf\u0995\u099f\u09a4\u09ae",normalized:"closest"},{native:"\u09ae\u09c2\u09b2",normalized:"parent"},{native:"\u0995\u09cd\u09b2\u09bf\u0995",normalized:"click"},{native:"\u099c\u09ae\u09be",normalized:"submit"},{native:"\u0987\u09a8\u09aa\u09c1\u099f",normalized:"input"},{native:"\u09b2\u09cb\u09a1",normalized:"load"},{native:"\u09b8\u09cd\u0995\u09cd\u09b0\u09cb\u09b2",normalized:"scroll"},{native:"\u0995\u09c7",normalized:"to"},{native:"\u09b8\u09be\u09a5\u09c7",normalized:"with"},{native:"\u0985\u09a5\u09ac\u09be",normalized:"or"},{native:"\u0985\u09a8\u09cd\u09a4\u09b0\u09cd\u09ad\u09c1\u0995\u09cd\u09a4",normalized:"inclusive"},{native:"\u09ac\u09be\u09a6",normalized:"exclusive"},{native:"\u0985\u0995\u09cd\u09b7\u09b0",normalized:"characters"},{native:"\u098f\u09b2\u09cb\u09ae\u09c7\u09b2\u09cb",normalized:"random"}],ym=new(um=class extends p{constructor(){super(),this.language="bn",this.direction="ltr",this.initializeKeywordsFromProfile($t,dm),this.setNormalizer(lm),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractor(new Oa),this.registerExtractor(new _a),this.registerExtractor(new Mn),this.registerExtractor(new vi),this.registerExtractor(new fi)}tokenize(e){return cp(super.tokenize(e),"\u09af\u09a6\u09bf \u09a8\u09be",e=>super.tokenize(e).tokens)}classifyToken(e){return cm.has(e)?"particle":this.isKeyword(e)?"keyword":e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("http")?"url":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith("#")||e.startsWith(".")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith('"')||e.startsWith("'")||/^\d/.test(e)?"literal":(e.startsWith(":"),"identifier")}})}}),wm={};x(wm,{ThaiTokenizer:()=>gm,thaiTokenizer:()=>km});var bm,xm,Tm,Sm=b({"src/tokenizers/thai.ts"(){zi(),Ir(),xi(),Vn(),Ba(),hm=[{native:"\u0e08\u0e23\u0e34\u0e07",normalized:"true"},{native:"\u0e40\u0e17\u0e47\u0e08",normalized:"false"},{native:"\u0e27\u0e48\u0e32\u0e07",normalized:"null"},{native:"\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14",normalized:"undefined"},{native:"\u0e41\u0e23\u0e01",normalized:"first"},{native:"\u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22",normalized:"last"},{native:"\u0e16\u0e31\u0e14\u0e44\u0e1b",normalized:"next"},{native:"\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32",normalized:"previous"},{native:"\u0e43\u0e01\u0e25\u0e49\u0e2a\u0e38\u0e14",normalized:"closest"},{native:"\u0e15\u0e49\u0e19\u0e17\u0e32\u0e07",normalized:"parent"},{native:"\u0e04\u0e25\u0e34\u0e01",normalized:"click"},{native:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07",normalized:"change"},{native:"\u0e2a\u0e48\u0e07",normalized:"submit"},{native:"\u0e2d\u0e34\u0e19\u0e1e\u0e38\u0e15",normalized:"input"},{native:"\u0e42\u0e2b\u0e25\u0e14",normalized:"load"},{native:"\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19",normalized:"scroll"},{native:"\u0e1b\u0e23\u0e31\u0e1a\u0e02\u0e19\u0e32\u0e14",normalized:"resize"},{native:"\u0e40\u0e27\u0e25\u0e32",normalized:"when"},{native:"\u0e44\u0e1b\u0e22\u0e31\u0e07",normalized:"to"},{native:"\u0e14\u0e49\u0e27\u0e22",normalized:"with"},{native:"\u0e41\u0e25\u0e30",normalized:"and"},{native:"\u0e23\u0e27\u0e21",normalized:"inclusive"},{native:"\u0e22\u0e01\u0e40\u0e27\u0e49\u0e19",normalized:"exclusive"},{native:"\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30",normalized:"characters"},{native:"\u0e2a\u0e38\u0e48\u0e21",normalized:"random"}],km=new(gm=class extends p{constructor(){super(),this.language="th",this.direction="ltr",this.initializeKeywordsFromProfile(Or,hm),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new Ra]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}}),jm={};x(jm,{MalayTokenizer:()=>xm,malayTokenizer:()=>Tm});var Em,Lm,Cm,Pm,_m,Wm=b({"src/tokenizers/ms.ts"(){zi(),br(),xi(),Vn(),Ua(),bm=[{native:"benar",normalized:"true"},{native:"salah",normalized:"false"},{native:"kosong",normalized:"empty"},{native:"tak_tentu",normalized:"undefined"},{native:"pertama",normalized:"first"},{native:"terakhir",normalized:"last"},{native:"seterusnya",normalized:"next"},{native:"sebelumnya",normalized:"previous"},{native:"terdekat",normalized:"closest"},{native:"induk",normalized:"parent"},{native:"klik",normalized:"click"},{native:"berubah",normalized:"change"},{native:"ubah",normalized:"change"},{native:"hantar",normalized:"submit"},{native:"input",normalized:"input"},{native:"masuk",normalized:"input"},{native:"muat",normalized:"load"},{native:"tatal",normalized:"scroll"},{native:"hover",normalized:"hover"},{native:"inklusif",normalized:"inclusive"},{native:"eksklusif",normalized:"exclusive"},{native:"aksara",normalized:"characters"},{native:"rawak",normalized:"random"}],Tm=new(xm=class extends p{constructor(){super(),this.language="ms",this.direction="ltr",this.initializeKeywordsFromProfile(gr,bm),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new Va]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});function Am(e){const t=e.charCodeAt(0);return t>=65&&90>=t||t>=97&&122>=t||("\u00f1"===e||"\u00d1"===e)}var qm,Mm,Om,Rm=b({"src/tokenizers/morphology/tagalog-normalizer.ts"(){Jn(),Em=[{pattern:"magpapa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"magpa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ipang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ipag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nagpa",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3}],Lm=[{pattern:"mag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nag",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"mang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"nang",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"ma",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"na",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3},{pattern:"i",confidencePenalty:.15,prefixType:"verb-marker",minRemaining:3},{pattern:"pa",confidencePenalty:.12,prefixType:"verb-marker",minRemaining:3}],Cm=["um","in"],Pm=[{pattern:"hin",confidencePenalty:.18,type:"patient-focus"},{pattern:"in",confidencePenalty:.18,type:"patient-focus"},{pattern:"han",confidencePenalty:.18,type:"locative-focus"},{pattern:"an",confidencePenalty:.18,type:"locative-focus"}],_m=new class{constructor(){this.language="tl"}isNormalizable(e){return!!function(e){for(const t of e)if(Am(t))return!0;return!1}(e)&&2<=e.length}normalize(e){let t=e.toLowerCase(),r=1;const i=[],a=[],n=[];for(const e of Em)if(t.startsWith(e.pattern)){const a=t.slice(e.pattern.length);if(a.length>=(e.minRemaining??2)){t=a,r-=e.confidencePenalty,i.push(e.pattern),n.push("prefix:"+e.pattern);break}}if(0===i.length)for(const e of Lm)if(t.startsWith(e.pattern)){const a=t.slice(e.pattern.length);if(a.length>=(e.minRemaining??2)){t=a,r-=e.confidencePenalty,i.push(e.pattern),n.push("prefix:"+e.pattern);break}}const o=function(e){const t=e.toLowerCase();if(4>t.length)return{stem:t,reduplicated:!1};const r=t[0],i=t[1];if(!"aeiou".includes(r)&&"aeiou".includes(i)){const e=t.slice(2);if(e.length>=2&&e[0]===r)return{stem:e,reduplicated:!0}}return{stem:t,reduplicated:!1}}(t);o.reduplicated&&o.stem.length>=2&&(t=o.stem,r-=.1,n.push("reduplication:CV"));const s=function(e){const t=e.toLowerCase();if(5>t.length)return null;let r=0;for(let e=0;t.length>e&&!"aeiou".includes(t[e]);e++)r=e+1;if(0===r)return null;for(const e of Cm){const i=r;if(t.slice(i,i+e.length)===e){const a=t.slice(0,r)+t.slice(i+e.length);if(a.length>=3)return{stem:a,infix:e}}}return null}(t);let l=!1;if(s&&s.stem.length>=2&&(t=s.stem,r-=.18,n.push("infix:"+s.infix),l=!0),!l)for(const e of Pm)if(t.endsWith(e.pattern)){const i=t.slice(0,-e.pattern.length);if(i.length>=2){t=i,r-=e.confidencePenalty,a.push(e.pattern),n.push("suffix:"+e.pattern);break}}return r=Math.max(.5,r),0===i.length&&0===a.length&&0===n.length?y(e):u(t,r,{removedPrefixes:i,removedSuffixes:a,appliedRules:n})}}}}),Nm={};x(Nm,{TagalogTokenizer:()=>Mm,tagalogTokenizer:()=>Om});var $m,Im,Km,Vm=b({"src/tokenizers/tl.ts"(){zi(),Br(),Rm(),xi(),Vn(),Ja(),qm=[{native:"totoo",normalized:"true"},{native:"mali",normalized:"false"},{native:"wala",normalized:"null"},{native:"hindi_tinukoy",normalized:"undefined"},{native:"una",normalized:"first"},{native:"huli",normalized:"last"},{native:"susunod",normalized:"next"},{native:"nakaraan",normalized:"previous"},{native:"pinakamalapit",normalized:"closest"},{native:"magulang",normalized:"parent"},{native:"pindot",normalized:"click"},{native:"pagbabago",normalized:"change"},{native:"isumite",normalized:"submit"},{native:"input",normalized:"input"},{native:"karga",normalized:"load"},{native:"mag_scroll",normalized:"scroll"},{native:"kasama",normalized:"inclusive"},{native:"bukod",normalized:"exclusive"},{native:"karakter",normalized:"characters"},{native:"random",normalized:"random"}],Om=new(Mm=class extends p{constructor(){super(),this.language="tl",this.direction="ltr",this.initializeKeywordsFromProfile($r,qm),this.setNormalizer(_m),this.registerExtractors(In()),this.registerExtractor(new i),this.registerExtractor(new a),this.registerExtractors([new Ha]),this.registerExtractor(new vi),this.registerExtractor(new fi)}classifyToken(e){return this.isKeyword(e)?"keyword":/^\.(once|prevent|stop|debounce|throttle|queue)(\(.*\))?$/.test(e)?"event-modifier":e.startsWith(".")||e.startsWith("#")||e.startsWith("[")||e.startsWith("*")||e.startsWith("<")?"selector":e.startsWith(":")?"identifier":e.startsWith('"')||e.startsWith("'")||/^-?\d/.test(e)?"literal":e.startsWith("/")||e.startsWith("./")||e.startsWith("http")?"url":"identifier"}})}});function Bm(e,t){const r=$m[t];return r&&r[e]?r[e]:e.toLowerCase()}function Dm(e,t){const r=$m[t];return r?Object.keys(r).filter(t=>r[t]===e):[]}function Fm(){return Km}function Hm(e,t){return Km[t]?.has(e)?e:Im[t]?.[e]??e}function Um(e){const t=e.verbAlts?{type:"literal",value:e.verb,alternatives:e.verbAlts}:{type:"literal",value:e.verb},r=e.eventMarkerAlts?{type:"literal",value:e.eventMarker,alternatives:e.eventMarkerAlts}:{type:"literal",value:e.eventMarker};return["before","after"].map(i=>{const a={type:"literal",value:"before"===i?e.before:e.after},n={type:"role",role:"patient"},o={type:"role",role:"destination"},s={type:"role",role:"event"};return{id:`put-event-${e.lang}-vso-${i}`,language:e.lang,command:"on",priority:160,template:{format:`${e.lang} put ${i}`,tokens:"verb-first"===e.order?[t,n,a,o,r,s]:[r,s,t,n,a,o]},extraction:"verb-first"===e.order?{action:{value:"put"},patient:{position:1},destination:{position:3},event:{position:5},manner:{default:{type:"literal",value:i}}}:{action:{value:"put"},event:{position:1},patient:{position:3},destination:{position:5},manner:{default:{type:"literal",value:i}}}}})}function Gm(e){switch(e){case"bn":return[{id:"event-handler-bn-sov",language:"bn",command:"on",priority:100,template:{format:"{event} \u09a4\u09c7 {action}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u09a4\u09c7",alternatives:["\u098f"]},{type:"role",role:"action"}]},extraction:{event:{position:0},action:{position:2}}},{id:"event-handler-bn-with-source",language:"bn",command:"on",priority:95,template:{format:"{source} \u09a5\u09c7\u0995\u09c7 {event} \u09a4\u09c7 {action}",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09a5\u09c7\u0995\u09c7"},{type:"role",role:"event"},{type:"literal",value:"\u09a4\u09c7",alternatives:["\u098f"]},{type:"role",role:"action"}]},extraction:{source:{position:0},event:{marker:"\u09a4\u09c7",position:2},action:{position:4}}},{id:"event-handler-bn-when",language:"bn",command:"on",priority:90,template:{format:"\u09af\u0996\u09a8 {event} {action}",tokens:[{type:"literal",value:"\u09af\u0996\u09a8"},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}}];case"ko":return[{id:"event-handler-ko-sov",language:"ko",command:"on",priority:110,template:{format:"{event} \ud560 \ub54c",tokens:[{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"\ud560"},{type:"literal",value:"\ub54c"}]},extraction:{event:{position:0},source:{default:{type:"reference",value:"me"}}}},{id:"event-handler-ko-with-source",language:"ko",command:"on",priority:108,template:{format:"{source} \uc5d0\uc11c {event} \ud560 \ub54c",tokens:[{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"\uc5d0\uc11c"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"\ud560"},{type:"literal",value:"\ub54c"}]},extraction:{source:{position:0},event:{position:2}}}];case"de":return[{id:"event-de-wenn-source",language:"de",command:"on",priority:115,template:{format:"wenn {event} von {source} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-wenn",language:"de",command:"on",priority:105,template:{format:"wenn {event} {body}",tokens:[{type:"literal",value:"wenn",alternatives:["falls","sobald"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-bei-source",language:"de",command:"on",priority:110,template:{format:"bei {event} von {source} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"},{type:"literal",value:"von",alternatives:["aus"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"von",markerAlternatives:["aus"]}}},{id:"event-de-bei",language:"de",command:"on",priority:100,template:{format:"bei {event} {body}",tokens:[{type:"literal",value:"bei",alternatives:["beim"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-auf",language:"de",command:"on",priority:95,template:{format:"auf {event} {body}",tokens:[{type:"literal",value:"auf"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-de-im-falle",language:"de",command:"on",priority:90,template:{format:"im Falle von {event} {body}",tokens:[{type:"literal",value:"im Falle von",alternatives:["im Fall von"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"en":return[{id:"event-en-source",language:"en",command:"on",priority:110,template:{format:"on {event} from {source} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"},{type:"literal",value:"from"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"from"}}},{id:"event-en-standard",language:"en",command:"on",priority:100,template:{format:"on {event} {body}",tokens:[{type:"literal",value:"on"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-upon",language:"en",command:"on",priority:98,template:{format:"upon {event} {body}",tokens:[{type:"literal",value:"upon"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-en-if",language:"en",command:"on",priority:95,template:{format:"if {event} {body}",tokens:[{type:"literal",value:"if"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"es":return[{id:"event-es-native-al-source",language:"es",command:"on",priority:115,template:{format:"al {event} en {source} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-cuando-source",language:"es",command:"on",priority:112,template:{format:"cuando {event} en {source} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"},{type:"literal",value:"en",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"en",markerAlternatives:["de"]}}},{id:"event-es-native-al",language:"es",command:"on",priority:108,template:{format:"al {event} {body}",tokens:[{type:"literal",value:"al"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-standard",language:"es",command:"on",priority:100,template:{format:"en {event} {body}",tokens:[{type:"literal",value:"en",alternatives:["al","cuando"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-source",language:"es",command:"on",priority:110,template:{format:"en {event} desde {source} {body}",tokens:[{type:"literal",value:"en",alternatives:["al"]},{type:"role",role:"event"},{type:"literal",value:"desde",alternatives:["de"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"desde",markerAlternatives:["de"]}}},{id:"event-es-when",language:"es",command:"on",priority:95,template:{format:"cuando {event} {body}",tokens:[{type:"literal",value:"cuando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-es-conditional-si",language:"es",command:"on",priority:85,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"fr":return[{id:"event-fr-quand-source",language:"fr",command:"on",priority:115,template:{format:"quand {event} de {source} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-quand",language:"fr",command:"on",priority:105,template:{format:"quand {event} {body}",tokens:[{type:"literal",value:"quand",alternatives:["lorsque"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-sur-source",language:"fr",command:"on",priority:110,template:{format:"sur {event} de {source} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["depuis"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["depuis"]}}},{id:"event-fr-sur",language:"fr",command:"on",priority:100,template:{format:"sur {event} {body}",tokens:[{type:"literal",value:"sur",alternatives:["lors de"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-si",language:"fr",command:"on",priority:95,template:{format:"si {event} {body}",tokens:[{type:"literal",value:"si"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-fr-a",language:"fr",command:"on",priority:90,template:{format:"\u00e0 {event} {body}",tokens:[{type:"literal",value:"\u00e0",alternatives:["au"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"hi":return[{id:"event-hi-standard",language:"hi",command:"on",priority:100,template:{format:"{event} \u092a\u0930",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u092a\u0930",alternatives:["\u092e\u0947\u0902","\u091c\u092c"]}]},extraction:{event:{position:0}}},{id:"event-hi-with-source",language:"hi",command:"on",priority:95,template:{format:"{source} \u0938\u0947 {event} \u092a\u0930",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"role",role:"event"},{type:"literal",value:"\u092a\u0930",alternatives:["\u092e\u0947\u0902","\u091c\u092c"]}]},extraction:{source:{position:0},event:{marker:"\u0938\u0947",position:2}}},{id:"event-hi-when",language:"hi",command:"on",priority:95,template:{format:"\u091c\u092c {event} {body}",tokens:[{type:"literal",value:"\u091c\u092c"},{type:"role",role:"event",expectedTypes:["reference","expression","selector"]}]},extraction:{event:{position:1}}},{id:"event-hi-bare",language:"hi",command:"on",priority:80,template:{format:"{event}",tokens:[{type:"role",role:"event"}]},extraction:{event:{position:0}}}];case"id":return[{id:"event-id-ketika-source",language:"id",command:"on",priority:115,template:{format:"ketika {event} dari {source} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-ketika",language:"id",command:"on",priority:105,template:{format:"ketika {event} {body}",tokens:[{type:"literal",value:"ketika",alternatives:["saat","waktu"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-pada-source",language:"id",command:"on",priority:110,template:{format:"pada {event} dari {source} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}},{id:"event-id-pada",language:"id",command:"on",priority:100,template:{format:"pada {event} {body}",tokens:[{type:"literal",value:"pada"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-jika",language:"id",command:"on",priority:95,template:{format:"jika {event} {body}",tokens:[{type:"literal",value:"jika",alternatives:["kalau","apabila"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-id-bila",language:"id",command:"on",priority:90,template:{format:"bila {event} {body}",tokens:[{type:"literal",value:"bila"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"it":return[{id:"event-handler-it-full",language:"it",command:"on",priority:100,template:{format:"su {event} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-it-from",language:"it",command:"on",priority:95,template:{format:"su {event} da {source} {action}",tokens:[{type:"literal",value:"su",alternatives:["quando","al","on"]},{type:"role",role:"event"},{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"da",markerAlternatives:["di"]},action:{position:-1}}}];case"ms":return[{id:"event-ms-apabila",language:"ms",command:"on",priority:100,template:{format:"apabila {event} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-ms-apabila-source",language:"ms",command:"on",priority:110,template:{format:"apabila {event} dari {source} {body}",tokens:[{type:"literal",value:"apabila",alternatives:["bila","ketika"]},{type:"role",role:"event"},{type:"literal",value:"dari"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"dari"}}}];case"pl":return[{id:"event-handler-pl-full",language:"pl",command:"on",priority:100,template:{format:"gdy {event} na {source}",tokens:[{type:"literal",value:"gdy",alternatives:["kiedy","przy","na"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","przy","z"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"na",markerAlternatives:["w","przy","z"],default:{type:"reference",value:"me"}}}},{id:"event-handler-pl-simple",language:"pl",command:"on",priority:90,template:{format:"gdy {event}",tokens:[{type:"literal",value:"gdy",alternatives:["kiedy","przy","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"pt":return[{id:"event-pt-ao-source",language:"pt",command:"on",priority:115,template:{format:"ao {event} em {source} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\u00e0"]},{type:"role",role:"event"},{type:"literal",value:"em",alternatives:["de","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"em",markerAlternatives:["de","no","na"]}}},{id:"event-pt-quando-source",language:"pt",command:"on",priority:110,template:{format:"quando {event} de {source} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"},{type:"literal",value:"de",alternatives:["em","no","na"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"de",markerAlternatives:["em","no","na"]}}},{id:"event-pt-ao",language:"pt",command:"on",priority:105,template:{format:"ao {event} {body}",tokens:[{type:"literal",value:"ao",alternatives:["\u00e0"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-quando",language:"pt",command:"on",priority:100,template:{format:"quando {event} {body}",tokens:[{type:"literal",value:"quando"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-em",language:"pt",command:"on",priority:95,template:{format:"em {event} {body}",tokens:[{type:"literal",value:"em",alternatives:["no","na"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-pt-se",language:"pt",command:"on",priority:90,template:{format:"se {event} {body}",tokens:[{type:"literal",value:"se"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"qu":return[{id:"event-qu-maykama",language:"qu",command:"on",priority:115,template:{format:"[{source} manta] maykama {event} {body}",tokens:[{type:"group",optional:!0,tokens:[{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"manta",alternatives:["-manta"]}]},{type:"literal",value:"maykama"},{type:"role",role:"event"}]},extraction:{event:{position:2},source:{position:0}}},{id:"event-qu-kaqtin",language:"qu",command:"on",priority:105,template:{format:"{event} kaqtin {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"kaqtin",alternatives:["qtin","ptin"]}]},extraction:{event:{position:0}}},{id:"event-qu-standard",language:"qu",command:"on",priority:100,template:{format:"{event} pi {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"pi",alternatives:["kaqpi","kaqpim"]}]},extraction:{event:{position:0}}}];case"ru":return[{id:"event-handler-ru-full",language:"ru",command:"on",priority:100,template:{format:"\u043f\u0440\u0438 {event} \u043d\u0430 {source}",tokens:[{type:"literal",value:"\u043f\u0440\u0438",alternatives:["\u043a\u043e\u0433\u0434\u0430"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043d\u0430",alternatives:["\u0432","\u043e\u0442"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043d\u0430",markerAlternatives:["\u0432","\u043e\u0442"],default:{type:"reference",value:"me"}}}},{id:"event-handler-ru-simple",language:"ru",command:"on",priority:90,template:{format:"\u043f\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043f\u0440\u0438",alternatives:["\u043a\u043e\u0433\u0434\u0430"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"sw":return[{id:"event-sw-unapo-source",language:"sw",command:"on",priority:115,template:{format:"unapo {event} kutoka {source} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-unapo",language:"sw",command:"on",priority:105,template:{format:"unapo {event} {body}",tokens:[{type:"literal",value:"unapo",alternatives:["wakati wa","wakati"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-kwa-source",language:"sw",command:"on",priority:110,template:{format:"kwa {event} kutoka {source} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"},{type:"literal",value:"kutoka"},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"kutoka"}}},{id:"event-sw-kwa",language:"sw",command:"on",priority:100,template:{format:"kwa {event} {body}",tokens:[{type:"literal",value:"kwa"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-ikiwa",language:"sw",command:"on",priority:95,template:{format:"ikiwa {event} {body}",tokens:[{type:"literal",value:"ikiwa",alternatives:["kama"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-sw-baada-ya",language:"sw",command:"on",priority:90,template:{format:"baada ya {event} {body}",tokens:[{type:"literal",value:"baada ya"},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"th":return[{id:"event-handler-th-svo",language:"th",command:"on",priority:100,template:{format:"\u0e40\u0e21\u0e37\u0e48\u0e2d {event} {action}",tokens:[{type:"literal",value:"\u0e40\u0e21\u0e37\u0e48\u0e2d",alternatives:["\u0e15\u0e2d\u0e19"]},{type:"role",role:"event"},{type:"role",role:"action"}]},extraction:{event:{position:1},action:{position:2}}},{id:"event-handler-th-with-source",language:"th",command:"on",priority:95,template:{format:"\u0e40\u0e21\u0e37\u0e48\u0e2d {event} \u0e08\u0e32\u0e01 {source} {action}",tokens:[{type:"literal",value:"\u0e40\u0e21\u0e37\u0e48\u0e2d",alternatives:["\u0e15\u0e2d\u0e19"]},{type:"role",role:"event"},{type:"literal",value:"\u0e08\u0e32\u0e01"},{type:"role",role:"source"},{type:"role",role:"action"}]},extraction:{event:{position:1},source:{marker:"\u0e08\u0e32\u0e01",position:3},action:{position:4}}}];case"tl":return[...Um({lang:"tl",verb:"ilagay",verbAlts:["maglagay"],eventMarker:"kapag",eventMarkerAlts:["sa"],before:"bago",after:"matapos",order:"verb-first"}),{id:"event-tl-kapag-source",language:"tl",command:"on",priority:115,template:{format:"kapag {event} mula_sa {source} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["sa"]},{type:"role",role:"event"},{type:"literal",value:"mula_sa",alternatives:["galing_sa"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"mula_sa"}}},{id:"event-tl-kapag",language:"tl",command:"on",priority:105,template:{format:"kapag {event} {body}",tokens:[{type:"literal",value:"kapag",alternatives:["sa"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"uk":return[...Um({lang:"uk",verb:"\u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438",verbAlts:["\u043f\u043e\u043a\u043b\u0430\u0434\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438\u0442\u0438","\u043f\u043e\u043c\u0456\u0441\u0442\u0438","\u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438","\u0432\u0441\u0442\u0430\u0432"],eventMarker:"\u043f\u0440\u0438",eventMarkerAlts:["\u043a\u043e\u043b\u0438"],before:"\u0434\u043e",after:"\u043f\u0456\u0441\u043b\u044f",order:"event-first"}),{id:"event-handler-uk-full",language:"uk",command:"on",priority:100,template:{format:"\u043f\u0440\u0438 {event} \u043d\u0430 {source}",tokens:[{type:"literal",value:"\u043f\u0440\u0438",alternatives:["\u043a\u043e\u043b\u0438"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043d\u0430",alternatives:["\u0432","\u0432\u0456\u0434"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"\u043d\u0430",markerAlternatives:["\u0432","\u0432\u0456\u0434"],default:{type:"reference",value:"me"}}}},{id:"event-handler-uk-simple",language:"uk",command:"on",priority:90,template:{format:"\u043f\u0440\u0438 {event}",tokens:[{type:"literal",value:"\u043f\u0440\u0438",alternatives:["\u043a\u043e\u043b\u0438"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"vi":return[{id:"event-handler-vi-full",language:"vi",command:"on",priority:100,template:{format:"khi {event} tr\u00ean {source}",tokens:[{type:"literal",value:"khi",alternatives:["l\u00fac","tr\u00ean"]},{type:"role",role:"event"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\u00ean",alternatives:["t\u1ea1i"]},{type:"role",role:"source"}]}]},extraction:{event:{position:1},source:{marker:"tr\u00ean",markerAlternatives:["t\u1ea1i"],default:{type:"reference",value:"me"}}}},{id:"event-handler-vi-simple",language:"vi",command:"on",priority:90,template:{format:"khi {event}",tokens:[{type:"literal",value:"khi",alternatives:["l\u00fac","tr\u00ean"]},{type:"role",role:"event"}]},extraction:{event:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"zh":return[{id:"event-zh-temporal-source",language:"zh",command:"on",priority:115,template:{format:"{event} \u7684\u65f6\u5019 \u4ece {source} {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65f6\u5019",alternatives:["\u65f6\u5019","\u65f6"]},{type:"literal",value:"\u4ece",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:0},source:{marker:"\u4ece",markerAlternatives:["\u5728"]}}},{id:"event-zh-source",language:"zh",command:"on",priority:110,template:{format:"\u5f53 {event} \u4ece {source} {body}",tokens:[{type:"literal",value:"\u5f53"},{type:"role",role:"event"},{type:"literal",value:"\u4ece",alternatives:["\u5728"]},{type:"role",role:"source"}]},extraction:{event:{position:1},source:{marker:"\u4ece",markerAlternatives:["\u5728"]}}},{id:"event-zh-immediate",language:"zh",command:"on",priority:108,template:{format:"\u4e00 {event} \u5c31 {body}",tokens:[{type:"literal",value:"\u4e00"},{type:"role",role:"event"},{type:"literal",value:"\u5c31"}]},extraction:{event:{position:1}}},{id:"event-zh-temporal",language:"zh",command:"on",priority:105,template:{format:"{event} \u7684\u65f6\u5019 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u7684\u65f6\u5019",alternatives:["\u65f6\u5019","\u65f6"]}]},extraction:{event:{position:0}}},{id:"event-zh-whenever",language:"zh",command:"on",priority:103,template:{format:"\u6bcf\u5f53 {event} {body}",tokens:[{type:"literal",value:"\u6bcf\u5f53",alternatives:["\u6bcf\u6b21"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-circumfix",language:"zh",command:"on",priority:106,template:{format:"\u5f53 {event} \u65f6 {body}",tokens:[{type:"literal",value:"\u5f53"},{type:"role",role:"event"},{type:"literal",value:"\u65f6",alternatives:["\u7684\u65f6\u5019","\u65f6\u5019"]}]},extraction:{event:{position:1}}},{id:"event-zh-standard",language:"zh",command:"on",priority:100,template:{format:"\u5f53 {event} {body}",tokens:[{type:"literal",value:"\u5f53"},{type:"role",role:"event"}]},extraction:{event:{position:1}}},{id:"event-zh-completion",language:"zh",command:"on",priority:95,template:{format:"{event} \u4e86 {body}",tokens:[{type:"role",role:"event"},{type:"literal",value:"\u4e86"}]},extraction:{event:{position:0}}},{id:"event-zh-conditional",language:"zh",command:"on",priority:90,template:{format:"\u5982\u679c {event} {body}",tokens:[{type:"literal",value:"\u5982\u679c",alternatives:["\u82e5","\u5047\u5982"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"ja":return[{id:"event-ja-when",language:"ja",command:"on",priority:95,template:{format:"\u3068\u304d {event} {body}",tokens:[{type:"literal",value:"\u3068\u304d",alternatives:["\u6642","\u3068\u304d\u306b"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"tr":return[{id:"event-tr-when",language:"tr",command:"on",priority:95,template:{format:"iken {event} {body}",tokens:[{type:"literal",value:"iken",alternatives:["durumunda","oldu\u011funda"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"ar":return[...Um({lang:"ar",verb:"\u0636\u0639",verbAlts:["\u0627\u062c\u0639\u0644"],eventMarker:"\u0639\u0646\u062f",eventMarkerAlts:["\u0641\u064a","\u0644\u062f\u0649","\u0639\u0646\u062f\u0645\u0627","\u062d\u064a\u0646","\u062d\u064a\u0646\u0645\u0627","\u0644\u0645\u0651\u0627","\u0644\u0645\u0627"],before:"\u0642\u0628\u0644",after:"\u0628\u0639\u062f",order:"verb-first"}),{id:"event-ar-when",language:"ar",command:"on",priority:95,template:{format:"\u0639\u0646\u062f\u0645\u0627 {event} {body}",tokens:[{type:"literal",value:"\u0639\u0646\u062f\u0645\u0627",alternatives:["\u062d\u064a\u0646","\u0644\u0645\u0651\u0627"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];case"he":return[{id:"event-he-when",language:"he",command:"on",priority:95,template:{format:"\u05db\u05d0\u05e9\u05e8 {event} {body}",tokens:[{type:"literal",value:"\u05db\u05d0\u05e9\u05e8",alternatives:["\u05db\u05e9"]},{type:"role",role:"event"}]},extraction:{event:{position:1}}}];default:return[]}}var Zm=b({"src/patterns/event-handler.ts"(){Im=Object.fromEntries(Object.entries($m={ko:{"\ud074\ub9ad":"click","\uc785\ub825":"input","\ubcc0\uacbd":"change","\uc81c\ucd9c":"submit","\ud0a4\ub2e4\uc6b4":"keydown","\ud0a4\uc5c5":"keyup","\ub9c8\uc6b0\uc2a4\uc624\ubc84":"mouseover","\ub9c8\uc6b0\uc2a4\uc544\uc6c3":"mouseout","\ub9c8\uc6b0\uc2a4\ub2e4\uc6b4":"mousedown","\ub9c8\uc6b0\uc2a4\uc5c5":"mouseup","\ud3ec\ucee4\uc2a4":"focus","\ube14\ub7ec":"blur","\ub85c\ub4dc":"load","\ub9ac\uc0ac\uc774\uc988":"resize","\uc2a4\ud06c\ub864":"scroll","\ub9c8\uc6b0\uc2a4\uc5d4\ud130":"mouseenter","\ub9c8\uc6b0\uc2a4\ub9ac\ube0c":"mouseleave","\ub9c8\uc6b0\uc2a4\ubb34\ube0c":"mousemove","\ud0a4\ud504\ub808\uc2a4":"keypress","\ud130\uce58\uc885\ub8cc":"touchend","\ud130\uce58\ucde8\uc18c":"touchcancel"},ja:{"\u30af\u30ea\u30c3\u30af":"click","\u5165\u529b":"input","\u5909\u66f4":"change","\u9001\u4fe1":"submit","\u30ad\u30fc\u30c0\u30a6\u30f3":"keydown","\u30ad\u30fc\u30a2\u30c3\u30d7":"keyup","\u30ad\u30fc\u30d7\u30ec\u30b9":"keypress","\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc":"mouseover","\u30de\u30a6\u30b9\u30a2\u30a6\u30c8":"mouseout","\u30de\u30a6\u30b9\u62bc\u4e0b":"mousedown","\u30de\u30a6\u30b9\u89e3\u653e":"mouseup","\u30d5\u30a9\u30fc\u30ab\u30b9":"focus","\u30d6\u30e9\u30fc":"blur","\u30ed\u30fc\u30c9":"load","\u8aad\u307f\u8fbc\u307f":"load","\u30b5\u30a4\u30ba\u5909\u66f4":"resize","\u30b9\u30af\u30ed\u30fc\u30eb":"scroll","\u307c\u304b\u3057":"blur"},ar:{"\u0627\u0644\u0646\u0642\u0631":"click","\u0646\u0642\u0631":"click","\u0627\u0644\u0625\u062f\u062e\u0627\u0644":"input","\u0625\u062f\u062e\u0627\u0644":"input","\u0627\u0644\u062a\u063a\u064a\u064a\u0631":"change","\u062a\u063a\u064a\u064a\u0631":"change","\u0627\u0644\u0625\u0631\u0633\u0627\u0644":"submit","\u0625\u0631\u0633\u0627\u0644":"submit","\u0636\u063a\u0637 \u0627\u0644\u0645\u0641\u062a\u0627\u062d":"keydown","\u0631\u0641\u0639 \u0627\u0644\u0645\u0641\u062a\u0627\u062d":"keyup","\u062a\u0645\u0631\u064a\u0631 \u0627\u0644\u0645\u0627\u0648\u0633":"mouseover","\u0627\u0644\u062a\u0631\u0643\u064a\u0632":"focus","\u062a\u062d\u0645\u064a\u0644":"load","\u062a\u0645\u0631\u064a\u0631":"scroll","\u062a\u0631\u0643\u064a\u0632":"focus","\u0645\u0641\u062a\u0627\u062d \u0623\u0633\u0641\u0644":"keydown","\u0645\u0641\u062a\u0627\u062d \u0623\u0639\u0644\u0649":"keyup","\u0641\u0623\u0631\u0629 \u0641\u0648\u0642":"mouseover","\u062a\u063a\u064a\u064a\u0631 \u062d\u062c\u0645":"resize"},es:{clic:"click",click:"click",entrada:"input",cambio:"change","env\u00edo":"submit",enviar:"submit","tecla abajo":"keydown","tecla arriba":"keyup","rat\u00f3n encima":"mouseover","rat\u00f3n fuera":"mouseout",enfoque:"focus",desenfoque:"blur",carga:"load",desplazamiento:"scroll",cambiar:"change",enfocar:"focus",desenfocar:"blur",cargar:"load",desplazar:"scroll",dobleclic:"dblclick","rat\u00f3nentrar":"mouseenter","rat\u00f3nsalir":"mouseleave","rat\u00f3nmover":"mousemove",teclapresar:"keypress",descargar:"unload",toqueempezar:"touchstart",toqueterminar:"touchend",toquemover:"touchmove",toquecancelar:"touchcancel"},tr:{"t\u0131klama":"click","t\u0131kla":"click","t\u0131k":"click","giri\u015f":"input",girdi:"input","de\u011fi\u015fiklik":"change","de\u011fi\u015fim":"change","g\u00f6nderme":"submit","g\u00f6nder":"submit","tu\u015fbasma":"keydown","tu\u015fb\u0131rakma":"keyup",fare_bas:"mousedown","fare_b\u0131rak":"mouseup","farei\u00e7inde":"mouseover","fared\u0131\u015f\u0131nda":"mouseout",odaklanma:"focus",odak:"focus","bulan\u0131kl\u0131k":"blur","y\u00fckleme":"load","y\u00fckle":"load","boyutland\u0131rma":"resize","boyutland\u0131r":"resize","kayd\u0131rma":"scroll","bulan\u0131k":"blur",farebas:"mousedown","fareb\u0131rak":"mouseup","kayd\u0131r":"scroll"},pt:{clique:"click",clicar:"click",click:"click",entrada:"input",inserir:"input","mudan\u00e7a":"change",mudanca:"change",alterar:"change",envio:"submit",enviar:"submit","tecla baixo":"keydown","tecla cima":"keyup","pressionar tecla":"keydown","soltar tecla":"keyup","mouse sobre":"mouseover","mouse fora":"mouseout",foco:"focus",focar:"focus",desfoque:"blur",desfocar:"blur",carregar:"load",carregamento:"load",rolagem:"scroll",rolar:"scroll",duploClique:"dblclick",mouseEntrar:"mouseenter",mouseSair:"mouseleave",mouseMover:"mousemove",teclaPressionar:"keypress",descarregar:"unload","toqueIn\u00edcio":"touchstart",toqueFim:"touchend",toqueMover:"touchmove",toqueCancelar:"touchcancel"},zh:{"\u70b9\u51fb":"click","\u5355\u51fb":"click","\u53cc\u51fb":"dblclick","\u8f93\u5165":"input","\u6539\u53d8":"change","\u53d8\u5316":"change","\u53d8\u66f4":"change","\u63d0\u4ea4":"submit","\u53d1\u9001":"submit","\u6309\u952e":"keydown","\u952e\u5165":"keydown","\u677e\u952e":"keyup","\u9f20\u6807\u8fdb\u5165":"mouseover","\u9f20\u6807\u79fb\u5165":"mouseover","\u9f20\u6807\u79bb\u5f00":"mouseout","\u9f20\u6807\u79fb\u51fa":"mouseout","\u7126\u70b9":"focus","\u805a\u7126":"focus","\u5931\u7126":"blur","\u6a21\u7cca":"blur","\u52a0\u8f7d":"load","\u8f7d\u5165":"load","\u6eda\u52a8":"scroll","\u6309\u952e\u6309\u4e0b":"keydown","\u9f20\u6807\u79fb\u52a8":"mousemove","\u5378\u8f7d":"unload","\u8c03\u6574\u5927\u5c0f":"resize","\u89e6\u6478\u5f00\u59cb":"touchstart","\u89e6\u6478\u79fb\u52a8":"touchmove"},fr:{clic:"click",cliquer:"click",click:"click",saisie:"input","entr\u00e9e":"input",changement:"change",changer:"change",soumettre:"submit",soumission:"submit",envoi:"submit","touche bas":"keydown","touche haut":"keyup","souris dessus":"mouseover","souris dehors":"mouseout",focus:"focus",focaliser:"focus","d\u00e9focus":"blur","d\u00e9focaliser":"blur",chargement:"load",charger:"load","d\u00e9filement":"scroll","d\u00e9filer":"scroll",flou:"blur",doubleclic:"dblclick",sourisentrer:"mouseenter",sourissortir:"mouseleave",sourisbouger:"mousemove","touchepress\u00e9e":"keypress","d\u00e9charger":"unload",touchercommencer:"touchstart",toucherfin:"touchend",toucherbouger:"touchmove",toucherannuler:"touchcancel"},de:{klick:"click",klicken:"click",click:"click",eingabe:"input",eingeben:"input","\u00e4nderung":"change","\u00e4ndern":"change",absenden:"submit",einreichen:"submit","taste runter":"keydown","taste hoch":"keyup","maus \u00fcber":"mouseover","maus raus":"mouseout",fokus:"focus",fokussieren:"focus",defokussieren:"blur","unsch\u00e4rfe":"blur",laden:"load",ladung:"load",scrollen:"scroll","bl\u00e4ttern":"scroll","taste unten":"keydown","taste oben":"keyup","maus dr\u00fcber":"mouseover","maus weg":"mouseout",doppelklick:"dblclick",mauseintreten:"mouseenter",mausverlassen:"mouseleave",mausbewegen:"mousemove","tastedr\u00fccken":"keypress",entladen:"unload","ber\u00fchrungstart":"touchstart","ber\u00fchrungend":"touchend","ber\u00fchrungbewegen":"touchmove","ber\u00fchrungabbrechen":"touchcancel"},id:{klik:"click",click:"click",masukan:"input",input:"input",ubah:"change",perubahan:"change",kirim:"submit","tekan tombol":"keydown","lepas tombol":"keyup","mouse masuk":"mouseover","mouse keluar":"mouseout",fokus:"focus",blur:"blur",muat:"load",memuat:"load",gulir:"scroll",menggulir:"scroll",tekan_tombol:"keydown",keyup:"keyup",arahkan:"mouseover",tinggalkan:"mouseout",bongkar:"unload"},bn:{"\u0995\u09cd\u09b2\u09bf\u0995":"click","\u0987\u09a8\u09aa\u09c1\u099f":"input","\u099c\u09ae\u09be":"submit","\u09b2\u09cb\u09a1":"load","\u09b8\u09cd\u0995\u09cd\u09b0\u09cb\u09b2":"scroll","\u09b0\u09bf\u09b8\u09be\u0987\u099c":"resize","\u099d\u09be\u09aa\u09b8\u09be":"blur","\u09ab\u09cb\u0995\u09be\u09b8":"focus","\u09aa\u09b0\u09bf\u09ac\u09b0\u09cd\u09a4\u09a8":"change"},qu:{click:"click","\u00f1it'iy":"click","\u00f1itiy":"click",yaykuchiy:"input",yaykuy:"input",tikray:"change","t'ikray":"change",kambiay:"change",apachiy:"submit",kachay:"submit",apaykachay:"submit","llave uray":"keydown","llave hawa":"keyup","q'away":"focus",qhaway:"focus",paqariy:"blur","mana q'away":"blur",cargay:"load",apakuy:"load",apamuy:"load",kunray:"scroll",muyuy:"scroll",hatun_kay:"resize"},sw:{bofya:"click",click:"click",kubofya:"click",ingiza:"input",kubadilisha:"change",mabadiliko:"change",tuma:"submit",kutuma:"submit","bonyeza chini":"keydown","bonyeza juu":"keyup","panya juu":"mouseover","panya nje":"mouseout",lenga:"focus",kulenga:"focus",blur:"blur",pakia:"load",kupakia:"load",sogeza:"scroll",kusogeza:"scroll",bonyeza:"click",ingizo:"input",kitufe_shuka:"keydown",kitufe_juu:"keyup",panya_nje:"mouseout",wasilisha:"submit","sogeza juu":"mouseover",shuka:"unload"},vi:{"\u0111\u1ed5i k\u00edch th\u01b0\u1edbc":"resize"}}).map(([e,t])=>{const r={};for(const[e,i]of Object.entries(t))i in r||(r[i]=e);return[e,r]})),Km={ar:new Set(["mouseover"]),bn:new Set(["resize"]),de:new Set(["keydown","keyup","load","mouseout","mouseover"]),fr:new Set(["blur"]),id:new Set(["input","keyup","mouseout","mouseover"]),ja:new Set(["keypress","mousedown","mouseup","resize"]),qu:new Set(["change","focus","load","resize","submit"]),sw:new Set(["change","click","input","keydown","keyup","mouseout","mouseover","submit"]),tr:new Set(["keydown","keyup","load","mousedown","mouseout","mouseover","mouseup","resize","scroll"]),zh:new Set(["focus","keyup","mouseout","mouseover"])}}});function Ym(e,t){const r="SOV"===t?"sovPosition":"svoPosition";return[...e].sort((e,t)=>(e[r]??99)-(t[r]??99))}var Xm=b({"src/parser/utils/role-positioning.ts"(){}});function Qm(e,t){let r,i;if(e.markerOverride&&void 0!==e.markerOverride[t.code])r=e.markerOverride[t.code],i=r?ii(e,t.code,r):void 0;else{const a=t.roleMarkers[e.role];if(a){r=a.primary;const n=ii(e,t.code,r)??[],o=[...new Set([...a.alternatives??[],...n])].filter(e=>e!==r);i=o.length?o:void 0}}return{marker:r,alternatives:i}}function Jm(e,t,r){r.roles.find(e=>"scope"===e.role&&!e.required)&&(e.push({type:"group",optional:!0,tokens:[{type:"literal",value:"on"},{type:"role",role:"scope",optional:!0,expectedTypes:["selector","reference"]}]}),t.scope={fromRole:"scope"})}function ec(e,t,r,i){rc(e,t,r,i,"manner",{requireMarker:!0})}function tc(e,t,r,i){rc(e,t,r,i,"recipient",{requireMarker:!1})}function rc(e,t,r,i,a,n){const o=r.roles.find(e=>e.role===a&&!e.required);if(!o)return;const s=o.markerOverride?.[i];n.requireMarker&&!s||(e.push({type:"group",optional:!0,tokens:[...(s?s.split(/\s+/):[]).map(e=>({type:"literal",value:e})),{type:"role",role:a,optional:!0,expectedTypes:o.expectedTypes,...void 0!==o.valueShape?{valueShape:o.valueShape}:{}}]}),t[a]={fromRole:a})}function ic(e){if(e.roles.some(e=>"patient"===e.role))return"patient";const t=e.roles.filter(e=>e.required),r=t.find(t=>t.role===e.primaryRole)??t[0];return r&&"event"!==r.role?r.role:"patient"}function ac(e,t,r){const i=e.roles.find(e=>e.role===r);if(!i||"patient"===r)return[{type:"role",role:r,optional:!1}];const{marker:a,alternatives:n}=Qm(i,t),o={type:"role",role:r,optional:!1,...void 0!==i.valueShape?{valueShape:i.valueShape}:{}};if(!a)return[o];const s=a.split(/\s+/).filter(Boolean),l={type:"group",optional:!0,tokens:s.map(e=>({type:"literal",value:e,...1===s.length&&n?.length?{alternatives:n}:{}}))};return"after"===(t.roleMarkers[r]?.position??"before")?[o,l]:[l,o]}function nc(e,t,r,i,a){for(const n of r.roles){if(n.required)continue;if(a.has(n.role))continue;if(t[n.role])continue;((n.markerOverride?.[i.code]??i.roleMarkers[n.role]?.primary)||void 0!==n.valueShape)&&(e.push({type:"group",optional:!0,tokens:bc(n,i)}),t[n.role]=n.default?{fromRole:n.role,default:n.default}:{fromRole:n.role})}}function oc(e,t,r,i,a){const n=[],o="swap"===e.action,s=o?"destination":"patient";n.push({type:"role",role:s,optional:!1});const l=t.roleMarkers.patient;if(l){n.push(l.alternatives?{type:"literal",value:l.primary,alternatives:l.alternatives}:{type:"literal",value:l.primary})}if(n.push({type:"role",role:"event",optional:!1}),"after"===i.position){const e=i.primary.split(/\s+/);if(e.length>1)for(const t of e)n.push({type:"literal",value:t});else{n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}}n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary}),n.push(...lt(e,t.roleMarkers.source));let p=t.roleMarkers.destination;if(o&&p){const r=e.roles.find(e=>"patient"===e.role)?.markerOverride?.[t.code];if(r&&r!==p.primary){const e=p.alternatives??[];e.includes(r)||(p={...p,alternatives:[...e,r]})}}var m,c;n.push(...o?(m=e,c=p,mt(m,c,"patient")):pt(e,p));const d={action:{value:e.action},event:{fromRole:"event"},[s]:{fromRole:s},...o?{}:ot(e),...st(e)};return tc(n,d,e,t.code),ec(n,d,e,t.code),{id:`${e.action}-event-${t.code}-sov-patient-first`,language:t.code,command:"on",priority:(a.basePriority??100)+45,template:{format:`{patient} ${l?.primary||""} {event} ${i.primary} ${r.primary}`,tokens:n},extraction:d}}var sc=b({"src/generators/event-handlers-sov.ts"(){wt(),Ac(),pi()}});function lc(e,t,r){const i=ii(e,t.code,r.primary)??[],a=[...new Set([...r.alternatives??[],...i])].filter(e=>e!==r.primary);return a.length?a:void 0}function pc(e,t,r,i,a){const n=[];if("before"===i.position){n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}n.push({type:"role",role:"event",optional:!1});n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary});const o=ic(e);n.push(...ac(e,t,o));const s=t.roleMarkers.destination,l=e.roles.some(e=>"destination"===e.role);s&&l&&"destination"!==o&&n.push({type:"group",optional:!0,tokens:[s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary},{type:"role",role:"destination",optional:!0}]}),"source"!==o&&n.push(...lt(e,t.roleMarkers.source));const p={action:{value:e.action},event:{fromRole:"event"},[o]:{fromRole:o},..."destination"===o?{}:ot(e),..."source"===o?{}:st(e)};return nc(n,p,e,t,new Set(["event",o,"destination","source"])),{id:`${e.action}-event-${t.code}-vso`,language:t.code,command:"on",priority:(a.basePriority??100)+50,template:{format:`${i.primary} {event} ${r.primary} {${o}} ${s?.primary||""} {destination?}`,tokens:n},extraction:p}}function mc(e,t,r,i,a){const n=[];if("before"===i.position){n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}n.push({type:"role",role:"event",optional:!1});n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary});const o=[...e.roles.filter(e=>e.required)].sort((e,t)=>(e.svoPosition??999)-(t.svoPosition??999));for(const e of o){let r,i;if(e.markerOverride&&void 0!==e.markerOverride[t.code])r=e.markerOverride[t.code],i=r?ii(e,t.code,r):void 0;else{const a=t.roleMarkers[e.role];a&&(r=a.primary,i=lc(e,t,a))}if(r){n.push(i?{type:"literal",value:r,alternatives:i}:{type:"literal",value:r})}n.push({type:"role",role:e.role,optional:!1})}const s=o.map(e=>`{${e.role}}`).join(" "),l={action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(o.map(e=>[e.role,{fromRole:e.role}]))};return Jm(n,l,e),{id:`${e.action}-event-${t.code}-vso-2role`,language:t.code,command:"on",priority:(a.basePriority??100)+55,template:{format:`${i.primary} {event} ${r.primary} ${s}`,tokens:n},extraction:l}}var cc,dc=b({"src/generators/event-handlers-vso.ts"(){wt(),sc(),pi()}});function uc(){return Wt().map(e=>_t(e)).filter(e=>void 0!==e)}function yc(e,t,r=cc){const i=`${e.action}-${t.code}-generated`,a=r.basePriority??100,n=t.keywords[e.action];if(!n)throw Error(`No keyword translation for '${e.action}' in ${t.code}`);const o=function(e,t,r){const i=[],a=r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary},n=function(e,t){const r=[],i=Ym(e.roles,t.wordOrder);for(const e of i){const i=bc(e,t);e.required?r.push(...i):r.push({type:"group",optional:!0,tokens:i})}return r}(e,t);switch(t.wordOrder){case"SVO":case"VSO":default:i.push(a),i.push(...n);break;case"SOV":i.push(...n),i.push(a)}return function(e){const t=[];for(const r of e){const e=t[t.length-1];if(e&&"literal"===e.type&&"literal"===r.type&&e.value===r.value){const i=[...e.alternatives??[],...r.alternatives??[]];i.length&&(t[t.length-1]={...e,alternatives:[...new Set(i)]});continue}t.push(r)}return t}(i)}(e,t,n),s=xc(e,t),l=function(e,t,r){const i=[],a=Ym(e.roles,t.wordOrder),n=a.map(e=>{const r=ri(e,t);let i="";return i=r&&r.primary?"before"===r.position?`${r.primary} {${e.role}}`:`{${e.role}} ${r.primary}`:`{${e.role}}`,e.required?i:`[${i}]`});switch(t.wordOrder){case"SVO":case"VSO":default:i.push(r.primary,...n);break;case"SOV":i.push(...n,r.primary)}return i.join(" ")}(e,t,n);return{id:i,language:t.code,command:e.action,priority:a,template:{format:l,tokens:o},extraction:s}}function vc(e,t,r=cc){if(0===e.roles.filter(e=>!e.required).length)return null;const i=e.roles.filter(e=>e.required);return{...yc({...e,roles:i},t,r),id:`${e.action}-${t.code}-generated-simple`,priority:(r.basePriority??100)-5,extraction:xc(e,t)}}function fc(e,t,r=cc){if("SOV"!==t.wordOrder)return null;const i=e.roles.filter(e=>e.required);if(1!==i.length)return null;const a=t.keywords[e.action];if(!a)return null;const n=a.alternatives?{type:"literal",value:a.primary,alternatives:a.alternatives}:{type:"literal",value:a.primary},o=i.flatMap(e=>{const r=e.valuePrefixLiteral?.[t.code],i={type:"role",role:e.role,optional:!1,expectedTypes:e.expectedTypes};return r?[{type:"literal",value:r},i]:[i]});return{id:`${e.action}-${t.code}-generated-verb-first`,language:t.code,command:e.action,priority:(r.basePriority??100)-20,template:{format:`${a.primary} <${i[0].role}>`,tokens:[n,...o]},extraction:xc(e,t)}}function hc(e,t,r=cc){const i=[];if(i.push(yc(e,t,r)),r.generateSimpleVariants){const a=vc(e,t,r);a&&i.push(a)}for(const a of e.omitRoleVariants??[]){const n=yc({...e,roles:e.roles.filter(e=>e.role!==a)},t,r);i.push({...n,id:`${e.action}-${t.code}-generated-no-${a}`,priority:(r.basePriority??100)-8})}for(const a of e.widenTypeVariants??[]){if(a.excludeLanguages?.includes(t.code))continue;const n=yc({...e,roles:e.roles.map(e=>e.role===a.role?{...e,expectedTypes:[...a.types]}:e)},t,r);i.push({...n,id:`${e.action}-${t.code}-generated-${a.idSuffix}`,priority:(r.basePriority??100)-(a.priorityDelta??15)})}if(!1!==r.generateVerbFirstVariants){const a=fc(e,t,r);a&&i.push(a)}for(const a of e.rolePrefixLiteralVariants??[]){const n=a.literal[t.code];if(!n)continue;const{rolePrefixLiteralVariants:o,...s}=e,l={...s,roles:e.roles.map(e=>e.role===a.role?{...e,valuePrefixLiteral:{[t.code]:n}}:e)},p=a.priorityDelta??5,m=a.methodCarrier?{[a.methodCarrier]:{value:n}}:{},c=yc(l,t,r);if(i.push({...c,id:`${e.action}-${t.code}-generated-${a.idSuffix}`,priority:(r.basePriority??100)+p,extraction:{...c.extraction,...m}}),!1!==r.generateVerbFirstVariants){const n=fc(l,t,r);n&&i.push({...n,id:`${e.action}-${t.code}-generated-verb-first-${a.idSuffix}`,priority:(r.basePriority??100)-20+p,extraction:{...n.extraction,...m}})}}return i}function gc(e,t=cc){const r=[],i=ut();for(const a of i){if(!e.keywords[a.action])continue;const i=hc(a,e,t);if(r.push(...i),e.eventHandler?.eventMarker){const i=wc(a,e,t);r.push(...i)}}return r}function kc(e,t,r=cc){const i=[],a=t??uc();for(const t of a){if(!t.keywords[e.action])continue;const a=hc(e,t,r);i.push(...a)}return i}function zc(e,t=cc){const r=[],i=e??uc();for(const e of i){const i=gc(e,t);r.push(...i)}return r}function wc(e,t,r=cc){if(!t.eventHandler||!t.eventHandler.eventMarker)return[];const i=[],a=t.eventHandler.eventMarker,n=t.keywords[e.action];if(!n)return[];if(0===e.roles.length)return[];if("js"===e.action)return[];const o=2===e.roles.filter(e=>e.required).length;if("SOV"===t.wordOrder)if(o)i.push(function(e,t,r,i,a){const n=[];if(n.push({type:"role",role:"event",optional:!1}),"after"===i.position){const e=i.primary.split(/\s+/);if(e.length>1)for(const t of e)n.push({type:"literal",value:t});else n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}const o=[...e.roles.filter(e=>e.required)].sort((e,t)=>(e.sovPosition??999)-(t.sovPosition??999));for(const e of o){n.push({type:"role",role:e.role,optional:!1});const{marker:r,alternatives:i}=Qm(e,t);r&&n.push(i?{type:"literal",value:r,alternatives:i}:{type:"literal",value:r})}n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary});const s=o.map(e=>`{${e.role}}`).join(" "),l={action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(o.map(e=>[e.role,{fromRole:e.role}]))};return Jm(n,l,e),{id:`${e.action}-event-${t.code}-sov-2role`,language:t.code,command:"on",priority:(a.basePriority??100)+55,template:{format:`{event} ${i.primary} ${s} ${r.primary}`,tokens:n},extraction:l}}(e,t,n,a,r)),i.push(function(e,t,r,i,a){const n=[],o=[...e.roles.filter(e=>e.required)].sort((e,t)=>(e.sovPosition??999)-(t.sovPosition??999)),s=o[0];n.push({type:"role",role:s.role,optional:!1});const{marker:l,alternatives:p}=Qm(s,t);l&&n.push(p?{type:"literal",value:l,alternatives:p}:{type:"literal",value:l});if(n.push({type:"role",role:"event",optional:!1}),"after"===i.position){const e=i.primary.split(/\s+/);if(e.length>1)for(const t of e)n.push({type:"literal",value:t});else n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary});const m=o[1];n.push({type:"role",role:m.role,optional:!1});const{marker:c,alternatives:d}=Qm(m,t);c&&n.push(d?{type:"literal",value:c,alternatives:d}:{type:"literal",value:c});const u={action:{value:e.action},event:{fromRole:"event"},[s.role]:{fromRole:s.role},[m.role]:{fromRole:m.role}};return Jm(n,u,e),{id:`${e.action}-event-${t.code}-sov-2role-dest-first`,language:t.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`{${s.role}} {event} ${i.primary} ${r.primary} {${m.role}}`,tokens:n},extraction:u}}(e,t,n,a,r)),i.push(function(e,t,r,i,a){const n=[],o=[...e.roles.filter(e=>e.required)].sort((e,t)=>(e.sovPosition??999)-(t.sovPosition??999));for(const e of o){n.push({type:"role",role:e.role,optional:!1});const{marker:r,alternatives:i}=Qm(e,t);r&&n.push(i?{type:"literal",value:r,alternatives:i}:{type:"literal",value:r})}if(n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary}),n.push({type:"role",role:"event",optional:!1}),"after"===i.position){const e=i.primary.split(/\s+/);if(e.length>1)for(const t of e)n.push({type:"literal",value:t});else n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}const s=o.map(e=>`{${e.role}}`).join(" "),l={action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(o.map(e=>[e.role,{fromRole:e.role}]))};return Jm(n,l,e),{id:`${e.action}-event-${t.code}-sov-2role-event-last`,language:t.code,command:"on",priority:(a.basePriority??100)+40,template:{format:`${s} ${r.primary} {event} ${i.primary}`,tokens:n},extraction:l}}(e,t,n,a,r));else{i.push(function(e,t,r,i,a){const n=[];if(n.push({type:"role",role:"event",optional:!1}),"after"===i.position){const e=i.primary.split(/\s+/);if(e.length>1)for(const t of e)n.push({type:"literal",value:t});else n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}const o=ic(e),s=t.roleMarkers.destination,l=e.roles.some(e=>"destination"===e.role);s&&l&&"destination"!==o&&n.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary}]});const p=t.roleMarkers.source,m=e.roles.some(e=>"source"===e.role);p&&m&&"source"!==o&&n.push({type:"group",optional:!0,tokens:[{type:"role",role:"source",optional:!0},p.alternatives?{type:"literal",value:p.primary,alternatives:p.alternatives}:{type:"literal",value:p.primary}]}),n.push(...ac(e,t,o));const c=t.roleMarkers.patient;c&&"patient"===o&&n.push(c.alternatives?{type:"literal",value:c.primary,alternatives:c.alternatives}:{type:"literal",value:c.primary});n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary}),"source"!==o&&n.push(...lt(e,t.roleMarkers.source)),"destination"!==o&&n.push(...pt(e,t.roleMarkers.destination));const d={action:{value:e.action},event:{fromRole:"event"},[o]:{fromRole:o},..."destination"===o?{}:ot(e),..."source"===o?{}:st(e)};return nc(n,d,e,t,new Set(["event",o,"destination","source"])),{id:`${e.action}-event-${t.code}-sov`,language:t.code,command:"on",priority:(a.basePriority??100)+50,template:{format:`{event} ${i.primary} {destination?} {${o}} ${c?.primary||""} ${r.primary}`,tokens:n},extraction:d}}(e,t,n,a,r)),i.push(oc(e,t,n,a,r));const o=function(e,t,r,i,a){const n=e.roles.find(e=>"source"===e.role);if(!n)return null;const{marker:o,alternatives:s}=Qm(n,t),l=t.roleMarkers.patient;if(!o)return null;if(o===i.primary||o===l?.primary)return null;const p=[];p.push({type:"role",role:"patient",optional:!1}),l&&p.push(l.alternatives?{type:"literal",value:l.primary,alternatives:l.alternatives}:{type:"literal",value:l.primary}),p.push({type:"role",role:"source",optional:!1,...n.expectedTypes?{expectedTypes:n.expectedTypes}:{},...void 0!==n.valueShape?{valueShape:n.valueShape}:{}});for(const e of o.split(/\s+/))p.push(s&&1===o.split(/\s+/).length?{type:"literal",value:e,alternatives:s}:{type:"literal",value:e});if(p.push({type:"role",role:"event",optional:!1}),"after"===i.position){const e=i.primary.split(/\s+/);if(e.length>1)for(const t of e)p.push({type:"literal",value:t});else p.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}p.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary});const m={action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},source:{fromRole:"source"}};return tc(p,m,e,t.code),ec(p,m,e,t.code),{id:`${e.action}-event-${t.code}-sov-source-fronted`,language:t.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`{patient} ${l?.primary||""} {source} ${o} {event} ${i.primary} ${r.primary}`,tokens:p},extraction:m}}(e,t,n,a,r);o&&i.push(o);const s=t.roleMarkers.destination;s&&s.primary!==a.primary&&i.push(function(e,t,r,i,a){const n=[];n.push({type:"role",role:"patient",optional:!1});const o=t.roleMarkers.patient;o&&n.push(o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary});const s=t.roleMarkers.destination;if(s&&(n.push({type:"role",role:"destination",optional:!1}),n.push(s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary})),n.push({type:"role",role:"event",optional:!1}),"after"===i.position){const e=i.primary.split(/\s+/);if(e.length>1)for(const t of e)n.push({type:"literal",value:t});else n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}return n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary}),{id:`${e.action}-event-${t.code}-sov-patient-first-dest`,language:t.code,command:"on",priority:(a.basePriority??100)+40,template:{format:`{patient} ${o?.primary||""} {destination} ${s?.primary||""} {event} ${i.primary} ${r.primary}`,tokens:n},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},destination:{fromRole:"destination"}}}}(e,t,n,a,r));const l=a.primary.split(/\s+/),p=a.alternatives?.some(e=>!e.includes(" ")&&e.length>1);l.length>1&&p&&i.push(function(e,t,r,i,a){const n=[];n.push({type:"role",role:"event",optional:!1});const o=i.alternatives?.filter(e=>!e.includes(" ")&&e.length>1)||[];o.length>0&&n.push({type:"literal",value:o[0],alternatives:o.slice(1)});const s=t.roleMarkers.destination;s&&n.push({type:"group",optional:!0,tokens:[{type:"role",role:"destination",optional:!0},s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary}]}),n.push({type:"role",role:"patient",optional:!1});const l=t.roleMarkers.patient;l&&n.push(l.alternatives?{type:"literal",value:l.primary,alternatives:l.alternatives}:{type:"literal",value:l.primary});return n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary}),n.push(...lt(e,t.roleMarkers.source)),n.push(...pt(e,t.roleMarkers.destination)),{id:`${e.action}-event-${t.code}-sov-compact`,language:t.code,command:"on",priority:(a.basePriority??100)+52,template:{format:`{event}${o[0]||""} {patient} ${r.primary}`,tokens:n},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...ot(e),...st(e)}}}(e,t,n,a,r)),i.push(function(e,t,r,i,a){const n=[];if(n.push({type:"role",role:"event",optional:!1}),"after"===i.position){const e=i.primary.split(/\s+/);if(e.length>1)for(const t of e)n.push({type:"literal",value:t});else n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary})}return n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary}),{id:`${e.action}-event-${t.code}-sov-simple`,language:t.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`{event} ${i.primary} ${r.primary}`,tokens:n},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{default:{type:"reference",value:"me"}}}}}(e,t,n,a,r));const m=function(e,t,r,i){const a=t.eventHandler?.temporalMarkers;if(!a||0===a.length)return null;const n=[];n.push({type:"role",role:"event",optional:!1}),t.possessive?.marker&&n.push({type:"group",optional:!0,tokens:[{type:"literal",value:t.possessive.marker}]}),n.push({type:"literal",value:a[0],alternatives:a.slice(1)}),n.push({type:"role",role:"patient",optional:!1});const o=t.roleMarkers.patient;o?.primary&&n.push(o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary});return n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary}),{id:`${e.action}-event-${t.code}-sov-temporal`,language:t.code,command:"on",priority:(i.basePriority??100)+49,template:{format:`{event} ${a[0]} {patient} ${r.primary}`,tokens:n},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"}}}}(e,t,n,r);m&&i.push(m)}else"VSO"===t.wordOrder?o?(i.push(mc(e,t,n,a,r)),i.push(function(e,t,r,i,a){const n=[];n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary});const o=[...e.roles.filter(e=>e.required)].sort((e,t)=>(e.svoPosition??999)-(t.svoPosition??999));for(const e of o){let r,i;if(e.markerOverride&&void 0!==e.markerOverride[t.code])r=e.markerOverride[t.code],i=r?ii(e,t.code,r):void 0;else{const a=t.roleMarkers[e.role];a&&(r=a.primary,i=lc(e,t,a))}r&&n.push(i?{type:"literal",value:r,alternatives:i}:{type:"literal",value:r}),n.push({type:"role",role:e.role,optional:!1})}"before"===i.position&&n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary});n.push({type:"role",role:"event",optional:!1});const s=o.map(e=>`{${e.role}}`).join(" "),l={action:{value:e.action},event:{fromRole:"event"},...Object.fromEntries(o.map(e=>[e.role,{fromRole:e.role}]))};return Jm(n,l,e),{id:`${e.action}-event-${t.code}-vso-verb-first-2role`,language:t.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`${r.primary} ${s} ${i.primary} {event}`,tokens:n},extraction:l}}(e,t,n,a,r))):(i.push(pc(e,t,n,a,r)),i.push(function(e,t,r,i,a){const n=[];n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary});const o="swap"===e.action;n.push({type:"role",role:o?"destination":"patient",optional:!1});const s=o?void 0:t.roleMarkers.destination;s&&n.push({type:"group",optional:!0,tokens:[s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary},{type:"role",role:"destination",optional:!0}]}),n.push(...lt(e,t.roleMarkers.source)),"before"===i.position&&n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary});if(n.push({type:"role",role:"event",optional:!1}),o){const r=e.roles.find(e=>"patient"===e.role)?.markerOverride?.[t.code];r&&n.push({type:"group",optional:!0,tokens:[{type:"literal",value:r},{type:"role",role:"patient",optional:!1}]})}const l={action:{value:e.action},event:{fromRole:"event"},[o?"destination":"patient"]:{fromRole:o?"destination":"patient"},...o?{}:ot(e),...st(e)};return ec(n,l,e,t.code),{id:`${e.action}-event-${t.code}-vso-verb-first`,language:t.code,command:"on",priority:(a.basePriority??100)+45,template:{format:`${r.primary} {patient} ${s?.primary||""} {destination?} ${i.primary} {event}`,tokens:n},extraction:l}}(e,t,n,a,r)),t.eventHandler?.negationMarker&&i.push(function(e,t,r,i,a){const n=[],o=t.eventHandler?.negationMarker;"before"===i.position&&n.push(i.alternatives?{type:"literal",value:i.primary,alternatives:i.alternatives}:{type:"literal",value:i.primary});o&&n.push(o.alternatives?{type:"literal",value:o.primary,alternatives:o.alternatives}:{type:"literal",value:o.primary});n.push({type:"role",role:"event",optional:!1}),n.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary}),n.push({type:"role",role:"patient",optional:!1});const s=t.roleMarkers.destination;return s&&n.push({type:"group",optional:!0,tokens:[s.alternatives?{type:"literal",value:s.primary,alternatives:s.alternatives}:{type:"literal",value:s.primary},{type:"role",role:"destination",optional:!0}]}),n.push(...lt(e,t.roleMarkers.source)),{id:`${e.action}-event-${t.code}-vso-negated`,language:t.code,command:"on",priority:(a.basePriority??100)+48,template:{format:`${i.primary} ${o?.primary||""} {event} ${r.primary} {patient} ${s?.primary||""} {destination?}`,tokens:n},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...ot(e),...st(e)}}}(e,t,n,a,r)),t.tokenization?.prefixes&&i.push(function(e,t,r,i){const a=[];a.push({type:"literal",value:"and",alternatives:["then"]}),a.push({type:"role",role:"event",optional:!1}),a.push(r.alternatives?{type:"literal",value:r.primary,alternatives:r.alternatives}:{type:"literal",value:r.primary}),a.push({type:"role",role:"patient",optional:!1});const n=t.roleMarkers.destination;return n&&a.push({type:"group",optional:!0,tokens:[n.alternatives?{type:"literal",value:n.primary,alternatives:n.alternatives}:{type:"literal",value:n.primary},{type:"role",role:"destination",optional:!0}]}),a.push(...lt(e,t.roleMarkers.source)),{id:`${e.action}-event-${t.code}-vso-proclitic`,language:t.code,command:"on",priority:(i.basePriority??100)+45,template:{format:`[proclitic?] {event} ${r.primary} {patient} ${n?.primary||""} {destination?}`,tokens:a},extraction:{action:{value:e.action},event:{fromRole:"event"},patient:{fromRole:"patient"},...ot(e),...st(e)}}}(e,t,n,r))):i.push(o?mc(e,t,n,a,r):pc(e,t,n,a,r));return i}function bc(e,t){const r=[],i=e.markerOverride?.[t.code],a=t.roleMarkers[e.role],n=""===e.renderOverride?.[t.code],o={type:"role",role:e.role,optional:!e.required,expectedTypes:e.expectedTypes,...void 0!==e.valueShape?{valueShape:e.valueShape}:{}},s=e.valuePrefixLiteral?.[t.code],l=()=>{s&&r.push({type:"literal",value:s}),r.push(o)};if(void 0!==i){const o=i?i.split(/\s+/).filter(Boolean):[],s=void 0!==i&&i===e.markerOverride?.en,p=a?.position??("SOV"!==t.wordOrder||s?"before":"after"),m=!0===e.markerOptional?.[t.code],c=i=>{const a=1===o.length?ii(e,t.code,i)??[]:[],s={type:"literal",value:i,...a.length?{alternatives:a}:{},...n?{renderSuppress:!0}:{}};r.push(m?{type:"group",optional:!0,tokens:[s]}:s)};if("before"===p){for(const e of o)c(e);l()}else{l();for(const e of o)c(e)}}else if(a){const i=()=>{const r=[...new Set([...a.alternatives??[],...ii(e,t.code,a.primary)??[]])].filter(e=>e!==a.primary);return{type:"literal",value:a.primary,...r.length?{alternatives:r}:{},...n?{renderSuppress:!0}:{}}},o=i=>{r.push(t.markersOptional||e.markerOptional?.[t.code]?{type:"group",optional:!0,...t.markersOptional&&!e.markerOptional?.[t.code]?{renderRequired:!0}:{},tokens:[i]}:i)};"before"===a.position?(a.primary&&o(i()),l()):(l(),o(i()))}else l();return r}function xc(e,t){const r=function(e,t){const r={};for(const i of e.roles){const e=i.markerOverride?.[t.code],a=t.roleMarkers[i.role];if(i.valuePrefixLiteral?.[t.code])r[i.role]={marker:i.valuePrefixLiteral[t.code]};else if(void 0!==e)if(e){const a=/\s/.test(e.trim())?[]:ii(i,t.code,e)??[];r[i.role]=a.length?{marker:e,markerAlternatives:a}:{marker:e}}else r[i.role]={};else if(a&&a.primary){const e=[...new Set([...a.alternatives??[],...ii(i,t.code,a.primary)??[]])].filter(e=>e!==a.primary);r[i.role]=e.length?{marker:a.primary,markerAlternatives:e}:{marker:a.primary}}else r[i.role]={}}return r}(e,t),i={};for(const t of e.roles){const e=r[t.role]||{};i[t.role]=!t.required&&t.default?{...e,default:t.default}:e}return i}function Tc(){const e=Wt(),t=ut().map(e=>e.action);let r=0;for(const t of e){const e=_t(t);if(e)for(const t of ut())e.keywords[t.action]&&(r+=2)}return{languages:e,commands:t,totalPatterns:r}}function Sc(e,t=ut()){const r=[],i=[];for(const a of t)e.keywords[a.action]?i.push(a.action):r.push(a.action);return{missing:r,available:i}}var jc,Ec,Lc,Cc,Pc,_c,Wc,Ac=b({"src/generators/pattern-generator.ts"(){wt(),Xm(),pi(),sc(),dc(),Rt(),cc={basePriority:100,generateSimpleVariants:!0,generateAlternatives:!0}}}),qc=b({"src/patterns/languages/en/fetch.ts"(){jc=[{id:"fetch-en-with-options-as",language:"en",command:"fetch",priority:95,template:{format:"fetch {source} with {style} as {responseType}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"literal",value:"with",alternatives:["by","using"]},{type:"role",role:"style",expectedTypes:["expression"]},{type:"literal",value:"as"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]},extraction:{source:{position:1},style:{marker:"with"},responseType:{marker:"as"}}},{id:"fetch-en-with-options",language:"en",command:"fetch",priority:93,template:{format:"fetch {source} with {style}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"literal",value:"with",alternatives:["by","using"]},{type:"role",role:"style",expectedTypes:["expression"]}]},extraction:{source:{position:1},style:{marker:"with"}}},{id:"fetch-en-with-response-type",language:"en",command:"fetch",priority:90,template:{format:"fetch {source} as {responseType}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"literal",value:"as"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]},extraction:{source:{position:1},responseType:{marker:"as"}}},{id:"fetch-en-simple",language:"en",command:"fetch",priority:80,template:{format:"fetch {source}",tokens:[{type:"literal",value:"fetch"},{type:"role",role:"source"}]},extraction:{source:{position:1}}}]}}),Mc=b({"src/patterns/languages/en/pick.ts"(){Ec=[{id:"pick-en-variant",language:"en",command:"pick",priority:110,template:{format:"pick {method} {patient} of {source}",tokens:[{type:"literal",value:"pick"},{type:"role",role:"method",expectedTypes:["literal","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression"]},{type:"literal",value:"of",alternatives:["from"]},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{method:{position:1},patient:{position:2},source:{marker:"of",markerAlternatives:["from"]}}}]}}),Oc=b({"src/patterns/languages/en/swap.ts"(){Cc=[{id:"swap-en-strategy-of",language:"en",command:"swap",priority:140,template:{format:"swap {method} of {destination} with {patient} [using view {manner}]",tokens:[{type:"literal",value:"swap"},{type:"role",role:"method"},{type:"literal",value:"of"},{type:"role",role:"destination"},{type:"literal",value:"with"},{type:"role",role:"patient"},Lc={type:"group",optional:!0,tokens:[{type:"literal",value:"using"},{type:"literal",value:"view"},{type:"role",role:"manner",optional:!0,expectedTypes:["literal","expression"],valueShape:"keyword"}]}]},extraction:{}},{id:"swap-en-strategy",language:"en",command:"swap",priority:130,template:{format:"swap {method} {destination} with {patient} [using view {manner}]",tokens:[{type:"literal",value:"swap"},{type:"role",role:"method"},{type:"role",role:"destination"},{type:"literal",value:"with"},{type:"role",role:"patient"},Lc]},extraction:{}},{id:"swap-en-element",language:"en",command:"swap",priority:120,template:{format:"swap {destination} with {patient} [using view {manner}]",tokens:[{type:"literal",value:"swap"},{type:"role",role:"destination"},{type:"literal",value:"with"},{type:"role",role:"patient"},Lc]},extraction:{}},{id:"swap-en-handcrafted",language:"en",command:"swap",priority:110,template:{format:"swap {method} {destination} [using view {manner}]",tokens:[{type:"literal",value:"swap"},{type:"role",role:"method"},{type:"role",role:"destination"},Lc]},extraction:{method:{position:1},destination:{position:2}}}]}}),Rc=b({"src/patterns/languages/en/set.ts"(){wt(),Pc=[...D.roles.find(e=>"patient"===e.role)?.expectedTypes??[]],Wc=[_c={id:"set-en-possessive",language:"en",command:"set",priority:100,template:{format:"set {destination} to {patient} [on {scope}]",tokens:[{type:"literal",value:"set"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"to"},{type:"role",role:"patient",expectedTypes:Pc},{type:"group",optional:!0,tokens:[{type:"literal",value:"on"},{type:"role",role:"scope",optional:!0,expectedTypes:["selector","reference"]}]}]},extraction:{destination:{position:1},patient:{marker:"to"},scope:{marker:"on"}}}]}});function Nc(e){switch(e){case"bn":return[{id:"toggle-bn-full",language:"bn",command:"toggle",priority:100,template:{format:"{patient} \u0995\u09c7 \u099f\u0997\u09b2 \u0995\u09b0\u09c1\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u099f\u0997\u09b2",alternatives:["\u09aa\u09b0\u09bf\u09ac\u09b0\u09cd\u09a4\u09a8"]},{type:"literal",value:"\u0995\u09b0\u09c1\u09a8"}]},extraction:{patient:{position:0}}},{id:"toggle-bn-simple",language:"bn",command:"toggle",priority:90,template:{format:"\u099f\u0997\u09b2 {patient}",tokens:[{type:"literal",value:"\u099f\u0997\u09b2",alternatives:["\u09aa\u09b0\u09bf\u09ac\u09b0\u09cd\u09a4\u09a8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-bn-with-dest",language:"bn",command:"toggle",priority:95,template:{format:"{destination} \u098f {patient} \u0995\u09c7 \u099f\u0997\u09b2 \u0995\u09b0\u09c1\u09a8",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u098f",alternatives:["\u09a4\u09c7"]},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u099f\u0997\u09b2",alternatives:["\u09aa\u09b0\u09bf\u09ac\u09b0\u09cd\u09a4\u09a8"]},{type:"literal",value:"\u0995\u09b0\u09c1\u09a8"}]},extraction:{destination:{position:0},patient:{position:2}}}];case"en":return[{id:"toggle-en-full",language:"en",command:"toggle",priority:100,template:{format:"toggle {patient} on {target}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"on",alternatives:["from"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"on",markerAlternatives:["from"],default:{type:"reference",value:"me"}}}},{id:"toggle-en-simple",language:"en",command:"toggle",priority:90,template:{format:"toggle {patient}",tokens:[{type:"literal",value:"toggle"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"es":return[{id:"toggle-es-full",language:"es",command:"toggle",priority:100,template:{format:"alternar {patient} en {target}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"en",alternatives:["sobre","de"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"en",markerAlternatives:["sobre","de"],default:{type:"reference",value:"me"}}}},{id:"toggle-es-simple",language:"es",command:"toggle",priority:90,template:{format:"alternar {patient}",tokens:[{type:"literal",value:"alternar",alternatives:["cambiar","toggle"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"hi":return[{id:"toggle-hi-full",language:"hi",command:"toggle",priority:100,template:{format:"{patient} \u0915\u094b {destination} \u092a\u0930 \u091f\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"role",role:"destination"},{type:"literal",value:"\u092a\u0930"},{type:"literal",value:"\u091f\u0949\u0917\u0932",alternatives:["\u092c\u0926\u0932\u0947\u0902","\u092c\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094b"]}]}]},extraction:{patient:{position:0},destination:{marker:"\u0915\u094b",position:2}}},{id:"toggle-hi-simple",language:"hi",command:"toggle",priority:90,template:{format:"{patient} \u091f\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u091f\u0949\u0917\u0932",alternatives:["\u092c\u0926\u0932\u0947\u0902","\u092c\u0926\u0932"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094b"]}]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-hi-bare",language:"hi",command:"toggle",priority:80,template:{format:"\u091f\u0949\u0917\u0932 {patient}",tokens:[{type:"literal",value:"\u091f\u0949\u0917\u0932",alternatives:["\u092c\u0926\u0932\u0947\u0902","\u092c\u0926\u0932"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"it":return[{id:"toggle-it-full",language:"it",command:"toggle",priority:100,template:{format:"commutare {patient} su {target}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"su",alternatives:["in","di"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"su",markerAlternatives:["in","di"],default:{type:"reference",value:"me"}}}},{id:"toggle-it-simple",language:"it",command:"toggle",priority:90,template:{format:"commutare {patient}",tokens:[{type:"literal",value:"commutare",alternatives:["alternare","toggle","cambiare"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"pl":return[{id:"toggle-pl-full",language:"pl",command:"toggle",priority:100,template:{format:"prze\u0142\u0105cz {patient} na {destination}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["w","dla"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"na",markerAlternatives:["w","dla"],default:{type:"reference",value:"me"}}}},{id:"toggle-pl-simple",language:"pl",command:"toggle",priority:90,template:{format:"prze\u0142\u0105cz {patient}",tokens:[{type:"literal",value:"prze\u0142\u0105cz",alternatives:["przelacz","prze\u0142\u0105czaj"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"qu":return[{id:"toggle-qu-sov",language:"qu",command:"toggle",priority:100,template:{format:"{patient} ta t'ikray",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{patient:{position:0}}},{id:"toggle-qu-simple",language:"qu",command:"toggle",priority:90,template:{format:"t'ikray {patient}",tokens:[{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-qu-with-dest",language:"qu",command:"toggle",priority:95,template:{format:"{destination} pi {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"pi"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}},{id:"toggle-qu-dest-man",language:"qu",command:"toggle",priority:93,template:{format:"{destination} man {patient} ta t'ikray",tokens:[{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{destination:{position:0},patient:{position:2}}},{id:"toggle-qu-patient-first-dest",language:"qu",command:"toggle",priority:102,template:{format:"{patient} ta {destination} man t'ikray",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"role",role:"destination"},{type:"literal",value:"man",alternatives:["pa"]},{type:"literal",value:"t'ikray",alternatives:["tikray","kutichiy"]}]},extraction:{patient:{position:0},destination:{position:2}}}];case"ru":return[{id:"toggle-ru-full",language:"ru",command:"toggle",priority:100,template:{format:"\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c {patient} \u043d\u0430 {destination}",tokens:[{type:"literal",value:"\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c",alternatives:["\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043d\u0430",alternatives:["\u0432","\u0434\u043b\u044f"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043d\u0430",markerAlternatives:["\u0432","\u0434\u043b\u044f"],default:{type:"reference",value:"me"}}}},{id:"toggle-ru-simple",language:"ru",command:"toggle",priority:90,template:{format:"\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c {patient}",tokens:[{type:"literal",value:"\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c",alternatives:["\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"th":return[{id:"toggle-th-simple",language:"th",command:"toggle",priority:90,template:{format:"\u0e2a\u0e25\u0e31\u0e1a {patient}",tokens:[{type:"literal",value:"\u0e2a\u0e25\u0e31\u0e1a"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"toggle-th-with-dest",language:"th",command:"toggle",priority:95,template:{format:"\u0e2a\u0e25\u0e31\u0e1a {patient} \u0e43\u0e19 {destination}",tokens:[{type:"literal",value:"\u0e2a\u0e25\u0e31\u0e1a"},{type:"role",role:"patient"},{type:"literal",value:"\u0e43\u0e19"},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u0e43\u0e19",position:3}}}];case"uk":return[{id:"toggle-uk-full",language:"uk",command:"toggle",priority:100,template:{format:"\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0443\u0442\u0438 {patient} \u043d\u0430 {destination}",tokens:[{type:"literal",value:"\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0443\u0442\u0438",alternatives:["\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043d\u0430",alternatives:["\u0432","\u0434\u043b\u044f"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043d\u0430",markerAlternatives:["\u0432","\u0434\u043b\u044f"],default:{type:"reference",value:"me"}}}},{id:"toggle-uk-simple",language:"uk",command:"toggle",priority:90,template:{format:"\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0443\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0443\u0442\u0438",alternatives:["\u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"vi":return[{id:"toggle-vi-full",language:"vi",command:"toggle",priority:100,template:{format:"chuy\u1ec3n \u0111\u1ed5i {patient} tr\u00ean {target}",tokens:[{type:"literal",value:"chuy\u1ec3n \u0111\u1ed5i",alternatives:["chuy\u1ec3n","b\u1eadt t\u1eaft"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"tr\u00ean",alternatives:["t\u1ea1i","\u1edf"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"tr\u00ean",markerAlternatives:["t\u1ea1i","\u1edf"],default:{type:"reference",value:"me"}}}},{id:"toggle-vi-simple",language:"vi",command:"toggle",priority:90,template:{format:"chuy\u1ec3n \u0111\u1ed5i {patient}",tokens:[{type:"literal",value:"chuy\u1ec3n \u0111\u1ed5i",alternatives:["chuy\u1ec3n","b\u1eadt t\u1eaft"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"zh":return[{id:"toggle-zh-full",language:"zh",command:"toggle",priority:100,template:{format:"\u5207\u6362 {patient} \u5728 {target}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4e8e"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4e8e"],default:{type:"reference",value:"me"}}}},{id:"toggle-zh-simple",language:"zh",command:"toggle",priority:90,template:{format:"\u5207\u6362 {patient}",tokens:[{type:"literal",value:"\u5207\u6362"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-ba",language:"zh",command:"toggle",priority:95,template:{format:"\u628a {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u628a"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{patient:{marker:"\u628a"},destination:{default:{type:"reference",value:"me"}}}},{id:"toggle-zh-full-ba",language:"zh",command:"toggle",priority:98,template:{format:"\u5728 {target} \u628a {patient} \u5207\u6362",tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4e8e"]},{type:"role",role:"destination"},{type:"literal",value:"\u628a"},{type:"role",role:"patient"},{type:"literal",value:"\u5207\u6362"}]},extraction:{destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4e8e"]},patient:{marker:"\u628a"}}}];default:return[]}}var $c,Ic,Kc,Vc,Bc,Dc,Fc,Hc,Uc,Gc,Zc,Yc,Xc,Qc,Jc=b({"src/patterns/toggle.ts"(){}});function ed(e,t){const r=[...ai[e]??[],"times"].filter(e=>e!==t);return{type:"literal",value:t,alternatives:r}}function td(e,t,r,i){const a=[];return a.push({type:"literal",value:t}),i&&a.push({type:"literal",value:i}),a.push({type:"role",role:"quantity",expectedTypes:$c}),a.push(ed(e,r)),{id:`repeat-${e}-times`,language:e,command:"repeat",priority:110,template:{format:`${t}${i?" "+i:""} {quantity} ${r}`,tokens:a},extraction:{loopType:{default:{type:"literal",value:"times"}}}}}function rd(e,t,r,i){return{id:`repeat-${e}-times`,language:e,command:"repeat",priority:110,template:{format:`{quantity} ${t} ${r} ${i}`,tokens:[{type:"role",role:"quantity",expectedTypes:$c},ed(e,t),{type:"literal",value:r},{type:"literal",value:i,alternatives:["repeat"]}]},extraction:{loopType:{default:{type:"literal",value:"times"}}}}}function id(e,t){const r=[{type:"literal",value:"repeat"}];if(t.forWords&&t.forWords.length>0)if(t.requireForWords)for(const e of t.forWords)r.push({type:"literal",value:e});else r.push({type:"group",optional:!0,tokens:t.forWords.map(e=>({type:"literal",value:e}))});r.push({type:"role",role:"patient",expectedTypes:["expression","reference"]});for(const e of t.inWords)r.push({type:"literal",value:e});return r.push({type:"role",role:"source",expectedTypes:["selector","expression","reference"]}),{id:`repeat-${e}-for-in`,language:e,command:"repeat",priority:110,template:{format:`repeat [${(t.forWords??[]).join(" ")}] {patient} ${t.inWords.join(" ")} {source}`,tokens:r},extraction:{loopType:{default:{type:"literal",value:"for"}}}}}function ad(e,t){const r=[{type:"literal",value:"repeat"}];for(const e of t.pre??[])r.push({type:"literal",value:e});return r.push({type:"literal",value:t.whileWord}),r.push({type:"role",role:"condition",expectedTypes:["property-path","expression"]}),{id:`repeat-${e}-while-head`,language:e,command:"repeat",priority:110,template:{format:`repeat ${(t.pre??[]).join(" ")} ${t.whileWord} {condition}`,tokens:r},extraction:{loopType:{default:{type:"literal",value:"while"}}}}}function nd(e,t){return{id:`repeat-${e}-while-head`,language:e,command:"repeat",priority:110,template:{format:`${t.whileWord} {condition} ${t.verb}`,tokens:[{type:"literal",value:t.whileWord},{type:"role",role:"condition",expectedTypes:["property-path","expression"]},{type:"literal",value:t.verb}]},extraction:{loopType:{default:{type:"literal",value:"while"}}}}}function od(e,t){const r=[{type:"literal",value:"repeat"}];for(const e of t.pre??[])r.push({type:"literal",value:e});return r.push({type:"literal",value:t.untilWord}),r.push({type:"role",role:"condition",expectedTypes:["property-path","expression"]}),{id:`repeat-${e}-until-condition-head`,language:e,command:"repeat",priority:105,template:{format:`repeat ${(t.pre??[]).join(" ")} ${t.untilWord} {condition}`,tokens:r},extraction:{loopType:{default:{type:"literal",value:"until"}}}}}function sd(e,t){return{id:`repeat-${e}-until-condition-head`,language:e,command:"repeat",priority:105,template:{format:`${t.untilWord} {condition} ${t.verb}`,tokens:[{type:"literal",value:t.untilWord},{type:"role",role:"condition",expectedTypes:["property-path","expression"]},{type:"literal",value:t.verb}]},extraction:{loopType:{default:{type:"literal",value:"until"}}}}}function ld(e,t){const r=[{type:"literal",value:"repeat"}];for(const e of t.pre??[])r.push({type:"literal",value:e});return r.push({type:"literal",value:t.untilWord}),t.preEvent&&r.push({type:"literal",value:t.preEvent}),r.push({type:"literal",value:t.eventWord}),r.push({type:"role",role:"event",expectedTypes:["literal","expression"]}),r.push({type:"group",optional:!0,tokens:[{type:"literal",value:t.fromWord},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]}),{id:`repeat-${e}-until-head`,language:e,command:"repeat",priority:110,template:{format:`repeat ${t.untilWord} ${t.eventWord} {event} [${t.fromWord} {source}]`,tokens:r},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}}}function pd(e,t){return{id:`repeat-${e}-until-head`,language:e,command:"repeat",priority:110,template:{format:`${t.untilWord} ${t.eventWord} {event} ${t.objMarker} repeat [{source} ${t.fromWord}]`,tokens:[{type:"literal",value:t.untilWord},{type:"literal",value:t.eventWord},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:t.objMarker},{type:"literal",value:"repeat"},{type:"group",optional:!0,tokens:[{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:t.fromWord}]}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}}}function md(e,t){return{id:`repeat-${e}-until-head-verb-final`,language:e,command:"repeat",priority:111,template:{format:`${t.untilWord} ${t.eventWord} {event} ${t.objMarker} {source} ${t.fromWord} repeat`,tokens:[{type:"literal",value:t.untilWord},{type:"literal",value:t.eventWord},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:t.objMarker},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:t.fromWord},{type:"literal",value:"repeat"}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}}}function cd(e,t){return{id:`for-${e}-sov-basic`,language:e,command:"for",priority:105,template:{format:`{patient} ${t.inWords.join(" ")} {source} [${t.objMarker}] ${t.forVerb}`,tokens:[{type:"role",role:"patient",expectedTypes:["expression","reference"]},...t.inWords.map(e=>({type:"literal",value:e})),{type:"role",role:"source",expectedTypes:["selector","expression","reference"]},{type:"group",optional:!0,tokens:[{type:"literal",value:t.objMarker}]},{type:"literal",value:t.forVerb}]},extraction:{patient:{position:0}}}}function dd(e){return Xc.get(e)??[]}var ud=b({"src/patterns/repeat.ts"(){mi(),$c=["literal","expression","reference","property-path"],Ic=[["es","repetir","veces"],["de","wiederholen","mal"],["fr","r\u00e9p\u00e9ter","fois"],["it","ripetere","volte"],["pt","repetir","vezes"],["ru","\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c","\u0440\u0430\u0437"],["uk","\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0438","\u0440\u0430\u0437\u0456\u0432"],["pl","powt\u00f3rz","razy"],["ar","\u0643\u0631\u0631","\u0645\u0631\u0627\u062a"],["he","\u05d7\u05d6\u05d5\u05e8","\u05e4\u05e2\u05de\u05d9\u05dd","\u05d0\u05ea"],["id","ulangi","kali"],["ms","ulang","kali"],["sw","rudia","mara"],["th","\u0e17\u0e33\u0e0b\u0e49\u0e33","\u0e04\u0e23\u0e31\u0e49\u0e07"],["vi","l\u1eb7p l\u1ea1i","l\u1ea7n"],["tl","ulitin","beses"],["zh","\u91cd\u590d","\u6b21","\u628a"]],Kc=[["ja","\u56de","\u3092","\u7e70\u308a\u8fd4\u3057"],["ko","\ubc88","\ub97c","\ubc18\ubcf5"],["tr","kez","i","tekrarla"],["hi","\u092c\u093e\u0930","\u0915\u094b","\u0926\u094b\u0939\u0930\u093e\u090f\u0902"],["bn","\u09ac\u09be\u09b0","\u0995\u09c7","\u09aa\u09c1\u09a8\u09b0\u09be\u09ac\u09c3\u09a4\u09cd\u09a4\u09bf"],["qu","kuti","ta","kutipay"]],Vc=[["en",{forWords:["for"],inWords:["in"],requireForWords:!0}],["es",{forWords:["para"],inWords:["en"]}],["pt",{forWords:["para"],inWords:["dentro"]}],["fr",{forWords:["pour"],inWords:["en"]}],["it",{forWords:["per"],inWords:["in"]}],["de",{forWords:["f\u00fcr"],inWords:["in"]}],["ru",{forWords:["\u0434\u043b\u044f"],inWords:["\u0432"]}],["uk",{forWords:["\u0434\u043b\u044f"],inWords:["\u0443"]}],["pl",{forWords:["dla"],inWords:["w"]}],["ar",{forWords:["\u0644\u0643\u0644"],inWords:["\u0641\u064a"]}],["he",{forWords:["\u05e2\u05d1\u05d5\u05e8","\u05d0\u05ea"],inWords:["in"]}],["hi",{inWords:["\u092e\u0947\u0902"]}],["bn",{inWords:["\u098f"]}],["ja",{inWords:["\u306e\u4e2d"]}],["ko",{inWords:["\uc548\uc5d0"]}],["zh",{forWords:["\u4e3a","\u628a"],inWords:["\u5728"]}],["tr",{inWords:["i\u00e7inde"]}],["id",{forWords:["untuk"],inWords:["dalam"]}],["ms",{forWords:["untuk"],inWords:["dalam"]}],["sw",{forWords:["kwa"],inWords:["ndani"]}],["th",{forWords:["\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a"],inWords:["\u0e43\u0e19"]}],["vi",{forWords:["v\u1edbi m\u1ed7i"],inWords:["trong"]}],["tl",{forWords:["para_sa"],inWords:["sa_loob"]}],["qu",{inWords:["ukupi"]}]],Bc=[["ja",{whileWord:"\u306e\u9593",verb:"\u7e70\u308a\u8fd4\u3057"}],["ko",{whileWord:"\ub3d9\uc548",verb:"\ubc18\ubcf5"}],["tr",{whileWord:"s\u00fcresince",verb:"tekrarla"}],["hi",{whileWord:"\u091c\u092c \u0924\u0915",verb:"\u0926\u094b\u0939\u0930\u093e\u090f\u0902"}],["bn",{whileWord:"\u09af\u09a4\u0995\u09cd\u09b7\u09a3",verb:"\u09aa\u09c1\u09a8\u09b0\u09be\u09ac\u09c3\u09a4\u09cd\u09a4\u09bf"}],["qu",{whileWord:"kaykamaqa",verb:"kutipay"}]],Dc=[["en",{whileWord:"while"}],["es",{whileWord:"mientras"}],["pt",{whileWord:"enquanto"}],["fr",{whileWord:"tantque"}],["it",{whileWord:"mentre"}],["de",{whileWord:"w\u00e4hrend"}],["ru",{whileWord:"\u043f\u043e\u043a\u0430"}],["uk",{whileWord:"\u043f\u043e\u043a\u0438"}],["pl",{whileWord:"dop\u00f3ki"}],["ar",{whileWord:"\u0628\u064a\u0646\u0645\u0627"}],["he",{pre:["\u05d0\u05ea"],whileWord:"\u05db\u05dc \u05e2\u05d5\u05d3"}],["zh",{pre:["\u628a"],whileWord:"\u5f53"}],["id",{whileWord:"selama"}],["ms",{whileWord:"selagi"}],["sw",{whileWord:"wakati"}],["th",{whileWord:"\u0e43\u0e19\u0e02\u0e13\u0e30\u0e17\u0e35\u0e48"}],["vi",{whileWord:"trong khi"}],["tl",{whileWord:"habang"}]],Fc=[["ja",{untilWord:"\u307e\u3067",verb:"\u7e70\u308a\u8fd4\u3057"}],["ko",{untilWord:"\uae4c\uc9c0",verb:"\ubc18\ubcf5"}],["tr",{untilWord:"kadar",verb:"tekrarla"}],["hi",{untilWord:"\u0924\u0915",verb:"\u0926\u094b\u0939\u0930\u093e\u090f\u0902"}],["bn",{untilWord:"\u09aa\u09b0\u09cd\u09af\u09a8\u09cd\u09a4",verb:"\u09aa\u09c1\u09a8\u09b0\u09be\u09ac\u09c3\u09a4\u09cd\u09a4\u09bf"}],["qu",{untilWord:"kama",verb:"kutipay"}]],Hc=[["es",{untilWord:"hasta",eventWord:"evento",fromWord:"de"}],["pt",{untilWord:"at\u00e9",eventWord:"evento",fromWord:"de"}],["fr",{untilWord:"jusqu\u00e0",eventWord:"\u00e9v\u00e9nement",fromWord:"de"}],["it",{untilWord:"fino",eventWord:"evento",fromWord:"da"}],["de",{untilWord:"bis",eventWord:"ereignis",fromWord:"von"}],["ru",{untilWord:"\u0434\u043e",eventWord:"\u0441\u043e\u0431\u044b\u0442\u0438\u0435",fromWord:"\u0438\u0437"}],["uk",{untilWord:"\u0434\u043e",eventWord:"\u043f\u043e\u0434\u0456\u044f",fromWord:"\u0437"}],["pl",{untilWord:"a\u017c",eventWord:"zdarzenie",fromWord:"z"}],["ar",{untilWord:"\u062d\u062a\u0649",eventWord:"\u062d\u062f\u062b",fromWord:"\u0645\u0646"}],["he",{untilWord:"\u05e2\u05d3",preEvent:"\u05d0\u05ea",eventWord:"\u05d0\u05d9\u05e8\u05d5\u05e2",fromWord:"\u05de"}],["id",{untilWord:"sampai",eventWord:"peristiwa",fromWord:"dari"}],["ms",{untilWord:"sehingga",eventWord:"peristiwa",fromWord:"dari"}],["sw",{untilWord:"hadi",eventWord:"tukio",fromWord:"kutoka"}],["th",{untilWord:"\u0e08\u0e19\u0e16\u0e36\u0e07",eventWord:"\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c",fromWord:"\u0e08\u0e32\u0e01"}],["vi",{untilWord:"cho \u0111\u1ebfn khi",eventWord:"s\u1ef1 ki\u1ec7n",fromWord:"t\u1eeb"}],["tl",{untilWord:"hanggang",eventWord:"pangyayari",fromWord:"mula_sa"}],["zh",{pre:["\u628a"],untilWord:"\u76f4\u5230",eventWord:"\u4e8b\u4ef6",fromWord:"\u4ece"}]],Uc={id:"repeat-qu-midclause-until-head",language:"qu",command:"repeat",priority:109,template:{format:"until event {event} ta {source} manta repeat",tokens:[{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"ta"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"manta"},{type:"literal",value:"repeat"}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}},Gc=[["hi",{untilWord:"\u0924\u0915",eventWord:"\u0918\u091f\u0928\u093e",objMarker:"\u0915\u094b",fromWord:"\u0938\u0947"}],["bn",{untilWord:"\u09aa\u09b0\u09cd\u09af\u09a8\u09cd\u09a4",eventWord:"\u0998\u099f\u09a8\u09be",objMarker:"\u0995\u09c7",fromWord:"\u09a5\u09c7\u0995\u09c7"}],["ja",{untilWord:"\u307e\u3067",eventWord:"\u30a4\u30d9\u30f3\u30c8",objMarker:"\u3092",fromWord:"\u304b\u3089"}],["ko",{untilWord:"\uae4c\uc9c0",eventWord:"\uc774\ubca4\ud2b8",objMarker:"\ub97c",fromWord:"\uc5d0\uc11c"}],["tr",{untilWord:"kadar",eventWord:"olay",objMarker:"i",fromWord:"den"}]],Zc={id:"repeat-qu-until-head",language:"qu",command:"repeat",priority:110,template:{format:"hayk _ a until event {event} ta {source} manta repeat",tokens:[{type:"literal",value:"hayk"},{type:"literal",value:"_"},{type:"literal",value:"a"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"ta"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"manta"},{type:"literal",value:"repeat"}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}},Yc=[["ja",{inWords:["\u306e\u4e2d"],objMarker:"\u3092",forVerb:"\u305f\u3081\u306b"}],["ko",{inWords:["\uc548\uc5d0"],objMarker:"\ub97c",forVerb:"\uac01\uac01"}],["tr",{inWords:["i\u00e7inde"],objMarker:"i",forVerb:"i\u00e7in"}],["qu",{inWords:["ukupi"],objMarker:"ta",forVerb:"sapankaq"}],["bn",{inWords:["\u098f"],objMarker:"\u0995\u09c7",forVerb:"\u099c\u09a8\u09cd\u09af"}],["hi",{inWords:["\u092e\u0947\u0902"],objMarker:"\u0915\u094b",forVerb:"\u0939\u0947\u0924\u0941"}]],Xc=new Map,Qc=(e,t)=>{const r=Xc.get(e);r?r.push(t):Xc.set(e,[t])};for(const[e,t,r,i]of Ic)Qc(e,td(e,t,r,i));for(const[e,t,r,i]of Kc)Qc(e,rd(e,t,r,i));var e,t,r;Qc("sw",{id:`repeat-${e="sw"}-word-first-times`,language:e,command:"repeat",priority:109,template:{format:`${t="rudia"} ${r="mara"} {quantity}`,tokens:[{type:"literal",value:t},{type:"literal",value:r},{type:"role",role:"quantity",expectedTypes:$c}]},extraction:{loopType:{default:{type:"literal",value:"times"}}}});for(const[e,t]of Vc)Qc(e,id(e,t));for(const[e,t]of Yc)Qc(e,cd(e,t));for(const[e,t]of Dc)Qc(e,ad(e,t));for(const[e,t]of Bc)Qc(e,nd(e,t));for(const[e,t]of Hc)Qc(e,ld(e,t)),Qc(e,od(e,t));Qc("en",od("en",{untilWord:"until"}));for(const[e,t]of Fc)Qc(e,sd(e,t));for(const[e,t]of Gc)Qc(e,pd(e,t)),"tr"===e&&Qc(e,md(e,t));Qc("qu",{id:"repeat-qu-canonical-until-head",language:"qu",command:"repeat",priority:110,template:{format:"kama ruway {event} ta repeat [{source} manta]",tokens:[{type:"literal",value:"kama"},{type:"literal",value:"ruway"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"ta"},{type:"literal",value:"repeat"},{type:"group",optional:!0,tokens:[{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"manta"}]}]},extraction:{loopType:{default:{type:"literal",value:"until-event"}}}}),Qc("qu",Zc),Qc("qu",Uc)}});function yd(e,t,r,i,a,n,o){const s=()=>({type:"group",optional:!0,tokens:[{type:"literal",value:"("},...Array.from({length:n},(e,t)=>[...t>0?[{type:"literal",value:","}]:[],{type:"role",role:"condition",expectedTypes:["expression","literal","reference"]}]).flat(),{type:"literal",value:")"}]});return{id:e,language:t,command:"wait",priority:105,template:{format:`{source} ${i} {duration} ${a} {patient} ${r}`,tokens:[{type:"role",role:"source",expectedTypes:["expression","reference"]},{type:"literal",value:i,...o?{alternatives:o}:{}},{type:"role",role:"duration",expectedTypes:["expression","literal"]},s(),{type:"literal",value:a},{type:"role",role:"patient",expectedTypes:["expression","literal"]},s(),{type:"literal",value:r}]},extraction:{source:{position:0},duration:{position:2}}}}function vd(e,t,r,i,a,n,o){const s=()=>({type:"group",optional:!0,tokens:[{type:"literal",value:"("},...Array.from({length:o},(e,t)=>[...t>0?[{type:"literal",value:","}]:[],{type:"role",role:"condition",expectedTypes:["expression","literal","reference"]}]).flat(),{type:"literal",value:")"}]}),l=()=>({type:"group",optional:!0,tokens:[{type:"literal",value:a}]});return{id:e,language:t,command:"wait",priority:105,template:{format:`${r} {duration} ${i} [${a}] {patient} [${a}] {source} ${n}`,tokens:[{type:"literal",value:r},{type:"role",role:"duration",expectedTypes:["expression","literal"]},s(),{type:"literal",value:i},l(),{type:"role",role:"patient",expectedTypes:["expression","literal"]},s(),l(),{type:"role",role:"source",expectedTypes:["expression","reference"]},{type:"literal",value:n}]},extraction:{duration:{position:1},source:{position:8}}}}function fd(e){switch(e){case"en":return[{id:"wait-en-for-event",language:"en",command:"wait",priority:110,template:{format:"wait for {event}",tokens:[{type:"literal",value:"wait"},{type:"literal",value:"for"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{position:2}}}];case"zh":return[{id:"wait-zh-ba",language:"zh",command:"wait",priority:105,template:{format:"\u7b49\u5f85 \u628a {duration}",tokens:[{type:"literal",value:"\u7b49\u5f85",alternatives:["\u7b49","\u7a0d\u5019"]},{type:"literal",value:"\u628a"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:2}}}];case"he":return[{id:"wait-he-et",language:"he",command:"wait",priority:105,template:{format:"\u05d7\u05db\u05d4 \u05d0\u05ea {duration}",tokens:[{type:"literal",value:"\u05d7\u05db\u05d4",alternatives:["\u05d4\u05de\u05ea\u05df"]},{type:"literal",value:"\u05d0\u05ea"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:2}}}];case"ar":return[{id:"wait-ar-from-first",language:"ar",command:"wait",priority:105,template:{format:"\u0627\u0646\u062a\u0638\u0631 \u0645\u0646 {source} {duration}",tokens:[{type:"literal",value:"\u0627\u0646\u062a\u0638\u0631",alternatives:["\u0627\u0646\u062a\u0638\u0631\u064a"]},{type:"literal",value:"\u0645\u0646"},{type:"role",role:"source",expectedTypes:["expression","reference"]},{type:"role",role:"duration",expectedTypes:["expression","literal"]}]},extraction:{source:{position:2},duration:{position:3}}}];case"bn":return[vd("wait-bn-or-run","bn","\u0985\u09aa\u09c7\u0995\u09cd\u09b7\u09be","\u0985\u09a5\u09ac\u09be","\u099c\u09a8\u09cd\u09af","\u09a5\u09c7\u0995\u09c7",1),vd("wait-bn-or-run-2arg","bn","\u0985\u09aa\u09c7\u0995\u09cd\u09b7\u09be","\u0985\u09a5\u09ac\u09be","\u099c\u09a8\u09cd\u09af","\u09a5\u09c7\u0995\u09c7",2)];case"tl":return[{id:"wait-tl-from-first",language:"tl",command:"wait",priority:105,template:{format:"maghintay mula_sa {source} {duration}",tokens:[{type:"literal",value:"maghintay",alternatives:["hintay"]},{type:"literal",value:"mula_sa",alternatives:["galing_sa"]},{type:"role",role:"source",expectedTypes:["expression","reference"]},{type:"role",role:"duration",expectedTypes:["expression","literal"]}]},extraction:{source:{position:2},duration:{position:3}}}];case"tr":return[yd("wait-tr-or-run","tr","bekle","den","veya",1,["dan","ten","tan"]),yd("wait-tr-or-run-2arg","tr","bekle","den","veya",2,["dan","ten","tan"])];case"qu":return[yd("wait-qu-or-run","qu","suyay","manta","utaq",1),yd("wait-qu-or-run-2arg","qu","suyay","manta","utaq",2)];default:return[]}}var hd,gd,kd,zd,wd,bd,xd,Td,Sd,jd=b({"src/patterns/wait.ts"(){}}),Ed={};function Ld(){const e=[];e.push(...Nc("en")),e.push(...ui("en")),e.push(...Gm("en")),e.push(...dd("en")),e.push(...fd("en")),e.push(...jc,...Ec,...Cc,hd,gd,kd,zd,_c,wd,bd,xd,Td,Sd);const t=gc(Ft);return e.push(...t),e}x(Ed,{buildEnglishPatterns:()=>Ld});var Cd=b({"src/patterns/en.ts"(){Zt(),Ac(),qc(),Mc(),Oc(),Rc(),Jc(),hi(),Zm(),ud(),jd(),hd={id:"repeat-en-until-event-from",language:"en",command:"repeat",priority:120,template:{format:"repeat until event {event} from {source}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"from"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{event:{marker:"event"},source:{marker:"from"},loopType:{default:{type:"literal",value:"until-event"}}}},gd={id:"repeat-en-until-event",language:"en",command:"repeat",priority:110,template:{format:"repeat until event {event}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{marker:"event"},loopType:{default:{type:"literal",value:"until-event"}}}},kd={id:"repeat-en-times",language:"en",command:"repeat",priority:110,template:{format:"repeat {quantity} times",tokens:[{type:"literal",value:"repeat"},{type:"role",role:"quantity",expectedTypes:["literal","expression","reference"]},{type:"literal",value:"times"}]},extraction:{loopType:{default:{type:"literal",value:"times"}}}},zd={id:"repeat-en-forever",language:"en",command:"repeat",priority:110,template:{format:"repeat forever",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"forever"}]},extraction:{loopType:{default:{type:"literal",value:"forever"}}}},wd={id:"for-en-basic",language:"en",command:"for",priority:100,template:{format:"for {patient} in {source}",tokens:[{type:"literal",value:"for"},{type:"role",role:"patient",expectedTypes:["expression","reference"]},{type:"literal",value:"in"},{type:"role",role:"source",expectedTypes:["selector","expression","reference"]}]},extraction:{patient:{position:1},source:{marker:"in"}}},bd={id:"if-en-basic",language:"en",command:"if",priority:100,template:{format:"if {condition}",tokens:[{type:"literal",value:"if"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},xd={id:"unless-en-basic",language:"en",command:"unless",priority:100,template:{format:"unless {condition}",tokens:[{type:"literal",value:"unless"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},Td={id:"temporal-en-in",language:"en",command:"wait",priority:95,template:{format:"in {duration}",tokens:[{type:"literal",value:"in"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},Sd={id:"temporal-en-after",language:"en",command:"wait",priority:95,template:{format:"after {duration}",tokens:[{type:"literal",value:"after"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}}}}),Pd=.5,_d=.8,Wd=["is not really equal to","is really equal to","is greater than or equal to","is less than or equal to","is not equal to","is equal to","is greater than","is less than","is not really","is really","is not equal","is equal","is not in","is in","is not","is","am not in","am in","am","does not match","do not match","does not contain","does not contains","do not contain","does not include","does not precede","does not follow","precedes","follows","really equals","equals","matches","match","contains","contain","includes","include","has","have","in"],Ad=["is not empty","is empty","does not exist"],qd=["is not an","is not a","is an","is a"],Md=new Set(["me","my","myself","you","your","yourself","it","its","result","event","target","body","detail","window","document"]),Od=new Set(["and","or","not","no"]),Rd=new Set(["true","false","null","undefined"]),Nd=new Set(Wd.map(e=>e.slice(e.lastIndexOf(" ")+1))),$d=new Set(["next","previous","closest","first","last"]),Id=new Set(["ms","s","seconds","second","milliseconds","millisecond","minutes","minute","hours","hour"]);function Kd(e){const t=[];let r=0,i=1,a=1;function n(){if(0===t.length)return!0;const e=t[t.length-1];return!("IDENTIFIER"!==e.type||!Nd.has(e.value.toLowerCase()))||(!("IDENTIFIER"!==e.type||!$d.has(e.value.toLowerCase()))||("IDENTIFIER"===e.type&&"of"===e.value.toLowerCase()||["OPERATOR","COMPARISON","LOGICAL","LPAREN","LBRACKET","LBRACE","COMMA","COLON"].includes(e.type)))}function o(t=0){return e[r+t]??""}function s(){const t=e[r];return r++,"\n"===t?(i++,a=1):a++,t}function l(){for(;e.length>r&&/\s/.test(e[r]);)s()}function p(t){let i="";for(;e.length>r&&t(e[r]);)i+=s();return i}function m(t){let i=t;for(s();e.length>r&&e[r]!==t;)"\\"===e[r]&&e.length>r+1?(i+=s(),i+=s()):i+=s();return e.length>r&&(i+=s()),i}function c(){let t="`";for(s();e.length>r&&"`"!==e[r];)"\\"===e[r]&&e.length>r+1?(t+=s(),t+=s()):t+=s();return e.length>r&&(t+=s()),t}function d(){let t="<";for(s();e.length>r&&(t+=s(),!t.endsWith("/>")););return t}function u(e,t,n){return{type:e,value:t,start:n,end:r,line:i,column:a-t.length}}for(;e.length>r&&(l(),e.length>r);){const i=r,a=o();if("'"!==a||"s"!==o(1)||/\w/.test(o(2))){if('"'===a||"'"===a){const e=m(a);t.push(u("STRING",e,i));continue}if("`"===a){const e=c();t.push(u("TEMPLATE_LITERAL",e,i));continue}if("<"===a&&/[a-zA-Z.#\[]/.test(o(1))){const e=d();t.push(u("QUERY_SELECTOR",e,i));continue}if("#"===a&&n()){s();const e=p(e=>/[\w-]/.test(e));t.push(u("ID_SELECTOR","#"+e,i));continue}if("."===a&&/[a-zA-Z_-]/.test(o(1))&&n()){s();const e=p(e=>/[\w-]/.test(e));t.push(u("CLASS_SELECTOR","."+e,i));continue}if("@"===a&&/[a-zA-Z_]/.test(o(1))){s();const e=p(e=>/[\w-]/.test(e));t.push(u("ATTRIBUTE_REF","@"+e,i));continue}if("["===a&&n()){if("@"===o(1)){let a="";for(a+=s();e.length>r&&"]"!==e[r];)a+='"'===e[r]||"'"===e[r]?m(e[r]):s();e.length>r&&(a+=s()),t.push(u("ATTRIBUTE_SELECTOR",a,i));continue}}if("["!==a)if("]"!==a){if(/\d/.test(a)){const e=p(e=>/[\d.]/.test(e)),a=r,n=p(e=>/[a-zA-Z]/.test(e));Id.has(n)?t.push(u("TIME_EXPRESSION",e+n,i)):(r=a,t.push(u("NUMBER",e,i)));continue}if("("!==a)if(")"!==a)if("{"!==a)if("}"!==a)if(","!==a)if(":"!==a)if("."!==a)if("|"!==a)if("+"!==a&&"-"!==a&&"*"!==a&&"/"!==a&&"%"!==a){if("="===a||"!"===a||"<"===a||">"===a){let e=s();"="===o()&&(e+=s()),"=="!==e&&"!="!==e||"="!==o()||(e+=s()),t.push(u("COMPARISON",e,i));continue}if(/[a-zA-Z_$]/.test(a)){const e=p(e=>/[\w$]/.test(e)),r=e.toLowerCase();Md.has(r)?t.push(u("CONTEXT_VAR",e,i)):Od.has(r)?t.push(u("LOGICAL",e,i)):Rd.has(r)?t.push(u("BOOLEAN",e,i)):t.push(u("IDENTIFIER",e,i));continue}s()}else s(),t.push(u("OPERATOR",a,i));else s(),t.push(u("PIPE","|",i));else s(),t.push(u("DOT",".",i));else s(),t.push(u("COLON",":",i));else s(),t.push(u("COMMA",",",i));else s(),t.push(u("RBRACE","}",i));else s(),t.push(u("LBRACE","{",i));else s(),t.push(u("RPAREN",")",i));else s(),t.push(u("LPAREN","(",i))}else s(),t.push(u("RBRACKET","]",i));else s(),t.push(u("LBRACKET","[",i))}else s(),s(),t.push(u("POSSESSIVE","'s",i))}return t.push(u("EOF","",r)),t}var Vd=new Set(["my","its","your"]),Bd={my:"me",its:"it",your:"you"},Dd=new Set(["is","matches","match","contains","in","exists","does"]),Fd=new Set(["next","previous","closest","first","last"]),Hd=[...Ad,...qd,...Wd].map(e=>[e,e.split(" ")]),Ud=class{constructor(){this.tokens=[],this.current=0}parse(e){try{if(this.tokens=Kd(e),this.current=0,this.isAtEnd())return{success:!1,error:"Empty expression"};return{success:!0,node:this.parseExpression(),consumed:this.current}}catch(e){return{success:!1,error:e instanceof Error?e.message:"Parse error"}}}peek(){return this.tokens[this.current]??{type:"EOF",value:"",start:0,end:0}}peekAt(e){return this.tokens[this.current+e]??{type:"EOF",value:"",start:0,end:0}}previous(){return this.tokens[this.current-1]??{type:"EOF",value:"",start:0,end:0}}isAtEnd(){return"EOF"===this.peek().type}advance(){return this.isAtEnd()||this.current++,this.previous()}check(e){return this.peek().type===e}checkValue(e){return this.peek().value.toLowerCase()===e.toLowerCase()}match(...e){for(const t of e)if(this.check(t))return this.advance(),!0;return!1}parseExpression(){return this.parseOr()}parseOr(){let e=this.parseAnd();for(;this.checkValue("or");){const t=this.advance().value,r=this.parseAnd();e=this.createBinaryExpression(t,e,r)}return e}parseAnd(){let e=this.parseEquality();for(;this.checkValue("and");){const t=this.advance().value,r=this.parseEquality();e=this.createBinaryExpression(t,e,r)}return e}parseEquality(){let e=this.parseComparison();for(;;){if(this.match("COMPARISON")){const t=this.previous().value;e=this.createBinaryExpression(t,e,this.parseComparison());continue}const t=this.matchComparisonPhrase();if(void 0===t)break;if(Ad.includes(t))e=this.createPostfixUnary(t,e);else if(qd.includes(t))e=this.parseTypeCheck(e,t.startsWith("is not"));else{e=this.createBinaryExpression("match"===t?"matches":t,e,this.parseComparison())}}return e}matchComparisonPhrase(){for(const[e,t]of Hd)if(t.every((e,t)=>this.peekAt(t).value.toLowerCase()===e)){for(let e=0;t.length>e;e++)this.advance();return e}}parseTypeCheck(e,t){const r=this.advance();if("EOF"===r.type)throw Error(`Expected a type name after 'is ${t?"not ":""}a'`);let i=!0;return"!"===this.peek().value&&(this.advance(),i=!1),{type:"typeCheckExpression",value:e,typeName:r.value,nullOk:i,negated:t,start:e.start,end:this.previous().end}}parseComparison(){let e=this.parseAddition();for(;this.check("COMPARISON");){const t=this.advance().value,r=this.parseAddition();e=this.createBinaryExpression(t,e,r)}return e}parseAddition(){let e=this.parseMultiplication();for(;"+"===this.peek().value||"-"===this.peek().value;){const t=this.advance().value,r=this.parseMultiplication();e=this.createBinaryExpression(t,e,r)}return e}parseMultiplication(){let e=this.parseConversion();for(;"*"===this.peek().value||"/"===this.peek().value||"%"===this.peek().value||this.checkValue("mod");){const t=this.advance().value.toLowerCase(),r=this.parseConversion();e=this.createBinaryExpression(t,e,r)}return e}parseConversion(){let e=this.parseUnary();for(;this.checkValue("as")&&void 0!==this.conversionTypeAt(1);)for(this.advance(),e=this.createAsExpression(e,this.parseConversionType());this.check("PIPE")&&void 0!==this.conversionTypeAt(1);)this.advance(),e=this.createAsExpression(e,this.parseConversionType());return e}conversionTypeAt(e){const t=this.peekAt(e).value.toLowerCase(),r="a"===t||"an"===t?e+1:e;return"IDENTIFIER"===this.peekAt(r).type?r:void 0}parseConversionType(){const e=this.conversionTypeAt(0)??0;for(let t=0;e>t;t++)this.advance();const t=this.advance(),r=this.peekAt(1).type;if(!this.check("COLON")||"NUMBER"!==r&&"IDENTIFIER"!==r)return t;this.advance();const i=this.advance();return{...t,value:`${t.value}:${i.value}`,end:i.end}}parseUnary(){if(this.checkValue("not")||this.checkValue("no")||"-"===this.peek().value){const e=this.advance().value,t=this.parseUnary();return this.createUnaryExpression(e,t)}return this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.match("DOT")){if(!this.check("IDENTIFIER")&&!this.check("CONTEXT_VAR"))break;{const t=this.advance();e=this.createMemberExpression(e,this.createIdentifier(t.value,t),!1)}}else if(this.match("POSSESSIVE")){if(!this.check("IDENTIFIER")&&!this.check("CONTEXT_VAR"))break;{const t=this.advance();e=this.createPossessiveExpression(e,this.createIdentifier(t.value,t))}}else if(this.match("LPAREN")){const t=this.parseArguments();e=this.createCallExpression(e,t)}else if(this.match("LBRACKET")){const t=this.parseExpression();if(!this.match("RBRACKET"))throw Error("Expected ] after index");e=this.createMemberExpression(e,t,!0)}else if("identifier"===e.type&&Vd.has(e.name)&&this.check("IDENTIFIER")&&!Dd.has(this.peek().value.toLowerCase())){const t=this.advance(),r=e,i={...r,name:Bd[r.name]??r.name};e=this.createMemberExpression(i,this.createIdentifier(t.value,t),!1)}else{if(!this.checkValue("exists")||"LPAREN"===this.peekAt(1).type)break;this.advance(),e=this.createPostfixUnary("exists",e)}return e}parsePrimary(){const e=this.peek();if(this.checkValue("the")&&("IDENTIFIER"===this.peekAt(1).type||"CONTEXT_VAR"===this.peekAt(1).type)&&"of"===this.peekAt(2).value.toLowerCase())return this.advance(),this.parsePropertyOf(this.advance(),e,!1);if(this.match("NUMBER"))return this.createLiteral(parseFloat(e.value),"number",e);if(this.match("STRING")){const t=e.value.slice(1,-1);return this.createLiteral(t,"string",e)}if(this.match("BOOLEAN")){return this.createLiteral("true"===e.value||"false"!==e.value&&("null"===e.value?null:void 0),{true:"boolean",false:"boolean",null:"null",undefined:"undefined"}[e.value]??"string",e)}if(this.match("TEMPLATE_LITERAL")){const t=e.value;return{type:"templateLiteral",value:t.length>=2&&t.startsWith("`")&&t.endsWith("`")?t.slice(1,-1):t,start:e.start,end:e.end,line:e.line,column:e.column}}if(this.match("TIME_EXPRESSION"))return this.parseTimeExpression(e);if(this.match("ID_SELECTOR"))return this.createSelector(e.value,"id",e);if(this.match("CLASS_SELECTOR"))return this.createSelector(e.value,"class",e);if(this.match("ATTRIBUTE_SELECTOR"))return this.createSelector(e.value,"attribute",e);if(this.match("ATTRIBUTE_REF")){const t={type:"attributeAccess",attributeName:e.value.slice(1),start:e.start,end:e.end};return this.checkValue("of")?(this.advance(),this.createBinaryExpression("of",t,this.parseConversion())):t}if(this.match("QUERY_SELECTOR")){const t=e.value.slice(1,-2);return this.createSelector(t,"query",e)}if(this.match("CONTEXT_VAR"))return this.createIdentifier(e.value,e);if(this.match("IDENTIFIER")){if(Fd.has(e.value.toLowerCase())&&(this.check("CLASS_SELECTOR")||this.check("ID_SELECTOR")||this.check("QUERY_SELECTOR"))){const t=this.advance(),r="QUERY_SELECTOR"===t.type?t.value.slice(1,-2):t.value,i="CLASS_SELECTOR"===t.type?"class":"ID_SELECTOR"===t.type?"id":"query";return{type:"callExpression",callee:this.createIdentifier(e.value,e),arguments:[this.createSelector(r,i,t)],start:e.start,end:t.end}}return this.checkValue("of")?this.parsePropertyOf(e,e):this.createIdentifier(e.value,e)}if(this.match("LPAREN")){const e=this.parseExpression();if(!this.match("RPAREN"))throw Error("Expected ) after expression");return e}if(this.match("LBRACKET"))return this.parseArrayLiteral();if(this.match("LBRACE"))return this.parseObjectLiteral();throw Error("Unexpected token: "+e.value)}parsePropertyOf(e,t,r=!0){this.advance();const i=r?this.parseConversion():this.parseUnary();return{type:"propertyOfExpression",property:this.createIdentifier(e.value,e),target:i,start:t.start,end:this.previous().end}}parseArguments(){const e=[];if(!this.check("RPAREN"))do{e.push(this.parseExpression())}while(this.match("COMMA"));if(!this.match("RPAREN"))throw Error("Expected ) after arguments");return e}parseArrayLiteral(){const e=[],t=this.previous().start;if(!this.check("RBRACKET"))do{e.push(this.parseExpression())}while(this.match("COMMA"));if(!this.match("RBRACKET"))throw Error("Expected ] after array elements");return{type:"arrayLiteral",elements:e,start:t,end:this.previous().end}}parseObjectLiteral(){const e=[],t=this.previous().start;if(!this.check("RBRACE"))do{let t;if(this.check("STRING"))t=this.advance().value.slice(1,-1);else{if(!this.check("IDENTIFIER")&&!this.check("CONTEXT_VAR"))throw Error("Expected property name");t=this.advance().value}if(!this.match("COLON"))throw Error("Expected : after property name");const r=this.parseExpression();e.push({key:t,value:r})}while(this.match("COMMA"));if(!this.match("RBRACE"))throw Error("Expected } after object properties");return{type:"objectLiteral",properties:e.map(e=>({type:"objectProperty",key:{type:"identifier",name:e.key},value:e.value})),start:t,end:this.previous().end}}parseTimeExpression(e){const t=e.value.match(/^(\d+(?:\.\d+)?)(ms|s|seconds?|milliseconds?|minutes?|hours?)$/i);if(!t)throw Error("Invalid time expression: "+e.value);return{type:"timeExpression",value:parseFloat(t[1]),unit:t[2].toLowerCase(),raw:e.value,start:e.start,end:e.end,line:e.line,column:e.column}}createLiteral(e,t,r){return{type:"literal",value:e,dataType:t,raw:r.value,start:r.start,end:r.end,line:r.line,column:r.column}}createSelector(e,t,r){return{type:"selector",value:e,selector:e,selectorType:t,start:r.start,end:r.end,line:r.line,column:r.column}}createIdentifier(e,t){return{type:"identifier",name:e,start:t.start,end:t.end,line:t.line,column:t.column}}createMemberExpression(e,t,r){return{type:"memberExpression",object:e,property:t,computed:r,start:e.start,end:this.previous().end}}createPossessiveExpression(e,t){return{type:"possessiveExpression",object:e,property:t,start:e.start,end:this.previous().end}}createBinaryExpression(e,t,r){return{type:"binaryExpression",operator:e,left:t,right:r,start:t.start,end:r.end}}createAsExpression(e,t){return{type:"asExpression",expression:e,targetType:this.createIdentifier(t.value,t),start:e.start,end:t.end}}createUnaryExpression(e,t){return{type:"unaryExpression",operator:e,operand:t,prefix:!0,start:this.previous().start,end:t.end}}createPostfixUnary(e,t){return{type:"unaryExpression",operator:e,operand:t,prefix:!1,start:t.start,end:this.previous().end}}createCallExpression(e,t){return{type:"callExpression",callee:e,arguments:t,start:e.start,end:this.previous().end}}};function Gd(e){return(new Ud).parse(e)}function Zd(e,t){return r=function(e,t){switch(e.type){case"literal":return e.interpolates&&"string"==typeof e.value?{type:"templateLiteral",value:e.value}:Xd(e);case"selector":return e.scope?function(e,t){const{scope:r,...i}=e;return{type:"binaryExpression",operator:"in",left:Qd(i,t),right:Zd(r,t)}}(e,t):/^\[(?!@)/.test(e.value)?tu({raw:e.value}):/^\[@[a-zA-Z_][\w-]*\s*=/.test(e.value)?{type:"literal",value:e.value}:Qd(e,t);case"reference":return Jd(e);case"property-path":return eu(e,t);case"expression":return tu(e);case"flag":return{type:"literal",value:e.enabled};default:throw Error("Unknown semantic value type: "+e.type)}}(e,t),(i=e.position)&&"number"!=typeof r.start?{...r,start:i.start,end:i.end}:r;var r,i}function Yd(e){return!0===e?.implicit}function Xd(e){const t={type:"literal",value:e.value};return e.dataType?{...t,dataType:e.dataType}:t}function Qd(e,t){if(e.value.startsWith("@")&&/^[a-zA-Z_]/.test(e.value.slice(1)))return{type:"attributeAccess",attributeName:e.value.slice(1)};const r=/^\[@([a-zA-Z_][\w-]*)\]$/.exec(e.value);if(r)return{type:"attributeAccess",attributeName:r[1]};t&&e.value.startsWith("*")&&/^[a-zA-Z-]/.test(e.value.slice(1))&&t.push(`Converted '${e.value}' to a CSS selector, but it looks like a CSS property name. CSS properties in commands like 'transition' should be literal strings, not selectors. Consider using expectedTypes: ['literal'] instead of ['literal', 'selector'] in the command schema.`);const i=function(e){if(!e.startsWith("<")||!e.endsWith("/>")||3>=e.length)return;const t=e.slice(1,-2).trim();return t?{selector:t}:void 0}(e.value);return i?{type:"selector",value:i.selector,selector:i.selector,selectorType:e.selectorKind,fromQuery:!0,raw:e.value}:e.value.startsWith("<")?{type:"selector",value:e.value,selector:e.value,selectorType:e.selectorKind,raw:e.value}:{type:"selector",value:e.value,selector:e.value,selectorType:e.selectorKind}}function Jd(e){const t=e.value;if("string"==typeof t){if(t.startsWith(":")&&t.length>1)return{type:"identifier",name:t.slice(1),scope:"element"};if(t.startsWith("$")&&t.length>1)return{type:"identifier",name:t}}const r=t+"";return{type:"identifier",name:{my:"me",its:"it",your:"you"}[r]??r}}function eu(e,t){const r=Zd(e.object,t),i="identifier"===r.type&&["me","it","you"].includes(r.name);if("possessive"===e.access&&!i)return{type:"possessiveExpression",object:r,property:{type:"identifier",name:e.property}};let a=r;for(const t of(e.property+"").split("."))t&&(a={type:"memberExpression",object:a,property:{type:"identifier",name:t},computed:!1});return a}function tu(e){const t=Gd(e.raw);if(!t.success||!t.node){return{type:"identifier",name:e.raw}}return function(e,t){if(!t||0===t.start)return e;const r=e=>{if(Array.isArray(e))return e.map(r);if(!e||"object"!=typeof e)return e;const i=Object.getPrototypeOf(e);if(i!==Object.prototype&&null!==i)return e;const a={};for(const[i,n]of Object.entries(e))if("start"!==i&&"end"!==i||"number"!=typeof n){if("line"===i||"column"===i)continue;a[i]=r(n)}else a[i]=n+t.start;return a};return r(e)}(t.node,e.position)}function ru(e,t){const r=e.roles.get(t);return Yd(r)?void 0:r}function iu(e,t,r){const i=ru(e,t);return i?Zd(i,r):void 0}function au(e,t=[],r,i={}){const a={type:"command",name:e,args:t};return r&&Object.keys(r).length>0&&(a.modifiers=r),i.isBlocking&&(a.isBlocking=i.isBlocking),i.implicitTarget&&(a.implicitTarget=i.implicitTarget),i.semanticRoles&&Object.keys(i.semanticRoles).length>0&&(a.semanticRoles=i.semanticRoles),a}function nu(e,t){return{type:"objectProperty",key:{type:"identifier",name:e},value:t}}function ou(e,t=[]){const r=e=>({type:"literal",value:e});return{type:"objectLiteral",properties:[nu("name",r(e)),nu("args",{type:"arrayLiteral",elements:t.map(r)})]}}function su(e){const t=/^([\w:.-]+)\s*\(([^)]*)\)$/.exec(e.trim());return t?ou(t[1],t[2].split(",").map(e=>e.trim()).filter(Boolean)):ou(e.trim())}wt();var lu={action:"wait",toAST(e,t){const r=ru(e,"event"),i="literal"===r?.type?r.value+"":"expression"===r?.type?r.raw:"reference"===r?.type?r.value:void 0;if(i){const t=e.waitAlternatives?.length?e.waitAlternatives.map(e=>"event"in e?ou(e.event,e.params):function(e){return{type:"objectLiteral",properties:[nu("duration",{type:"literal",value:e})]}}(e.duration)):[su(i)],r=[{type:"arrayLiteral",elements:t}],a=e.waitSource?Zd(e.waitSource):iu(e,"source");return a&&r.push(a),au("wait",r,void 0,{isBlocking:!0})}const a=iu(e,"duration");return au("wait",a?[a]:[],void 0,{isBlocking:!0})}},pu={action:"put",toAST(e,t){const r=iu(e,"patient"),i=iu(e,"destination"),a=ru(e,"manner")??ru(e,"method"),n=r?[r]:[],o={};if(i){o["literal"===a?.type?a.value+"":"into"]=i}return au("put",n,o)}},mu={action:"go",toAST(e,t){const r=ru(e,"destination"),i=[],a={},n="literal"===r?.type&&"string"===r.dataType?void 0:yu(r);if("back"===n||"forward"===n)a[n]={type:"string",value:n};else{const t=iu(e,"destination");t&&"url"===yu(ru(e,"method"))?a.url=t:t&&i.push(t)}return ru(e,"manner")&&(a.in={type:"string",value:"new window"}),au("go",i,a)}},cu=new Set(["item","items","character","characters"]),du=new Set(["first","last","random"]),uu=new Set(["match","matches"]);function yu(e){if(e)return"literal"===e.type?e.value+"":"expression"===e.type?e.raw:"value"in e&&"string"==typeof e.value?e.value:void 0}function vu(e){const t=e.trim();if("start"===t||"end"===t)return{type:"literal",value:t};const r=Number(t);return{type:"literal",value:Number.isNaN(r)?t:r}}var fu=new Map([["wait",lu],["put",pu],["go",mu],["pick",{action:"pick",toAST(e,t){const r=yu(ru(e,"method"))?.trim().toLowerCase(),i=ru(e,"patient"),a=iu(e,"source");if(!r||!(cu.has(r)||du.has(r)||uu.has(r))){const e=i?Zd(i):void 0,t=[];return e&&t.push(e),a&&t.push(a),au("pick",t)}const n=a?[a]:[],o={};if(du.has(r))o.variant={type:"literal",value:r},i&&(o.count=Zd(i));else if(uu.has(r))o.variant={type:"literal",value:r},i&&(o.regex=Zd(i));else{o.variant={type:"literal",value:"range"};let e="default",t=(yu(i)??"").trim();const r=t.match(/\s+(inclusive|exclusive)\s*$/i);r&&(e=r[1].toLowerCase(),t=t.slice(0,t.length-r[0].length).trim());const a=t.split(/\s+to\s+/i),n=a[0]?.trim(),s=a[1]?.trim();n&&(o.rangeStart=vu(n)),s&&(o.rangeEnd=vu(s)),o.rangeMode={type:"literal",value:e}}return au("pick",n,o)}}]]);function hu(e,t){const r=Array.isArray(t)?t:[t];for(const t of r){const r=iu(e,t);if(void 0!==r)return r}}function gu(e,t,r){const i=[];for(const t of r.args??[]){const r=hu(e,t);void 0!==r&&i.push(r)}const a={};for(const[t,i]of Object.entries(r.modifiers??{})){const r=hu(e,i);void 0!==r&&(a[t]=r)}return au(t,i,a,r.isBlocking?{isBlocking:!0}:{})}function ku(e){const t=ct(e)?.ast;if(t)return{action:e,toAST:r=>gu(r,e,t)}}function zu(e){return fu.get(e)??ku(e)}function wu(e){return fu.get(e)}function bu(e){fu.set(e.action,e)}function xu(){return new Map(fu)}var Tu=new Set(["for","times","while","until","until-event","forever"]);function Su(e){return"literal"===e.type?e.value+"":"expression"===e.type?e.raw:"reference"===e.type?e.value:void 0}function ju(e){const t=e.indexOf("[");return t>0&&e.endsWith("]")?{name:e.slice(0,t),filter:e.slice(t+1,-1)}:{name:e}}var Eu=class{constructor(e={}){this.warnings=[]}build(e){switch(e.kind){case"command":return this.buildCommand(e);case"event-handler":return this.buildEventHandler(e);case"conditional":return this.buildConditional(e);case"compound":return this.buildCompound(e);case"loop":return this.buildLoop(e);case"behavior":return this.buildBehavior(e);case"def":return this.buildDef(e);case"feature":return this.buildFeature(e);default:throw Error("Unknown semantic node kind: "+e.kind)}}buildBehavior(e){const t=e.eventHandlers.map(e=>this.buildEventHandler(e)),r={type:"behavior",name:e.name,parameters:[...e.parameters],eventHandlers:t};return e.initBlock&&e.initBlock.length>0&&(r.initBlock={type:"initBlock",commands:this.buildStatements(e.initBlock)}),r}buildDef(e){return{type:"def",name:e.name,params:[...e.parameters],body:this.buildStatements(e.body)}}buildFeature(e){const t=[];void 0!==e.name&&t.push({type:"literal",value:e.name});const r=e.roles.get("condition");return r&&t.push(Zd(r)),t.push({type:"block",commands:this.buildStatements(e.body)}),{type:"command",name:e.action,args:t}}buildCommand(e){const t=zu(e.action);let r;if(t){const i=t.toAST(e,this);if("ast"in i&&"warnings"in i){const e=i;this.warnings.push(...e.warnings),r=e.ast}else r=i}else r=this.buildGenericCommand(e);if("fetch"===e.action&&e.doNotThrow){const e={type:"literal",value:!0};r={...r,modifiers:{...r.modifiers,doNotThrow:e}}}if(("go"===e.action||"scroll"===e.action)&&(e.scrollPosition||e.scrollBehavior)){const t={...r.modifiers},i=e.scrollPosition?.split(" ").find(e=>"the"!==e);if(i&&(t.position={type:"string",value:i}),e.scrollBehavior){t.behavior={type:"string",value:"smoothly"===e.scrollBehavior?"smooth":"instant"}}r={...r,modifiers:t}}if(e.roles&&e.roles.size>0){const t={};for(const[r,i]of e.roles)t[r]=Zd(i);Object.keys(t).length>0&&(r.semanticRoles=t)}return r}buildGenericCommand(e){const t=[],r={},i=["patient","source","quantity"],a=["destination","duration","method","style"];for(const r of i){const i=e.roles.get(r);i&&!Yd(i)&&t.push(Zd(i))}for(const t of a){const i=e.roles.get(t);if(i&&!Yd(i)){r[this.roleToModifierKey(t)]=Zd(i)}}const n={type:"command",name:e.action,args:t};return Object.keys(r).length>0?{...n,modifiers:r}:n}roleToModifierKey(e){return{destination:"on",duration:"for",source:"from",condition:"if",method:"via",style:"with"}[e]??e}buildEventHandler(e){const t=e.roles.get("event");let r,i="click";const a=t?Su(t):void 0;void 0!==a&&(a.includes("|")||a.includes(" or ")?(r=a.split(/\s+or\s+|\|/).map(e=>e.trim()),i=r[0]):i=a);const n=(e.additionalEvents??[]).map(Su).filter(e=>void 0!==e);n.length>0&&(r=[...r??[i],...n]);const o=(r??[i]).map(ju);i=o[0].name,r&&(r=o.map(e=>e.name));const s=o.find(e=>void 0!==e.filter)?.filter,l=this.buildStatements(e.body),p=e.roles.get("source");let m,c;"selector"===p?.type?(m=p.value,c=p.value):"reference"===p?.type?c=p.value:"literal"===p?.type&&(c=p.value+"");const d=e.roles.get("condition"),u=d?Zd(d):void 0!==s?Zd({type:"expression",raw:s}):void 0,y=e.roles.get("destination"),v=y?Zd(y):void 0,f=e.eventModifiers;let h,g=m;if(f?.from){const e=f.from;"expression"===e.type&&/^(closest|next|previous|first|last)\s/.test(e.raw)&&(h=Zd(e)),"selector"!==e.type||m?c||("reference"===e.type?c=e.value:"literal"===e.type?c=e.value+"":"expression"===e.type&&(c=e.raw)):(g=e.value,c=c??e.value)}const k={};f?.once&&(k.once=!0),"number"==typeof f?.debounce&&(k.debounce=f.debounce),"number"==typeof f?.throttle&&(k.throttle=f.throttle);const z=e.parameterNames?[...e.parameterNames]:void 0;return{type:"eventHandler",event:i,commands:l,...r&&r.length>1?{events:r}:{},...g?{selector:g}:{},...c?{target:c}:{},...h?{targetExpression:h}:{},...u?{condition:u}:{},...v?{watchTarget:v}:{},...z&&z.length>0?{args:z,params:z}:{},...Object.keys(k).length>0?{modifiers:k}:{}}}buildConditional(e){const t=e.roles.get("condition");if(!t)throw Error("Conditional node missing condition");const r=Zd(t),i=this.buildStatements(e.thenBranch),a=e.elseBranch&&this.buildStatements(e.elseBranch),n=[r,{type:"block",commands:i}];return a&&a.length>0&&n.push({type:"block",commands:a}),{type:"command",name:"if",args:n}}buildCompound(e){const t=this.buildStatements(e.statements);if(1===t.length)return t[0];if(0===t.length)return{type:"block",commands:[]};if(t.every(e=>"eventHandler"===e.type))return{type:"Program",statements:t};return{type:"CommandSequence",commands:t}}buildLoop(e){const t=e=>({type:"literal",value:e}),r=e.roles.get("loopType"),i="literal"===r?.type?r.value+"":void 0,a="for"===e.action?"for":i&&Tu.has(i)?i:e.loopVariant,n={loopType:t(a)};switch(a){case"for":{e.loopVariable&&(n.for=t(e.loopVariable));const r=e.roles.get("source");r&&(n.in=Zd(r));break}case"times":{const t=e.roles.get("quantity");t&&(n.times=Zd(t));break}case"while":case"until":{const t=e.roles.get("condition");t&&(n[a]=Zd(t));break}case"until-event":{const r=e.roles.get("event"),i=r?function(e){switch(e.type){case"literal":return e.value+"";case"expression":return e.raw;case"reference":case"selector":return e.value;default:return}}(r):void 0;i&&(n.event=t(i));const a=e.roles.get("source");a&&(n.from=Zd(a));break}}e.indexVariable&&(n.index=t(e.indexVariable));return{type:"command",name:"repeat",args:[{type:"block",commands:this.buildStatements(e.body)}],modifiers:n}}buildStatements(e){const t=[];for(let r=0;e.length>r;r++){const i=e[r],a=this.build(i);if("command"===i.kind&&"tell"===i.action&&e.length>r+1){const i=this.buildStatements(e.slice(r+1)),n=a;t.push({...n,args:[...n.args,...i]});break}t.push(a)}return t}buildBlock(e){return{type:"block",commands:this.buildStatements(e)}}};function Lu(e){const t=new Eu;return{ast:t.build(e),warnings:t.warnings}}Rt(),It(),Bt(),Ht(),Zt(),Qt(),tr(),ar(),sr(),mr(),ur(),fr(),kr(),br(),Sr(),Lr(),_r(),qr(),Rr(),Ir(),Br(),Hr(),Zr(),Qr(),ti();var Cu=Object.freeze({ar:Ot,bn:$t,de:Vt,en:Ft,es:Gt,fr:Xt,he:er,hi:ir,id:or,it:pr,ja:dr,ko:vr,ms:gr,pl:wr,pt:Tr,qu:Er,ru:Pr,sw:Ar,th:Or,tl:$r,tr:Vr,uk:Fr,vi:Gr,zh:Xr}),Pu=new Map;function _u(e,t){Pu.set(e.toLowerCase(),t)}function Wu(e){const t=e.toLowerCase();return Pu.get(t)??Pu.get(t.split("-")[0])}function Au(){return[...Pu.keys()].sort()}function qu(e){let t="complex";return e.startsWith("#")&&!e.includes(" ")?t="id":e.startsWith(".")&&!e.includes(" ")?t="class":e.startsWith("[")&&e.endsWith("]")?t="attribute":/^[a-z][a-z0-9]*$/i.test(e)&&(t="element"),{type:"selector",value:e,selectorKind:t}}function Mu(e,t){return void 0!==t?{type:"literal",value:e,dataType:t}:{type:"literal",value:e}}function Ou(e){return"true"===e?Mu(!0,"boolean"):"false"===e?Mu(!1,"boolean"):"null"===e?{type:"expression",raw:"null"}:void 0}function Ru(e){return l(e)}function Nu(e){return{type:"reference",value:e}}function $u(e,t){return t?{...e,position:t}:e}function Iu(e,t,r){return r?{type:"property-path",object:e,property:t,access:r}:{type:"property-path",object:e,property:t}}function Ku(e,t,r){const i={kind:"command",action:e,roles:new Map(Object.entries(t))};return void 0!==r?{...i,metadata:r}:i}function Vu(e,t,r,i,a,n){const o=new Map;o.set("event",e);const s={kind:"event-handler",action:"on",roles:o,body:t};return void 0!==r&&(s.eventModifiers=r),void 0!==i&&(s.metadata=i),void 0!==a&&a.length>0&&(s.parameterNames=a),void 0!==n&&n.length>0&&(s.additionalEvents=n),s}function Bu(e,t,r,i,a){const n={kind:"feature",action:e,roles:a??new Map,body:t};return void 0!==r&&(n.name=r),void 0!==i&&(n.metadata=i),n}function Du(e,t="then",r){const i={kind:"compound",action:"compound",roles:new Map,statements:e,chainType:t};return void 0!==r&&(i.metadata=r),i}function Fu(e,t,r,i){const a=new Map;a.set("condition",e);const n={kind:"conditional",action:"if",roles:a,thenBranch:t};return void 0!==r&&(n.elseBranch=r),void 0!==i&&(n.metadata=i),n}function Hu(e,t,r,i,a){const n={kind:"loop",action:e,loopVariant:t,roles:new Map(Object.entries(r)),body:i};return a?.loopVariable&&(n.loopVariable=a.loopVariable),a?.indexVariable&&(n.indexVariable=a.indexVariable),a?.metadata&&(n.metadata=a.metadata),n}function Uu(e,t){return!t||0===t.length||(!!t.includes(e)||(!!t.includes("expression")||("property-path"===e||"expression"===e)&&t.some(e=>["selector","reference","expression"].includes(e))))}function Gu(e,t){const r=e.possessive?.keywords?.[t];if(r)return r;const i=e.possessive?.specialForms;if(i)for(const[e,r]of Object.entries(i))if(r===t)return e}function Zu(e){return Ft.possessive?.specialForms?.[e]??e+"'s"}pi(),wt(),Zt();var Yu=new Set(["+","-","*","/","%","<",">","<=",">=","==","!=","===","!=="]),Xu=new Set(["<",">","<=",">=","==","!=","===","!=="]),Qu=new Set([...Yu,"mod"]),Ju=/^[<>=!+\-*/%]+$/;wt(),pi();var ey={en:new Set(["end"]),ja:new Set(["\u7d42\u308f\u308a","\u304a\u308f\u308a"]),ar:new Set(["\u0646\u0647\u0627\u064a\u0629","\u0627\u0646\u062a\u0647\u0649","\u0627\u0644\u0646\u0647\u0627\u064a\u0629"]),es:new Set(["fin","final","terminar"]),ko:new Set(["\ub05d","\ub9c8\uce68"]),zh:new Set(["\u7ed3\u675f","\u7ec8\u6b62","\u5b8c"]),tr:new Set(["son","biti\u015f","bitti"]),pt:new Set(["fim","final","t\u00e9rmino"]),fr:new Set(["fin","terminer","finir"]),de:new Set(["ende","fertig"]),id:new Set(["selesai","akhir","tamat"]),tl:new Set(["wakas","tapos"]),bn:new Set(["\u09b8\u09ae\u09be\u09aa\u09cd\u09a4"]),qu:new Set(["tukukuy","tukuy","puchukay"]),sw:new Set(["mwisho","maliza","tamati"])};function ty(e,t){return ey[t]?.has(e.toLowerCase())??!1}Rt(),mi();var ry={ar:{"\u0642\u064a\u0645\u0629":"value"},bn:{"\u0985\u0995\u09cd\u09b7\u09ae":"disabled","\u0986\u0987\u09a1\u09bf":"id","\u099a\u09c7\u0995 \u0995\u09b0\u09be":"checked","\u09a6\u09c8\u09b0\u09cd\u0998\u09cd\u09af":"length","\u09ae\u09be\u09a8":"value"},de:{wert:"value"},es:{valor:"value"},fr:{valeur:"value"},hi:{"\u0905\u0915\u094d\u0937\u092e":"disabled","\u091a\u0947\u0915":"checked","\u091b\u093f\u092a\u093e":"hidden","\u092e\u093e\u0928":"value"},id:{nilai:"value"},it:{valore:"value"},ja:{"\u5024":"value"},ko:{"\uac12":"value"},ms:{dilumpuhkan:"disabled",ditanda:"checked",nilai:"value",panjang:"length"},pl:{"warto\u015b\u0107":"value"},pt:{valor:"value"},qu:{chanin:"value"},ru:{"\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435":"value","\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043e":"disabled","\u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043e":"checked","\u0441\u043a\u0440\u044b\u0442\u043e":"hidden"},sw:{thamani:"value"},th:{"\u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27":"length","\u0e04\u0e48\u0e32":"value","\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19":"disabled","\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e41\u0e25\u0e49\u0e27":"checked","\u0e44\u0e2d\u0e14\u0e35":"id"},tl:{haba:"length",halaga:"value",hindi_pinagana:"disabled",naka_tsek:"checked"},tr:{"de\u011fer":"value"},uk:{"\u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e":"disabled","\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f":"value","\u043f\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043e":"checked","\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u043d\u043e":"hidden"},vi:{"\u1ea9n":"hidden","\u0111\u01b0\u1ee3c ch\u1ecdn":"checked","gi\u00e1 tr\u1ecb":"value","v\u00f4 hi\u1ec7u":"disabled"},zh:{"\u503c":"value"}},iy={ar:{"\u0623\u0648":"or","\u0643\u0640":"as","\u0644\u064a\u0633":"not","\u0648":"and","\u064a\u062d\u062a\u0648\u064a":"contains","\u064a\u0633\u0627\u0648\u064a":"equals","\u064a\u0634\u0645\u0644":"includes"},bn:{"\u0985\u09a5\u09ac\u09be":"or","\u098f\u09ac\u0982":"and","\u09a8\u09be":"not","\u09b9\u09bf\u09b8\u09be\u09ac\u09c7":"as"},de:{als:"as",beinhaltet:"includes","enth\u00e4lt":"contains",gleicht:"equals",nicht:"not",oder:"or",und:"and"},es:{como:"as",contiene:"contains",iguala:"equals",incluye:"includes",no:"not",o:"or",y:"and"},fr:{comme:"as",contient:"contains","\u00e9gale":"equals",et:"and",inclut:"includes",non:"not",ou:"or"},he:{"\u05d5\u05d2\u05dd":"and"},hi:{"\u0914\u0930":"and","\u0915\u0947_\u0930\u0942\u092a_\u092e\u0947\u0902":"as","\u0928\u0939\u0940\u0902":"not","\u092c\u0930\u093e\u092c\u0930":"equals","\u092e\u0947\u0902_\u0939\u0948":"includes","\u092f\u093e":"or","\u0936\u093e\u092e\u093f\u0932":"contains"},id:{atau:"or",berisi:"contains",bukan:"not",dan:"and",sama:"equals",sebagai:"as",termasuk:"includes"},it:{come:"as",contiene:"contains",e:"and",include:"includes",non:"not",o:"or",uguale:"equals"},ja:{"\u305d\u3057\u3066":"and","\u3067\u306f\u306a\u3044":"not","\u3068\u3057\u3066":"as","\u307e\u305f\u306f":"or","\u542b\u3080":"contains","\u542b\u3081\u308b":"includes","\u7b49\u3057\u3044":"equals"},ko:{"\uac19\ub2e4":"equals","\uadf8\ub9ac\uace0":"and","\ub610\ub294":"or","\ub85c":"as","\uc544\ub2c8":"not","\ud3ec\ud568":"contains","\ud3ec\ud568\ud558\ub2e4":"includes"},ms:{atau:"or",bukan:"not",dan:"and",mengandungi:"contains",sama:"equals",sebagai:"as",termasuk:"includes"},pl:{i:"and",jako:"as",lub:"or",nie:"not",obejmuje:"includes","r\u00f3wna si\u0119":"equals",zawiera:"contains"},pt:{como:"as","cont\u00e9m":"contains",e:"and",igual:"equals",inclui:"includes","n\u00e3o":"not",ou:"or"},qu:{churasqa:"includes",hina:"as",hinallataq:"and",kikin:"equals",ukupi_kan:"contains",utaq:"or"},ru:{"\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442":"includes","\u0438":"and","\u0438\u043b\u0438":"or","\u043a\u0430\u043a":"as","\u043d\u0435":"not","\u0440\u0430\u0432\u043d\u043e":"equals","\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442":"contains"},sw:{au:"or",ina:"contains",kuwa:"as",pamoja:"includes",sawa:"equals",si:"not"},th:{"\u0e44\u0e21\u0e48":"not","\u0e41\u0e25\u0e30":"and","\u0e2b\u0e23\u0e37\u0e2d":"or"},tl:{at:"and",bilang:"as",hindi:"not",katumbas:"equals",naglalaman:"contains",o:"or"},tr:{"de\u011fil":"not","e\u015fittir":"equals","i\u00e7erir":"contains",olarak:"as",ve:"and",veya:"or"},uk:{"\u0430\u0431\u043e":"or","\u0432\u043a\u043b\u044e\u0447\u0430\u0454":"includes","\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454":"equals","\u0456":"and","\u043c\u0456\u0441\u0442\u0438\u0442\u044c":"contains","\u043d\u0435":"not","\u044f\u043a":"as"},vi:{"b\u1eb1ng":"equals","ch\u1ee9a":"contains","ho\u1eb7c":"or","kh\u00f4ng":"not","nh\u01b0":"as","v\u00e0":"and"},zh:{"\u4f5c\u4e3a":"as","\u5305\u542b":"contains","\u5305\u62ec":"includes","\u548c":"and","\u6216":"or","\u7b49\u4e8e":"equals","\u975e":"not"}},ay={ms:new Set(["daripada"]),sw:new Set(["ya"]),vi:new Set(["c\u1ee7a"]),zh:new Set(["\u7684"]),it:new Set(["di"]),pl:new Set(["z"]),uk:new Set(["\u0437"]),th:new Set(["\u0e02\u0e2d\u0e07"]),ar:new Set(["\u0644\u0640"]),ja:new Set(["\u306e"]),ko:new Set(["\uc758"]),bn:new Set(["\u09b0"]),hi:new Set(["\u0915\u093e"]),qu:new Set(["pa"]),tr:new Set(["nin","n\u0131n","nun","n\u00fcn","in","\u0131n","un","\u00fcn"])};function ny(e){if(!e?.code)return;const t=ay[e.code];if(t){const[e]=t;if(e)return e}return e.roleMarkers?.source?.primary}function oy(e,t){const r=t.value.toLowerCase(),i=(t.normalized??"").toLowerCase();if("of"===r||"ng"===r||"of"===i||"source"===i)return!0;const a=e?.code?ay[e.code]:void 0;return!!a&&a.has(r)}var sy={destination:"in",source:"from"},ly={ar:new Set(["\u0639\u0646\u062f","\u0641\u064a"]),bn:new Set(["\u098f","\u09a4\u09c7"]),de:new Set(["bei"]),es:new Set(["en"]),fr:new Set(["dans","en","\u00e0"]),he:new Set(["\u05dc\u05ea\u05d5\u05da"]),hi:new Set(["\u092a\u0930","\u092e\u0947\u0902"]),id:new Set(["dalam","di","ke_dalam"]),it:new Set(["a"]),ja:new Set(["\u3067","\u306e\u4e2d","\u3078"]),ko:new Set(["\uc548\uc5d0","\uc5d0","\uc73c\ub85c"]),ms:new Set(["dalam","di","ke_dalam"]),pl:new Set(["do","przy","w"]),pt:new Set(["dentro","em"]),qu:new Set(["pi","ukupi"]),ru:new Set(["\u0432","\u0443"]),sw:new Set(["katika","ndani"]),th:new Set(["\u0e17\u0e35\u0e48","\u0e43\u0e19"]),tl:new Set(["papasok_sa","sa","sa_loob"]),tr:new Set(["de","i\u00e7inde","i\u00e7ine"]),uk:new Set(["\u0432","\u0443"]),vi:new Set(["trong","t\u1ea1i","v\u00e0o"]),zh:new Set(["\u5728","\u8fdb\u5165"])},py=new Set(["in","into","at","within","inside"]);function my(e,t){const r=t.value.toLowerCase(),i=e?.code?ly[e.code]:void 0;if(i?.has(r))return"in";const a=t.normalized??t.value,n=a.toLowerCase();return py.has(n)?"in":sy[n]??a}var cy=new Set(["me","it","you","body","document","target","result"]);function dy(e,t,r,i){const a=e[t];if(!a||!function(e,t){if("in"===t.value.toLowerCase())return!0;const r=e?.code?ly[e.code]:void 0;return!!r?.has(t.value.toLowerCase())||py.has((t.normalized??t.value).toLowerCase())}(r,a))return null;const n=function(e,t){const r=e[t];if(!r)return null;if("selector"===r.kind)return/^[*@]/.test(r.value)?null:{kind:"selector",parts:[{text:r.value,token:r}],consumed:1};const i=(r.normalized??r.value).toLowerCase();if(cy.has(i))return{kind:"reference",parts:[{text:i,token:r}],consumed:1};const a=e[t+1];return"closest"!==i||"selector"!==a?.kind||/^[*@]/.test(a.value)?null:{kind:"closest",parts:[{text:"closest",token:r},{text:a.value,token:a}],consumed:2}}(e,t+1);if(!n)return null;const o=e[t+1+n.consumed];return!0===i?.(a)&&!0!==i(o)?null:{marker:a,scope:n}}var uy=new Set(["first","last","next","previous","random","closest"]),yy={bn:{"\u09b6\u09c7\u09b7":"last"}},vy=new Set(Object.keys(at).map(e=>e.toLowerCase()));function fy(e,t,r,i){const a=e[t];if(!a)return null;const n=(a.normalized??a.value).toLowerCase(),o=e[t+1],s=r?.code&&"selector"===o?.kind&&o.value.startsWith("<")?yy[r.code]?.[a.value.toLowerCase()]:void 0;if(!uy.has(n)&&!uy.has(a.value.toLowerCase())&&void 0===s)return null;const l=[{text:s??a.normalized??a.value,token:a}];let p=t+1;const m=e[p];if(!m||"selector"!==m.kind||Xu.has(m.value))return null;l.push({text:m.value,token:m}),p++;let c=0;for(;8>c++;){const t=e[p];if(!t||"selector"!==t.kind||!t.value.startsWith("."))break;l.push({text:t.value,token:t}),p++}const d=e[p],u=e[p+1];if(!d||!u||"selector"!==u.kind||/^[*@]/.test(u.value)||"keyword"!==d.kind&&"particle"!==d.kind&&"identifier"!==d.kind||uy.has((d.normalized??d.value).toLowerCase())||vy.has((d.normalized??d.value).toLowerCase())||!0===i?.(d)&&!0!==i(e[p+2])){const t=dy(e,p,r,i);t&&"selector"!==t.scope.kind&&(l.push({text:"in",token:t.marker},...t.scope.parts),p+=1+t.scope.consumed)}else l.push({text:my(r,d),token:d}),l.push({text:u.value,token:u}),p+=2;return{parts:l,consumed:p-t}}function hy(e,t){const r=iy[e];return r?r[t.toLowerCase()]??t:t}function gy(e,t){const r=ry[e];return r?r[t.toLowerCase()]??t:t}function ky(e,t){return void 0!==ry[e]?.[t.toLowerCase()]}function zy(e,t){const r=[t.value,t.normalized].filter(Boolean);for(const t of r){const r=Gu(e,t)??Gu(e,t.toLowerCase());if(r)return r}}function wy(e){return"literal"!==e.kind&&"operator"!==e.kind&&"punctuation"!==e.kind&&!/^[$:@#.*^(){}[\]]/.test(e.value)}function by(e,t){const r=e?.references;if(!r)return!1;const i=Object.values(r).filter(e=>"string"==typeof e).map(e=>e.toLowerCase());return[t.value,t.normalized].filter(Boolean).some(e=>i.includes(e.toLowerCase()))}function xy(e,t){return!!wy(e)&&(gy(t,e.value)!==e.value||"identifier"===e.kind)}var Ty=new Set(["true","false","null","undefined","me","my","it","its","you","your","result","event","target","body","detail","document","window"]);function Sy(e){return"literal"===e.kind||"selector"===e.kind||("reference"===e.kind||("identifier"===e.kind?Cy.test(e.value):"keyword"===e.kind&&Ty.has((e.normalized??e.value).toLowerCase())))}function jy(e){return!!e&&(")"===e.value||"]"===e.value||Sy(e))}function Ey(e){if(!e)return!1;if(/^[([-]$/.test(e.value)||Sy(e))return!0;const t=(e.normalized??"").toLowerCase();return"keyword"===e.kind&&("not"===t||"no"===t)}var Ly=/^\.[\p{L}_-][\p{L}\p{N}_-]*$/u,Cy=/^(?:[:$]?[\p{L}_][\p{L}\p{M}\p{N}_]*|\([\p{L}_$][\p{L}\p{M}\p{N}_$]*\))$/u,Py={beforeClassRef:"has"},_y={ar:{"\u0647\u0648":{beforePredicate:"is",afterOperand:"is"},"\u0641\u0627\u0631\u063a":{afterCopula:"empty"}},hi:{"\u0939\u0948":{beforePredicate:"is",beforeClassRef:"has",afterOperand:"is"},"\u0916\u093e\u0932\u0940":{afterCopula:"empty"}},id:{kosong:{afterCopula:"empty"},punya:Py},th:{"\u0e40\u0e1b\u0e47\u0e19":{beforeTypeName:"as",beforePredicate:"is",afterOperand:"is"},"\u0e27\u0e48\u0e32\u0e07":{afterCopula:"empty"},"\u0e21\u0e35":Py},ja:{"\u7a7a":{afterCopula:"empty"},"\u3042\u308b":Py},sw:{tupu:{afterCopula:"empty",otherwise:"null"},na:{betweenOperands:"and"},ana:Py,nina:Py},zh:{"\u6ca1\u6709":{beforeBareIdentifier:"no",beforeSelector:"no"},"\u6709":Py},tl:{walang:{beforeBareIdentifier:"no",beforeSelector:"no"},may:{afterSubject:"exists",beforeClassRef:"has"}},bn:{"\u0986\u099b\u09c7":{afterSubject:"exists",beforeClassRef:"has"},"\u0986\u099b\u09bf":Py},qu:{mana:{beforeOperand:"not"},chusaq:{afterCopula:"empty"},kachkan:Py,kachkani:Py},tr:{var:{afterSubject:"exists",beforeClassRef:"has"},"bo\u015f":{afterCopula:"empty"}},de:{hat:Py,habe:Py},es:{tiene:Py,tengo:Py},fr:{a:Py,ai:Py},it:{ha:Py,ho:Py},ko:{"\uc788\ub2e4":Py},ms:{ada:Py},pl:{ma:Py,mam:Py},pt:{tem:Py,tenho:Py},ru:{"\u0438\u043c\u0435\u0435\u0442":Py,"\u0438\u043c\u0435\u044e":Py},uk:{"\u043c\u0430\u0454":Py,"\u043c\u0430\u044e":Py},vi:{"c\u00f3":Py}},Wy=new Set(["text","json","html","response","blob","arraybuffer"]),Ay=new Set(["empty","null","undefined","true","false"]),qy=new Set(["Number","Int","Float","String","Boolean","Date","Array","Object","JSON","json","JSONString","FormData","FormEncoded","HTML","Fragment","Values","Values:Form","Values:JSON","Set","Map","Keys","Entries","Reversed","Unique","Flat"]);function My(e){return qy.has(e)||/^Fixed(?::\d+)?$/.test(e)||/^[A-Z][A-Za-z0-9_]*(?::[A-Za-z0-9_]+)?$/.test(e)}function Oy(e,t,r,i,a,n){const o=Ry(e,t);if(!o)return;if(o.beforeTypeName&&"identifier"===i?.kind&&"("!==n?.value&&(qy.has(i.value)||Wy.has(i.value.toLowerCase())))return o.beforeTypeName;if(o.beforePredicate&&i&&("literal"===i.kind||"keyword"===i.kind&&Ay.has((i.normalized??"").toLowerCase())))return o.beforePredicate;if(o.afterCopula&&void 0!==a&&["is","not","does","do"].includes(a.toLowerCase()))return o.afterCopula;if(o.beforeBareIdentifier&&"identifier"===i?.kind&&/^[A-Za-z_]\w*$/.test(i.value))return o.beforeBareIdentifier;const s=!!i&&Hy(i,e)&&iv({prev:t,beforePrev:r,next:n},e);if(o.beforeOperand&&(Ey(i)||s))return o.beforeOperand;if(o.beforeSelector&&"selector"===i?.kind)return o.beforeSelector;if(o.beforeClassRef&&i&&Ly.test(i.value))return o.beforeClassRef;if(o.afterSubject&&("selector"===r?.kind||"reference"===r?.kind))return o.afterSubject;const l=!!r&&Hy(r,e)&&a===r.value;return o.betweenOperands&&(jy(r)||l)&&Ey(i)?o.betweenOperands:o.afterOperand&&(jy(r)||"}"===r?.value)?o.afterOperand:o.otherwise}function Ry(e,t){const r=_y[e];return r?.[t.value]??r?.[t.value.toLowerCase()]}var Ny=new Set(["is","am","contains","contain","matches","match","has","have","includes","include","exists","exist","mod"]);function $y(e,t,r,i){const a="keyword"===t.kind?(t.normalized??"").toLowerCase():hy(e,t.value).toLowerCase();if("and"!==a&&"or"!==a)return!1;if(void 0===r)return!0;if(void 0!==r&&(Ju.test(n=r.value)||"("===n||"["===n||","===n))return!0;var n;if(void 0===i)return!1;if(function(e){return Yu.has(e)&&"-"!==e||")"===e||"]"===e||","===e}(i.value))return!0;const o="keyword"===i.kind?(i.normalized??i.value).toLowerCase():hy(e,i.value).toLowerCase();return Ny.has(o)}var Iy=new Set(["include","contain","match","exist"]);function Ky(e){const t=e?.toLowerCase();return"is"===t||"not"===t}function Vy(e,t,r){const i=t[r],a=t[r-1];return!(!i||!a||"in"!==i.value.toLowerCase())&&Ky(By(e,a,t[r-2],i,void 0))}function By(e,t,r,i,a,n){if("equal"===a?.toLowerCase()&&"to"===t.value.toLowerCase())return"to";if(Ky(a)&&"in"===t.value.toLowerCase())return"in";if("not"===a?.toLowerCase()&&Iy.has(t.value.toLowerCase()))return t.value.toLowerCase();const o=Oy(e,t,r,i,a,n);if(void 0!==o)return o;if($y(e,t,r,i))return t.value;const s=hy(e,t.value);if(s!==t.value)return s;if("keyword"!==t.kind)return t.value;const l=(t.normalized??t.value).toLowerCase();return"event"!==l&&ei.has(l)||Hy(t,e)&&iv({prev:r,next:i,afterNext:n},e)?t.value:t.normalized??t.value}function Dy(e,t,r,i){const a=e[t],n=e[t+1];if(!(a&&n&&wy(a)&&oy(r,n)))return;if(!xy(a,i))return;if("selector"===e[t+2]?.kind)return t+2;let o=t;for(;void 0!==e[o]&&void 0!==e[o+1]&&oy(r,e[o+1])&&xy(e[o],i);)o+=2;return o>t+2&&"selector"===e[o]?.kind?o:void 0}var Fy=new Set(["if","unless","while","until","for","when","where","is","not","no","and","or","as"]);function Hy(e,t){if("keyword"!==e.kind)return!1;return"end"===(e.normalized??e.value).toLowerCase()||ty(e.value,t)}function Uy(e,t){return{prev:e[t-1],beforePrev:e[t-2],third:e[t-3],next:e[t+1],afterNext:e[t+2]}}var Gy=new Set(["and","or","is","times"]),Zy=new Set(["if","unless","while","until","is","and","or","in"]),Yy=e=>Object.prototype.hasOwnProperty.call(at,e);function Xy(e){if("keyword"!==e.kind&&(!e.normalized||e.normalized===e.value))return;const t=(e.normalized??e.value).toLowerCase();return Yy(t)?t:void 0}var Qy=new WeakMap;function Jy(e,t,r=!1){let i;try{i=Mt(e)}catch{return new Set}let a=Qy.get(i);a||(a=new Map,Qy.set(i,a));const n=r?t+" before a role pair":t;let o=a.get(n);if(!o){o=new Set;for(const e of i){if(e.command!==t)continue;const[i,a,n,s]=e.template.tokens;if("literal"===i?.type&&"literal"===a?.type&&(!r||"role"===n?.type&&"role"===s?.type))for(const e of[a.value,...a.alternatives??[]])o.add(e.toLowerCase())}a.set(n,o)}return o}var ev=new WeakMap;function tv(e){return"particle"===e.kind||"keyword"===e.kind&&ei.has((e.normalized??"").toLowerCase())}function rv(e,t){return"keyword"===e.kind&&e.normalized?e.normalized.toLowerCase():hy(t,e.value).toLowerCase()}function iv(e,t){const{prev:r,beforePrev:i,next:a,afterNext:n}=e;if(a){if(Qu.has(a.value))return!0;if(Gy.has((a.normalized??a.value).toLowerCase()))return!0;if("'"===a.value&&"s"===n?.value.toLowerCase())return!0;const e=Ry(t,a)?.betweenOperands;if(("and"===e||"or"===e)&&Ey(n))return!0}const o=_t(t),s=!!o&&"preposition"!==o.markingStrategy;if(s&&"particle"===a?.kind&&"particle"!==n?.kind)return!0;if(!r)return!1;if(Yu.has(r.value))return!0;const l=rv(r,t);if("not"===l||"no"===l)return!0;if("not"===Ry(t,r)?.beforeOperand)return!0;const p="SOV"!==o?.wordOrder,m=e.third?Xy(e.third):void 0;if(m&&i&&Jy(t,m,!0).has(i.value.toLowerCase()))return!0;const c=i&&p?Xy(i):void 0;if(c&&!Jy(t,c).has(r.value.toLowerCase())||i&&!s&&tv(i))return!1;if(Zy.has(l))return!0;const d=!!i&&"repeat"!==rv(i,t)&&!!ai[t]?.includes(r.value);if(function(e){let t;try{t=Mt(e)}catch{return new Set}let r=ev.get(t);if(!r){const i=new Set(Object.values(_t(e)?.roleMarkers??{}).flatMap(e=>e?[e.primary,...e.alternatives??[]]:[]).map(e=>e.toLowerCase())),a=new Set;for(const e of t){if("repeat"!==e.command)continue;const t=e.template.tokens;t.forEach((e,r)=>{if("literal"===e.type&&"role"===t[r+1]?.type)for(const t of[e.value,...e.alternatives??[]])i.has(t.toLowerCase())||a.add(t.toLowerCase())})}r=a,ev.set(t,r)}return r}(t).has(r.value.toLowerCase())&&(p||"repeat"!==l)&&!d)return!0;const u=p?Xy(r):void 0;return!(!u||!at[u].roles.some(e=>e.required))||!s&&tv(r)}function av(e){if("keyword"===e.kind)return function(e){const t=(e.normalized??e.value).toLowerCase();return"event"!==t&&!Ru(t)&&(Fy.has(t)||ei.has(t))}(e)?"structure":vy.has((e.normalized??e.value).toLowerCase())?"verb":void 0}function nv(e,t){const r=t?.code??"en",[i]=e;if(1===e.length&&i&&(av(i)||Hy(i,r)))return i.value;let a,n,o="";const s=(e,t)=>{if(n=e,void 0===a)return o=e,void(a=t);const r=void 0!==a.position?.end&&void 0!==t.position?.start&&a.position.end===t.position.start&&(e.startsWith(".")||e.startsWith("!"));o+=(r?"":" ")+e,a=t};for(let i=0;e.length>i;i++){const l=e[i],p=t?zy(t,l):void 0,m=e[i+1];if(":"===l.value&&void 0!==a&&void 0!==n&&void 0!==m&&a.position?.end===l.position?.start&&l.position?.end===m.position?.start&&My(`${n}:${m.value}`)){o+=":"+m.value,n=`${n}:${m.value}`,a=m,i+=1;continue}if("'"===l.value&&void 0!==a&&"s"===m?.value&&void 0!==l.position?.end&&m.position?.start===l.position.end){o+="'s",a=m;const t=e[i+2];t&&gy(r,t.value)!==t.value?(s(gy(r,t.value),t),i+=2):i+=1;continue}const c=t?.possessive,d=e[i+2];if("between"===c?.markerPosition&&c.marker&&"selector"===l.kind&&m?.value===c.marker&&void 0!==d&&xy(d,r)){s(l.value+"'s",l),s(gy(r,d.value),d),i+=2;continue}if("of"===m?.value.toLowerCase()&&gy(r,l.value)!==l.value&&xy(l,r)){s(gy(r,l.value),l);continue}if(void 0!==p&&m){const a=t?.possessive?.connectors,n=!!a?.length&&a.some(e=>{const t=e.toLowerCase();return t===m.value.toLowerCase()||t===(m.normalized??"").toLowerCase()}),o=n?i+2:i+1,c=e[o];if(c&&xy(c,r)){s(Zu(p),l),s(gy(r,c.value),c),i=o;continue}if(n&&c&&/^\.[a-zA-Z_]\w*$/.test(c.value)&&void 0!==m.position?.end&&void 0!==c.position?.start&&m.position.end===c.position.start){s(Zu(p),l),s(gy(r,c.value.slice(1)),c),i=o;continue}if(!n&&/^\.[a-zA-Z_]\w*$/.test(m.value)&&void 0!==l.position?.end&&void 0!==m.position?.start&&l.position.end===m.position.start&&!by(t,l)){s(Zu(p),l),s(gy(r,m.value.slice(1)),m),i+=1;continue}}const u=e[i+2],y=Dy(e,i,t,r);if(void 0!==y){for(let t=i;y>t;t+=2)s(gy(r,e[t].value),e[t]),s("of",e[t+1]);s(e[y].value,e[y]),i=y;continue}if("selector"===l.kind&&m&&u&&oy(t,m)&&xy(u,r)&&gy(r,u.value)!==u.value){s(gy(r,u.value),u),s("of",m),s(l.value,l),i+=2;continue}const v=fy(e,i,t);if(v){for(const e of v.parts)s(e.text,e.token);i+=v.consumed-1}else s(By(r,l,e[i-1],m,n,e[i+2]),l)}return o.trim()}function ov(e){return!!e&&Qu.has(e.value)}var sv=class{constructor(e,t,r,i,a){this.patternToken=t,this.afterLiteral=r,this.nextPatternToken=i,this.wouldMatch=a;const n=e.position();this.token=e.tokens[n],this.prev=e.tokens[n-1],this.next=e.tokens[n+1],this.place=Uy(e.tokens,n)}get lastSlot(){return void 0===this.nextPatternToken}get tokenIsMarker(){return this.tokenIsMarkerMemo??(this.tokenIsMarkerMemo=this.wouldMatch(this.nextPatternToken,this.token)),this.tokenIsMarkerMemo}get beforeRole(){return"role"===this.nextPatternToken?.type}get nextIsMarker(){return this.nextIsMarkerMemo??(this.nextIsMarkerMemo=void 0!==this.next&&this.wouldMatch(this.nextPatternToken,this.next)),this.nextIsMarkerMemo}get clauseEndsAfter(){return function(e){if(!e)return!0;if("keyword"!==e.kind)return!1;const t=(e.normalized??e.value).toLowerCase();return"then"===t||"end"===t||"else"===t}(this.next)}};function lv(e){return"keyword"===e.kind&&vy.has((e.normalized??e.value).toLowerCase())}function pv(e){return e.afterLiteral&&(e.clauseEndsAfter||e.nextIsMarker)}function mv(e,t,r,i){const a="group"===e.type&&e.optional?e.tokens.every(e=>"role"===e.type)?e.tokens[0]:void 0:e;if(!a||"role"!==a.type||!a.optional)return!1;if("event"===a.role||"action"===a.role||"keyword"===a.valueShape)return!1;if(!t||"keyword"!==t.kind||void 0===r)return!1;const n=i(r,t);return lv(t)?!n:n}function cv(e,t){const r=e[t];return"particle"===r?.kind&&"of"===e[t-1]?.value.toLowerCase()&&/^[\p{L}_$][\p{L}\p{M}\p{N}_$]*$/u.test(r.value)}var dv=new Set(["is","am","are","be","was","were","not","no"]),uv=new Set(["\u0647\u0648","\u0e40\u0e1b\u0e47\u0e19","\u0939\u0948","\u0928\u0939\u0940\u0902","mana"]),yv=new Set(["empty","null","undefined"]);function vv(e,t,r,i){const a=(e.normalized??e.value).toLowerCase(),n=e.value.toLowerCase(),o=(t.normalized??t.value).toLowerCase();return(dv.has(a)||dv.has(hy(i,n))||uv.has(n)&&yv.has(o))&&!r}var fv=new Set(["'s","a","am","an","and","as","closest","contain","contains","do","does","empty","equal","equals","exist","exists","false","first","greater","has","have","in","include","includes","is","it","its","last","less","match","matches","me","mod","my","next","no","not","null","of","or","previous","really","some","than","the","true","undefined","you","your","result","target","body","detail"]),hv=new Set(["am","and","as","contain","contains","do","does","empty","equal","equals","exist","exists","greater","has","have","in","include","includes","is","less","match","matches","mod","no","not","of","or","really","some","than"]),gv=/\s+as\s+([A-Za-z]\w*)!?\s*$/;function kv(e){let t=e;for(let e=gv.exec(t);e;e=gv.exec(t)){if(!My(e[1]??""))return!1;t=t.slice(0,e.index)}const r=t.replace(/"[^"]*"|'[^']*'/g,"");if(/["']/.test(r.replace(/'s\b/g,"")))return!1;if(/[^\x00-\x7F]/.test(r))return!1;const i=Gd(t);return!(!i.success||void 0===i.consumed)&&(i.consumed===Kd(t).length-1&&function(e){const t=[],r=e=>{if(Array.isArray(e))return void e.forEach(r);if(!e||"object"!=typeof e)return;const i=e;"asExpression"===i.type&&t.push((i.targetType?.name??"")+""),Object.values(e).forEach(r)};return r(e),t}(i.node).every(My))}function zv(e,t){return void 0!==e?.position?.end&&void 0!==t?.position?.start&&e.position.end===t.position.start}var wv=new Set(["is","not","really","am","or"]);function bv(e,t,r){const i=t=>{const i=e[t];return i?By(r,i,e[t-1],e[t+1],void 0).toLowerCase():""};return"to"===i(t)&&"equal"===i(t-1)&&wv.has(i(t-2))}var xv=new Set(["event","window","document"]);function Tv(e,t,r){const i=r.profile?.code??"en";if(Vy(i,e,t)||cv(e,t))return!1;if(bv(e,t,i)||function(e){return"a"===e.value}(e[t]))return!1;const a=e[t];return function(e,t){if("conjunction"===e.kind)return!0;if("keyword"===e.kind){const r=(e.normalized??e.value).toLowerCase();if("then"===r||"end"===r||"else"===r)return!0;if(ty(e.value,t.profile?.code??""))return!0}return t.owes(e)}(a,r)||r.commandMarkers.has(a.value.toLowerCase())}function Sv(e,t,r){const i=e[t],a=e[t-1],n=r.profile?.code??"en";if("literal"===i.kind)return!0;if("'"===i.value&&"s"===e[t+1]?.value)return!0;if("s"===i.value&&"'"===a?.value)return!0;if("selector"===i.kind){if(!i.value.startsWith(".")||!a||zv(a,i))return!0;if(Qu.has(a.value)||/^[([,]$/.test(a.value))return!0;if(oy(r.profile,a))return!0;const o=By(n,a,e[t-2],i,void 0).toLowerCase();return hv.has(o)}if(Qu.has(i.value))return!0;if(/^[()[\],.!<>=+\-*/%]+$/.test(i.value))return!0;if(oy(r.profile,i))return!0;if($y(n,i,a,e[t+1]))return!0;if(Vy(n,e,t)||cv(e,t))return!0;if(function(e,t,r){const i=e[t],a=e[t-1];return!!(i&&a&&oy(r,a))&&xv.has((i.normalized??i.value).toLowerCase())}(e,t,r.profile))return!0;if(bv(e,t,n))return!0;const o=By(n,i,a,e[t+1],void 0).toLowerCase();return("as"!==o||!r.hasResponseType)&&(!!fv.has(o)||"identifier"===i.kind&&/^(?:[\p{L}_$][\p{L}\p{M}\p{N}_$]*('s)?|\([\p{L}_$][\p{L}\p{M}\p{N}_$]*\))$/u.test(i.value))}Rt(),hi();var jv=/^[A-Za-z_][\w-]*$/,Ev=/^[A-Za-z_][\w-]*:[^\s'"`/:][^\s]*$/;function Lv(e,t){const r=e.peek(t);return!!r&&"identifier"===r.kind&&Ev.test(r.value)}function Cv(e,t){const r=e.peek(t);if(!r||"identifier"!==r.kind&&"keyword"!==r.kind||!jv.test(r.value))return!1;const i=e.peek(t+1),a=e.peek(t+2);return!!i&&":"===i.value&&!!a}function Pv(e,t=0){return Lv(e,t)||Cv(e,t)}function _v(e){const t=e.peek();return t?"{"===t.value||"("===t.value?function(e){const t=e.peek();if(!t||"{"!==t.value&&"("!==t.value)return null;let r="",i=-1,a=0,n=0;for(;!e.isAtEnd()&&96>n++;){const t=e.advance();if(!t)break;if(i>=0&&t.position.start>i&&(r+=" ".repeat(t.position.start-i)),r+=t.value,i=t.position.end,"{"===t.value||"("===t.value)a++;else if(("}"===t.value||")"===t.value)&&(a--,0===a))return r}return null}(e):","===t.value||":"===t.value?null:(e.advance(),t.value):null}function Wv(e,t){const r=e.mark(),i=[];if(void 0!==t){const a=e.peek();if(!a||":"!==a.value||!e.peek(1))return null;e.advance();const n=_v(e);if(null===n)return e.reset(r),null;i.push(`${t}:${n}`)}else if(!Pv(e))return null;let a=0;for(;96>a++;){const t=e.peek();if(!t)break;if(","===t.value){if(0===i.length||!Pv(e,1))break;e.advance();continue}if(Lv(e,0)){i.push(e.advance().value);continue}if(!Cv(e,0))break;const a=e.advance().value;e.advance();const n=_v(e);if(null===n)return e.reset(r),null;i.push(`${a}:${n}`)}return 0===i.length?(e.reset(r),null):`{${i.join(", ")}}`}function Av(e){switch(e.kind){case"selector":return qu(e.value);case"literal":return function(e){if(e.startsWith('"')||e.startsWith("'")||e.startsWith("`")||e.startsWith("\u300c")){return Mu(e.slice(1,-1),"string")}if("true"===e)return Mu(!0,"boolean");if("false"===e)return Mu(!1,"boolean");const t=e.match(/^(\d+(?:\.\d+)?)(ms|s|m|h)?$/);if(t){const r=parseFloat(t[1]);return t[2]?Mu(e,"duration"):Mu(r,"number")}const r=parseFloat(e);if(!isNaN(r))return Mu(r,"number");return Mu(e,"string")}(e.value);case"keyword":{const t=function(e){const t=(e.normalized||e.value).toLowerCase();return"empty"===t?Ou("null"):"a"===t||"an"===t?{type:"expression",raw:e.value}:void 0}(e);if(t)return t;const r=(e.normalized||e.value).toLowerCase();return Ru(r)?Nu(r):Ou(r)??Mu(e.normalized||e.value)}case"identifier":if(e.value.startsWith("@"))return qu(e.value);if(e.value.startsWith(":")||e.value.startsWith("$"))return Nu(e.value);const t=e.value.toLowerCase();return Ru(t)?Nu(t):{type:"expression",raw:e.value};case"url":{const t=Mu(e.value,"string");return e.value.includes("${")?{...t,interpolates:!0}:t}default:return null}}wt();var qv=.8,Mv=new Set(["\u0628\u062f\u0644","\u063a\u064a\u0631","\u0623\u0636\u0641","\u0623\u0632\u0644","\u0636\u0639","\u0627\u062c\u0639\u0644","\u0639\u064a\u0646","\u0632\u062f","\u0627\u0646\u0642\u0635","\u0633\u062c\u0644","\u0623\u0638\u0647\u0631","\u0623\u062e\u0641","\u0634\u063a\u0644","\u0623\u0631\u0633\u0644","\u0631\u0643\u0632","\u0634\u0648\u0634","\u062a\u0648\u0642\u0641","\u0627\u0646\u0633\u062e","\u0627\u062d\u0630\u0641","\u0627\u0635\u0646\u0639","\u0627\u0646\u062a\u0638\u0631","\u0627\u0646\u062a\u0642\u0627\u0644","\u0623\u0648"]),Ov={patient:["\u0639\u0644\u0649"],destination:["\u0625\u0644\u0649","\u0627\u0644\u0649"],source:["\u0645\u0646"],agent:["\u0645\u0646"],manner:["\u0628"],style:["\u0628"],goal:["\u0625\u0644\u0649","\u0627\u0644\u0649"],method:["\u0628"]},Rv=new class{calculate(e){return this.calculateWithBreakdown(e).final}calculateWithBreakdown(e){const t=this.scoreRoleCoverage(e),r=this.scoreStemPenalty(e),i=this.scoreLanguageBoost(e),a=this.scoreLanguageAdjustment(e);let n=t;return n=Math.max(.5,n+r),n=Math.min(1,n+i),n=Math.max(0,Math.min(1,n+a)),{roleCoverage:t,stemPenalty:r,languageBoost:i,languageAdjustment:a,final:n}}scoreRoleCoverage(e){const{pattern:t,captured:r}=e;let i=0,a=0;const n=e=>void 0!==t.extraction?.[e]?.default,o="on"===t.command?t.extraction?.action?.value:void 0,s=at[o??t.command]?.roles,l=e=>void 0!==s?.find(t=>t.role===e)?.valueShape;for(const e of t.template.tokens)if("role"===e.type)r.has(e.role)?(a+=1,i+=1):l(e.role)||(a+=1);else if("group"===e.type)for(const t of e.tokens)"role"===t.type&&(r.has(t.role)?(a+=qv,i+=qv):l(t.role)||(a+=qv,n(t.role)&&(i+=.48)));return a>0?i/a:1}scoreStemPenalty(e){const{stemMatchCount:t,totalKeywordMatches:r}=e;return t>0&&r>0?-t/r*.15:0}scoreLanguageBoost(e){const{pattern:t}=e;if("ar"!==t.language)return 0;const r=t.template.tokens[0];return r&&"literal"===r.type&&(Mv.has(r.value)||r.alternatives?.some(e=>Mv.has(e)))?.15:0}scoreLanguageAdjustment(e){const{pattern:t,captured:r}=e;if("ar"!==t.language)return 0;let i=0;for(const[e,t]of r.entries()){const r=Ov[e];if(!r||0===r.length)continue;const a="metadata"in t?t.metadata:void 0;a&&"string"==typeof a.prepositionValue&&(r.includes(a.prepositionValue)?i+=.1:i-=.1)}return Math.max(-.1,Math.min(.1,i))}},Nv=new Set(Object.values(at).filter(e=>!0===e.bareKeyword).map(e=>e.action));var $v=class t{constructor(e){this.patternRest=[],this.slotAfterLiteral=!1,this.wouldMatch=(e,t)=>this.patternTokenWouldMatch(e,t),this.matchCache=new Map,this.roleStarts=new Map,this.stemMatchCount=0,this.totalKeywordMatches=0,this.confidenceModel=e??Rv}matchPattern(e,t){const r=e.mark(),i=new Map;this.currentProfile=_t(t.language),this.currentPatternCommand=t.command,this.currentRoleCommand=t.extraction?.action?.value??t.command,this.stemMatchCount=0,this.totalKeywordMatches=0,this.roleStarts=new Map,this.eventSource=void 0,this.patternRest=[];if(!this.matchTokenSequence(e,t.template.tokens,i))return e.reset(r),null;const a=this.confidenceModel.calculate({pattern:t,captured:i,stemMatchCount:this.stemMatchCount,totalKeywordMatches:this.totalKeywordMatches});return this.applyExtractionRules(t,i),{pattern:t,captured:i,consumedTokens:e.position()-r.position,confidence:a,roleStarts:this.roleStarts,...this.eventSource?{eventSource:this.eventSource}:{}}}matchBest(e,t){this.matchCache.clear();const r=[],i=e.position();for(const a of t){const t=e.mark(),n=`${i}:${a.id}`;let o;this.matchCache.has(n)?o=this.matchCache.get(n):(o=this.matchPattern(e,a),this.matchCache.set(n,o)),o&&r.push(o),e.reset(t)}if(0===r.length)return null;r.sort((e,t)=>{const r=t.pattern.priority-e.pattern.priority;return 0!==r?r:t.confidence-e.confidence});const a=r[0];return this.matchPattern(e,a.pattern),a}matchTokenSequence(e,t,r,i){const a=t[0],n="literal"===a?.type&&("and"===a.value||"then"===a.value||a.alternatives?.includes("and")||a.alternatives?.includes("then"));if("ar"===this.currentProfile?.code&&!n)for(;"conjunction"===e.peek()?.kind;)e.advance();let o=0;for(let a=0;t.length>a;a++){const n=t[a];if(o>0&&"literal"===n.type&&this.tryConsumeEventSourceClause(e,r,n),mv(n,e.peek(),t[a+1]??i,this.wouldMatch)){const n=e.mark(),o=new Map(r);if(this.matchTokenSequence(e,t.slice(a+1),o,i)&&this.atClauseEnd(e)){r.clear();for(const[e,t]of o)r.set(e,t);return!0}e.reset(n)}const s=this.patternRest;this.patternRest=[...t.slice(a+1),...s],this.slotAfterLiteral="role"===n.type&&"literal"===t[a-1]?.type;const l=this.matchPatternToken(e,n,r,t[a+1]??i);if(this.patternRest=s,o="role"===n.type&&"event"===n.role?2:Math.max(0,o-1),!l){if(this.isOptional(n))continue;return!1}}return!0}tryConsumeEventSourceClause(e,t,r){if(t.has("source")||this.eventSource)return;const i=e.peek(),a=e.peek(1);if(!i||!a)return;if(this.patternTokenWouldMatch(r,i))return;const n=this.currentProfile?.roleMarkers?.source,o=e=>{if("particle"!==e.kind&&"keyword"!==e.kind)return!1;if("source"===(e.normalized??"").toLowerCase())return!0;if(!n)return!1;const t=e.value.toLowerCase();return n.primary?.toLowerCase()===t||!!n.alternatives?.some(e=>e.toLowerCase()===t)},s=n?.position;if("after"!==s&&o(i)){const t=this.sourceNounValue(a);if(!t)return;return e.advance(),e.advance(),void(this.eventSource=t)}if("after"===s&&o(a)){const t=this.sourceNounValue(i);if(!t)return;e.advance(),e.advance(),this.eventSource=t}}sourceNounValue(e){if("selector"===e.kind)return this.tokenToSemanticValue(e)??void 0;if("keyword"!==e.kind&&"identifier"!==e.kind)return;const t=(e.normalized??e.value).toLowerCase();return"me"!==t?Ru(t)?{type:"reference",value:t}:"identifier"===e.kind&&/^[A-Za-z_$][\w$]*$/.test(e.value)?{type:"expression",raw:e.value}:void 0:void 0}matchPatternToken(e,t,r,i){switch(t.type){case"literal":return this.matchLiteralToken(e,t);case"role":{const a=e.position(),n=this.matchRoleToken(e,t,r,i);return n&&r.has(t.role)&&this.roleStarts.set(t.role,a),n}case"group":return this.matchGroupToken(e,t,r,i);default:return!1}}matchLiteralToken(e,t){const r=e.peek();if(!r)return!1;const i=this.getMatchType(r,t.value);if("none"!==i)return this.totalKeywordMatches++,"stem"===i&&this.stemMatchCount++,e.advance(),!0;if(t.alternatives)for(const i of t.alternatives){const t=this.getMatchType(r,i);if("none"!==t)return this.totalKeywordMatches++,"stem"===t&&this.stemMatchCount++,e.advance(),!0}for(const r of[t.value,...t.alternatives??[]])for(const t of["-","_"])if(r.includes(t)&&this.tryMatchShatteredCompound(e,r,t))return this.totalKeywordMatches++,!0;return!1}tryFoldHyphenActionKeyword(e){const t=this.currentProfile;if(!t)return null;const r=e.mark(),i=[];for(;;){const t=e.peek();if(!t||"identifier"!==t.kind&&"keyword"!==t.kind)break;i.push(t.value),e.advance();const r=e.peek();if(!r||"-"!==r.value)break;e.advance(),i.push("-")}if(3>i.length||"-"===i[i.length-1])return e.reset(r),null;const a=i.join("").toLowerCase();for(const[e,r]of Object.entries(t.keywords))if(r.primary.toLowerCase()===a||r.alternatives?.some(e=>e.toLowerCase()===a))return Mu(e);return e.reset(r),null}tryMatchShatteredCompound(e,t,r){const i=t.split(r);if(2>i.length||i.some(e=>0===e.length))return!1;const a=e.mark();for(let t=0;i.length>t;t++){if(t>0){const t=e.peek();if(!t||t.value!==r)return e.reset(a),!1;e.advance()}const n=e.peek();if(!n||"identifier"!==n.kind&&"keyword"!==n.kind&&"particle"!==n.kind||n.value.toLowerCase()!==i[t].toLowerCase())return e.reset(a),!1;e.advance()}return!0}matchRoleToken(e,t,r,i){const a=e.position(),n=r.get(t.role);return!!this.matchRoleTokenCore(e,t,r,i)&&(this.absorbTrailingConversion(e,t,r,i,a),this.absorbTrailingConditionOperand(e,t,r,i,a),this.absorbExpressionTail(e,t,r,i,a),this.stampCaptureSpan(e,t.role,r,a,n),!0)}absorbExpressionTail(e,r,i,a,n){if("event"===r.role||"action"===r.role)return;if(this.isClassNameSlot(r))return;if(!i.has(r.role))return;if(e.position()<=n)return;const o=r.expectedTypes;if(o&&o.length>0&&!o.includes("expression"))return;const s=t.boundedByMarker(a)?function(e,t,r){if(!e[t]||Tv(e,t,r))return[];let i=t;for(;e.length>i&&!Tv(e,i,r)&&Sv(e,i,r);)i++;const a=[];for(let e=i;e>t;e--)a.push(e);return a}(e.tokens,e.position(),this.extentContext()):function(e,t,r){const i=[];let a=t;for(;;){const t=e[a];if(!t)break;if("'"===t.value&&"s"===e[a+1]?.value&&e[a+2])a+=3;else if(/.'s$/.test(e[a-1]?.value??""))a+=1;else{if(!oy(r,t)||!e[a+1])break;a+=2}i.push(a)}return i.reverse()}(e.tokens,e.position(),this.currentProfile),l=function(e,t,r,i){for(const a of r){const r=nv(e.slice(t,a),i);if(kv(r))return{end:a,raw:r}}}(e.tokens,n,s,this.currentProfile);if(l){for(;e.position()<l.end;)e.advance();i.set(r.role,{type:"expression",raw:l.raw,value:l.raw})}}extentContext(){const e=this.restLiterals();return{profile:this.currentProfile,owes:t=>e.some(e=>this.patternTokenWouldMatch(e,t)),commandMarkers:this.commandMarkers(),hasResponseType:!!this.currentSchema()?.roles.some(e=>"responseType"===e.role)}}isClassNameSlot(e){return"patient"===e.role&&["add","remove","toggle","take"].includes(this.currentRoleCommand??"")}isObjectValueSlot(e){const t=this.currentRoleCommand;return"source"===e.role?"get"===t:"patient"===e.role&&("put"===t||"set"===t)}static boundedByMarker(e){return!e||("literal"===e.type||"group"===e.type&&"literal"===e.tokens[0]?.type)}restLiterals(){const e=[],t=r=>{for(const i of r)"literal"===i.type?e.push(i):"group"===i.type&&t(i.tokens)};return t(this.patternRest),e}currentSchema(){const e=this.currentRoleCommand;if(e&&e in at)return at[e]}commandMarkers(){const e=this.currentSchema(),t=this.currentProfile,r=new Set;if(!e||!t)return r;for(const i of e.roles){const e=i.markerOverride?.[t.code];if(e){r.add(e.toLowerCase());continue}const a=t.roleMarkers[i.role];if(a){r.add(a.primary.toLowerCase());for(const e of a.alternatives??[])r.add(e.toLowerCase())}}return r.delete(""),r}stampCaptureSpan(e,t,r,i,a){const n=r.get(t);if(!n||n===a||n.position)return;if(e.position()<=i)return;const o=e.tokens[i],s=e.tokens[e.position()-1];o&&s&&r.set(t,$u(n,{start:o.position.start,end:s.position.end}))}absorbTrailingConditionOperand(e,r,i,a,n){if("condition"!==r.role)return;if(!i.has("condition"))return;if(e.position()<=n)return;const o="repeat"===this.currentPatternCommand;if(!o&&(void 0!==a||"on"!==this.currentPatternCommand))return;const s=t.CONDITION_OPERATOR_WORDS,l=e=>{const r=(e.normalized??"").toLowerCase(),i=e.value.toLowerCase();if(s.has(r)||s.has(i))return!0;const a=t.LOOP_CONDITION_OPERATORS;return o&&(a.has(i)||a.has(r))},p=e=>!(!e||"selector"!==e.kind&&"identifier"!==e.kind&&"literal"!==e.kind||l(e)||vy.has((e.normalized??e.value).toLowerCase())||this.patternTokenWouldMatch(a,e));let m=!1;for(;;){const t=e.peek();if(!t||!l(t)||this.patternTokenWouldMatch(a,t))break;e.advance(),m=!0;let r=e.peek();if(p(r)){e.advance();for(let t=e.peek();t&&/^\.[a-zA-Z_]\w*$/.test(t.value)&&t.position.start===r.position.end;t=e.peek())e.advance(),r=t}if(!o)break}if(!m)return;const c=nv(e.tokens.slice(n,e.position()),this.currentProfile);i.set("condition",{type:"expression",raw:c,value:c})}conversionRunLength(e){const t=e.peek();if(!t)return 0;if("as"!==(t.normalized??t.value).toLowerCase()&&"as"!==t.value.toLowerCase())return 0;let r=this.conversionTypeLength(e,1);if(0===r)return 0;for(r+=1;;){if("|"!==e.peek(r)?.value)return r;const t=this.conversionTypeLength(e,r+1);if(0===t)return r;r+=1+t}}conversionTypeLength(e,t){const r=e.peek(t)?.value.toLowerCase(),i="a"===r||"an"===r?t+1:t,a=e.peek(i);if(!a)return 0;const n=e.peek(i+1),o=e.peek(i+2);return":"===n?.value&&o&&zv(a,n)&&zv(n,o)&&My(`${a.value}:${o.value}`)?i-t+3:My(a.value)?i-t+1:0}absorbTrailingConversion(e,t,r,i,a){if("event"===t.role||"action"===t.role)return;if(!r.has(t.role))return;if(e.position()<=a)return;const n=this.conversionRunLength(e);if(0===n)return;if(this.patternTokenWouldMatch(i,e.peek()))return;for(let t=0;n>t;t++)e.advance();const o=nv(e.tokens.slice(a,e.position()),this.currentProfile);r.set(t.role,{type:"expression",raw:o,value:o})}matchRoleTokenCore(e,r,i,a){this.skipNoiseWords(e,r,a);const n=e.peek();if(!n)return r.optional||!1;const o=this.slotAt(e,r,a);if("action"===r.role&&this.currentProfile&&"-"===e.peek(1)?.value){const t=this.tryFoldHyphenActionKeyword(e);if(t)return i.set(r.role,t),!0}if("event"===r.role&&"on"===this.currentPatternCommand){if(!t.tokenLooksLikeEvent(n))return r.optional||!1;const e=(n.normalized??n.value).toLowerCase();if(t.POSITIONAL_OR_SCOPE_KEYWORDS.has(e))return r.optional||!1;if(t.VISIBILITY_STRATEGIES.has(e))return r.optional||!1;if(this.currentProfile&&void 0!==(Gu(this.currentProfile,n.value)??Gu(this.currentProfile,e)))return r.optional||!1;if(n.value.includes("?."))return r.optional||!1}if("event"===r.role){const e=(n.normalized??n.value).toLowerCase();if(t.STRUCTURAL_NEVER_EVENT.has(e))return r.optional||!1}if(function(e,t){const r=e.token;if("keyword"!==r.kind)return!1;const i=(r.normalized??r.value).toLowerCase();return"then"===i||("end"===i&&"selector"!==e.next?.kind||ty(r.value,t))&&!iv(e.place,t)}(o,this.currentProfile?.code??"")||function(e,t){const r=e.patternToken.role;return("quantity"===r||"event"===r&&"repeat"===t)&&lv(e.token)&&!pv(e)&&!e.nextIsMarker}(o,this.currentPatternCommand))return r.optional||!1;if("duration"===r.role){const e=(n.normalized??n.value).toLowerCase();if(t.POSITIONAL_OR_SCOPE_KEYWORDS.has(e))return r.optional||!1}if(function(e){const t=e.patternToken;return!(!t.optional||"event"===t.role||"action"===t.role)&&!("keyword"===t.valueShape||!lv(e.token))&&(e.lastSlot||e.tokenIsMarker)&&!pv(e)}(o))return!0;if(this.roleAcceptsPropertyPath(r)){const t=this.tryMatchPositionalPossessiveExpression(e,a);if(t)return i.set(r.role,t),!0}const s=this.tryMatchPositionalExpression(e,a);if(s)return r.expectedTypes&&r.expectedTypes.length>0&&!Uu(s.type,r.expectedTypes)?r.optional||!1:(i.set(r.role,s),!0);const l=this.tryMatchCaretScopeExpression(e);if(l)return r.expectedTypes&&r.expectedTypes.length>0&&!Uu(l.type,r.expectedTypes)?r.optional||!1:(i.set(r.role,l),!0);const p=this.tryMatchParenReceiverCall(e);if(p)return r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes("expression")?r.optional||!1:(i.set(r.role,p),!0);if("event"!==r.role&&(!r.expectedTypes||r.expectedTypes.includes("expression"))){const t=this.tryMatchBeepPrefixExpression(e);if(t)return i.set(r.role,t),!0;const a=this.tryMatchHyphenatedWord(e);if(a)return i.set(r.role,a),!0;const n=this.isWrittenTarget(r)?null:this.tryMatchOperatorRunExpression(e);if(n)return i.set(r.role,n),!0}if("pick"===this.currentPatternCommand&&"patient"===r.role&&(!r.expectedTypes||r.expectedTypes.includes("expression"))){const t=this.tryMatchPickRangeExpression(e);if(t)return i.set(r.role,t),!0}if(this.roleAcceptsPropertyPath(r)){const t=this.tryMatchOfPossessiveExpression(e,a);if(t)return i.set(r.role,t),!0;const n=this.tryMatchPostNominalPossessiveExpression(e);if(n)return i.set(r.role,n),!0}const m=this.tryMatchPossessiveExpression(e);if(m)return r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes(m.type)&&!r.expectedTypes.includes("expression")?r.optional||!1:(i.set(r.role,m),!0);const c=this.tryMatchMethodCallExpression(e);if(c)return r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes(c.type)&&!r.expectedTypes.includes("expression")?r.optional||!1:(i.set(r.role,c),!0);const d="event"===r.role&&"on"===this.currentPatternCommand||t.DECLARATION_COMMANDS.has(this.currentPatternCommand??"")||this.isWrittenTarget(r)?null:this.tryMatchBareCallExpression(e);if(d)return r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes(d.type)&&!r.expectedTypes.includes("expression")?r.optional||!1:(i.set(r.role,d),!0);const u=this.tryMatchPossessiveSelectorExpression(e);if(u)return r.expectedTypes&&r.expectedTypes.length>0&&!Uu(u.type,r.expectedTypes)?r.optional||!1:(i.set(r.role,u),!0);const y=this.tryMatchPropertyAccessExpression(e,"condition"!==r.role);if(y)return r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes(y.type)&&!r.expectedTypes.includes("expression")?r.optional||!1:(i.set(r.role,y),!0);const v=this.tryMatchSelectorPropertyExpression(e);if(v)return r.expectedTypes&&r.expectedTypes.length>0&&!Uu(v.type,r.expectedTypes)?r.optional||!1:(i.set(r.role,v),!0);if("("===n.value&&"event"!==r.role&&"action"!==r.role&&(!r.expectedTypes?.length||r.expectedTypes.some(e=>"expression"===e||"selector"===e||"reference"===e))){const t=this.tryMatchParenGroupExpression(e);if(t)return i.set(r.role,t),!0}if("identifier"===n.kind&&"{"===n.value){const t=r.expectedTypes,a=1===t?.length&&"expression"===t[0]||this.isObjectValueSlot(r)?this.tryMatchBraceRunExpression(e):!t?.length||t.includes("literal")?this.tryMatchBraceRunLiteral(e):null;if(a)return i.set(r.role,a),!0}if("style"===r.role&&1===r.expectedTypes?.length&&"expression"===r.expectedTypes[0]){const t=Wv(e);if(t)return i.set(r.role,{type:"expression",raw:t}),!0}if(function(e){if("particle"!==e.token.kind)return!1;const t=e.next;return void 0!==t&&e.nextIsMarker&&("particle"===t.kind||"particle"===e.prev?.kind)||e.afterLiteral&&e.beforeRole||e.clauseEndsAfter}(o)||function(e,t){const r=e.patternToken;if("event"===r.role||"action"===r.role||"keyword"===r.valueShape)return!1;const i=r.expectedTypes;if(i?.length&&!i.some(e=>"expression"===e||"reference"===e))return!1;const a=av(e.token);return"structure"===a||"verb"===a&&"empty"!==(e.token.normalized??e.token.value).toLowerCase()&&!t?.hasBody&&!t?.roles.some(e=>"event"===e.role)}(o,this.currentSchema())||function(e,t){return Hy(e.token,t)&&iv(e.place,t)}(o,this.currentProfile?.code??""))return i.set(r.role,{type:"expression",raw:n.value}),e.advance(),!0;const f=this.tokenToSemanticValue(n);if(!f)return r.optional||!1;if(r.expectedTypes&&r.expectedTypes.length>0&&!r.expectedTypes.includes(f.type)){const e="selector"===f.type&&(f.value+"").startsWith("@"),t=r.expectedTypes.some(e=>"expression"===e||"reference"===e);if(!e||!t)return r.optional||!1}i.set(r.role,"keyword"===r.valueShape&&"expression"===f.type?Mu((f.raw??"")+""):f),e.advance();const h=this.isClassNameSlot(r);if("selector"===f.type&&(f.value.startsWith("<")||f.value.startsWith(".")&&!h)&&"event"!==r.role){const t=dy(e.tokens,e.position(),this.currentProfile,e=>void 0!==e&&this.patternTokenWouldMatch(a,e));if(t){const[a,n]=t.scope.parts,o="reference"===t.scope.kind?Nu(a.text):"closest"===t.scope.kind?{type:"expression",raw:"closest "+n.text}:this.tokenToSemanticValue(a.token);for(let r=0;1+t.scope.consumed>r;r++)e.advance();i.set(r.role,{...f,scope:o})}}if("event"===r.role){const t=e.peek();t&&"selector"===t.kind&&t.value.startsWith("[")&&t.position.start===n.position.end&&"value"in f&&(i.set(r.role,Mu(`${f.value+""}${t.value}`)),e.advance());const o=e.peek();if(o&&("particle"===o.kind||"keyword"===o.kind)&&"source"===(o.normalized??"").toLowerCase()&&!this.patternTokenWouldMatch(a,o)){const t=e.peek(1),r=t?this.sourceNounValue(t):void 0;r&&!this.eventSource&&(e.advance(),e.advance(),this.eventSource=r)}}return!0}atClauseEnd(e){const t=e.peek();if(!t)return!0;if("conjunction"===t.kind)return!0;if("keyword"!==t.kind)return!1;const r=(t.normalized??t.value).toLowerCase();return"then"===r||"end"===r||ty(t.value,this.currentProfile?.code??"")}patternTokenWouldMatch(e,t){return!!e&&("literal"===e.type?"none"!==this.getMatchType(t,e.value)||!!e.alternatives?.some(e=>"none"!==this.getMatchType(t,e)):"group"===e.type&&this.patternTokenWouldMatch(e.tokens?.[0],t))}tryMatchPositionalExpression(e,t){const r=fy(e.tokens,e.position(),this.currentProfile,e=>void 0!==e&&this.patternTokenWouldMatch(t,e));if(!r)return null;for(let t=0;r.consumed>t;t++)e.advance();return{type:"expression",raw:r.parts.map(e=>e.text).join(" ")}}tryMatchCaretScopeExpression(e){const t=e.peek();if(!t||"identifier"!==t.kind||!t.value.startsWith("^"))return null;const r=e.peek(1),i=e.peek(2),a=(r?.normalized??"").toLowerCase(),n=!!r&&("on"===r.value.toLowerCase()||"destination"===a||"on"===a);return r&&i&&"selector"===i.kind&&n?(e.advance(),e.advance(),e.advance(),{type:"expression",raw:`${t.value} on ${i.value}`}):null}isOfPossessiveMarker(e){return oy(this.currentProfile,e)}logicalConnectiveOf(e){const t=e.peek();if(!t)return;const r=this.currentProfile?.code??"en",i=e=>"and"===e||"or"===e||"not"===e,a=hy(r,t.value).toLowerCase();if(i(a))return a;if(this.commandMarkers().has(t.value.toLowerCase()))return;const n=e.position(),o=function(e,t,r,i){return Oy(e,t,r,i,void 0,void 0)}(r,t,e.tokens[n-1],e.tokens[n+1]);return o&&i(o)?o:void 0}tryConsumeRunPhrase(e){const r=this.currentProfile?.code??"en",i=e.tokens,a=e.position(),n=[];let o;for(let e=0;6>e&&i.length>a+e;e++){const t=By(r,i[a+e],i[a+e-1],i[a+e+1],o).toLowerCase();n.push(t),o=t}for(const[r,i]of t.RUN_PHRASES)if(r.every((e,t)=>n[t]===e)){for(let t=0;r.length>t;t++)e.advance();return i}}slotAt(e,t,r){return new sv(e,t,this.slotAfterLiteral,r,this.wouldMatch)}static isBareWordToken(e){return!!e&&/^[A-Za-z_][A-Za-z0-9_]*$/.test(e.value)}tryMatchBeepPrefixExpression(e){const t=e.peek(),r=e.peek(1);if(!t||!r||"!"!==r.value)return null;if("beep"!==(t.normalized??t.value).toLowerCase())return null;if(!(void 0!==t.position?.end&&void 0!==r.position?.start&&t.position.end===r.position.start))return null;const i=e.mark(),a=e.position();if(e.advance(),e.advance(),!this.tryConsumeRunOperand(e))return e.reset(i),null;for(;;){const t=e.peek();if(!t||!Qu.has(t.value))break;const r=e.mark();if(e.advance(),!this.tryConsumeRunOperand(e,!0)){e.reset(r);break}}const n=nv(e.tokens.slice(a,e.position()),this.currentProfile);return{type:"expression",raw:n,value:n}}tryMatchHyphenatedWord(e){const r=e.peek();if(!t.isBareWordToken(r))return null;let i=1;const a=[r.value];for(;;){const r=e.peek(i),n=e.peek(i+1);if(!(r&&"-"===r.value&&t.isBareWordToken(n)&&zv(e.peek(i-1),r)&&zv(r,n)))break;a.push(n.value),i+=2}if(2>a.length)return null;for(let t=0;i>t;t++)e.advance();return Mu(a.join("-"),"string")}tryMatchOperatorRunExpression(e){const t=e.mark(),r=e.position(),i=e.peek(),a=!!i&&("not"===this.logicalConnectiveOf(e)||"-"===i.value);if(!this.tryConsumeRunOperand(e))return e.reset(t),null;let n=1;for(;;){const t=e.peek();if(!t)break;const r=this.logicalConnectiveOf(e),i=("and"===r||"or"===r)&&"wait"!==this.currentRoleCommand,a=e.mark();if(i||Qu.has(t.value))e.advance();else{const t=this.tryConsumeRunPhrase(e);if(void 0===t)break;if("none"===t){n++;continue}}if(!this.tryConsumeRunOperand(e,!0,i)){e.reset(a);break}n++}if(2>n&&!a)return e.reset(t),null;const o=nv(e.tokens.slice(r,e.position()),this.currentProfile);return{type:"expression",raw:o,value:o}}static rangeSeparatorFor(e){const[r]=t.PICK_RANGE_SEPARATORS_BY_LANG[e]??[];return r}isPickRangeSeparator(e){const r=(e.normalized??e.value).toLowerCase();if(t.PICK_RANGE_SEPARATORS.has(r))return!0;const i=this.currentProfile?.code;return!!i&&(t.PICK_RANGE_SEPARATORS_BY_LANG[i]?.has(e.value.toLowerCase())??!1)}tryMatchPickRangeExpression(e){const r=e.mark(),i=e.position();if(!this.tryConsumePickRangeOperand(e))return e.reset(r),null;const a=e.peek();if(!a||!this.isPickRangeSeparator(a))return e.reset(r),null;if(e.advance(),!this.tryConsumePickRangeOperand(e))return e.reset(r),null;const n=e.peek();n&&t.PICK_RANGE_MODES.has((n.normalized??n.value).toLowerCase())&&e.advance();const o=e.tokens.slice(i,e.position()),[s,,l,p]=o,m=e=>"keyword"===e.kind?e.normalized??e.value:e.value;let c=`${m(s)} to ${m(l)}`;return p&&(c+=" "+(p.normalized??p.value).toLowerCase()),{type:"expression",raw:c,value:c}}tryConsumePickRangeOperand(e){const t=e.peek();if(!t)return!1;const r=(t.normalized??t.value).toLowerCase();if(this.isPickRangeSeparator(t))return!1;return!("literal"!==t.kind&&"identifier"!==t.kind&&("keyword"!==t.kind||"start"!==r&&"end"!==r))&&(e.advance(),!0)}tryConsumeRunOperand(e,t=!1,r=!1){const i=e.peek();if(!i)return!1;if("not"===this.logicalConnectiveOf(e)){const t=e.mark();return e.advance(),a=e.peek()??void 0,n=e.peek(1)??void 0,"particle"===a?.kind&&n&&["selector","literal","identifier"].includes(n.kind)&&!ov(n)?(e.reset(t),!1):!!this.tryConsumeRunOperand(e,!0,r)||(e.reset(t),!1)}var a,n;if("-"===i.value){const t=e.mark();return e.advance(),this.tryConsumeRunOperand(e,!0,r)?!0:(e.reset(t),!1)}if(r&&function(e){return vy.has((e.normalized??e.value).toLowerCase())}(i))return!1;if(function(e,t,r){return"particle"===e.kind&&(t||ov(r))}(i,t,e.peek(1)??void 0))return e.advance(),!0;if("("===i.value){const t=e.mark();let r=0;for(;!e.isAtEnd();){const t=e.advance();if("("===t.value)r++;else if(")"===t.value&&(r--,0===r))return!0}return e.reset(t),!1}if(this.tryMatchPossessiveExpression(e))return!0;if("the"===i.value.toLowerCase()){const i=e.mark();if(e.advance(),this.tryConsumeRunOperand(e,t,r))return!0;e.reset(i)}if(this.tryMatchOfPossessiveExpression(e)||this.tryMatchPossessiveSelectorExpression(e)||this.tryMatchPropertyAccessExpression(e,!0)||this.tryMatchSelectorPropertyExpression(e))return!0;const o=(i.normalized??"").toLowerCase();return!("literal"!==i.kind&&"identifier"!==i.kind&&"selector"!==i.kind&&"keyword"!==i.kind||Qu.has(i.value)||["then","else"].includes(o)||"end"===o&&!this.endWordIsValueAt(e)||")"===i.value)&&(e.advance(),!0)}endWordIsValueAt(e){return iv(Uy(e.tokens,e.position()),this.currentProfile?.code??"")}isPossessorToken(e){if(!this.currentProfile)return!1;for(const t of[e.value,e.normalized].filter(Boolean))if(Gu(this.currentProfile,t)??Gu(this.currentProfile,t.toLowerCase()))return!0;return!1}isBareWordPropertyHead(e){return"identifier"===e.kind&&(!/^[$:@#.*]/.test(e.value)&&(!this.isStructuralKeyword(e.value)&&((!e.normalized||!this.isStructuralKeyword(e.normalized))&&((!e.normalized||!this.isRoleMarkerConcept(e.normalized))&&!this.isPossessorToken(e)))))}toEnglishProperty(e){return this.currentProfile?gy(this.currentProfile.code,e):e}roleAcceptsPropertyPath(e){if("role"!==e.type)return!1;if(e.expectedTypes)return e.expectedTypes.includes("property-path");const t=this.currentRoleCommand;if(!t)return!1;const r=at[t],i=r?.roles.find(t=>t.role===e.role);return i?.expectedTypes?.includes("property-path")??!1}tryMatchOfPossessiveExpression(e,t){const r=e.peek();if(!r)return null;if(!("selector"===r.kind?/^[*@]/.test(r.value):this.isBareWordPropertyHead(r)))return null;const i=e.position(),a=e.mark();e.advance();const n=e.peek();if(!n||!this.isOfPossessiveMarker(n))return e.reset(a),null;e.advance(),"the"===e.peek()?.value.toLowerCase()&&e.advance();const o=fy(e.tokens,e.position(),this.currentProfile,e=>void 0!==e&&this.patternTokenWouldMatch(t,e));if(o){for(let t=0;o.consumed>t;t++)e.advance();return Iu({type:"expression",raw:o.parts.map(e=>e.text).join(" ")},this.toEnglishProperty(r.value),"possessive")}const s=e.peek();if(!s||"selector"!==s.kind||((l=s.value).startsWith("*")||l.startsWith("@"))){if(e.reset(a),this.patternTokenWouldMatch(t,n))return null;const r=Dy(e.tokens,i,this.currentProfile,this.currentProfile?.code??"en");if(void 0===r)return null;for(;e.position()<=r;)e.advance();const o=nv(e.tokens.slice(i,r+1),this.currentProfile);return{type:"expression",raw:o,value:o}}var l;return e.advance(),Iu(qu(s.value),this.toEnglishProperty(r.value),"possessive")}tryMatchPositionalPossessiveExpression(e,t){const r=this.currentProfile,i=r?.possessive?.marker;if(!r||!i||"between"!==r.possessive?.markerPosition)return null;if("th"===r.code)return null;const a=fy(e.tokens,e.position(),r,e=>void 0!==e&&this.patternTokenWouldMatch(t,e));if(!a)return null;const n=e.peek(a.consumed),o=e.peek(a.consumed+1);if(!n||n.value!==i)return null;const s=!!o&&(this.isBareWordPropertyHead(o)||"selector"===o.kind&&o.value.startsWith("*")||"keyword"===o.kind&&ky(r.code,o.value));if(!o||!s)return null;for(let t=0;a.consumed+2>t;t++)e.advance();return Iu({type:"expression",raw:a.parts.map(e=>e.text).join(" ")},this.toEnglishProperty(o.value),"possessive")}tryMatchPossessiveExpression(e){const r=e.peek();if(!r)return null;if(!this.currentProfile)return null;const i=[r.value,r.normalized].filter(Boolean);let a;for(const e of i)if(a=Gu(this.currentProfile,e)??Gu(this.currentProfile,e.toLowerCase()),a)break;if(!a)return null;const n=e.mark();e.advance();const o=this.currentProfile.possessive?.connectors;if(o&&o.length>0){const t=e.peek();if(t){const r=t.value.toLowerCase(),i=(t.normalized??"").toLowerCase();o.some(e=>e.toLowerCase()===r||e.toLowerCase()===i)&&e.advance()}}const s=e.peek();if(!s)return e.reset(n),null;if(function(e,t){const r=li.find(t=>t.lang===e);if(!r)return!1;const i=t.toLowerCase();return i===r.at.toLowerCase()||i===r.of.toLowerCase()||i===r.end.toLowerCase()}(this.currentProfile.code,s.value))return e.reset(n),null;if("identifier"===s.kind||"keyword"===s.kind&&!this.isStructuralKeyword(s.value)&&(!s.normalized||!this.isStructuralKeyword(s.normalized))&&(!s.normalized||!this.isRoleMarkerConcept(s.normalized))&&(!s.normalized||!t.COMMAND_ACTION_KEYWORDS.has(s.normalized.toLowerCase()))||"selector"===s.kind&&s.value.startsWith("*")||"selector"===s.kind&&s.value.startsWith("@")||"selector"===s.kind&&s.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(s.value)){e.advance();let r=s.value;"selector"===s.kind&&r.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(r)&&(r=r.substring(1)),r=this.toEnglishProperty(r);let i=r;for(;;){const t=e.peek();if("selector"!==t?.kind||!t.value.startsWith(".")||!/^\.[a-zA-Z_]\w*/.test(t.value)){if("?"===t?.value){const t=e.peek(1);if("selector"===t?.kind&&t.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(t.value)){i+="?"+t.value,e.advance(),e.advance();continue}}break}i+=t.value,e.advance()}const n=e.peek();if(n&&n.value.startsWith("(")){let r="",a=0,n=0;for(;!e.isAtEnd()&&n++<t.MAX_METHOD_ARGS+2;){const t=e.peek();if(!t)break;r+=t.value,e.advance();for(const e of t.value)"("===e?a++:")"===e&&a--;if(0>=a)break}i+=r}return Iu(Nu(a),i,"possessive")}return e.reset(n),null}tryMatchPostNominalPossessiveExpression(e){if(!this.currentProfile)return null;if("after-object"!==this.currentProfile.possessive?.markerPosition)return null;const t=e.peek();if(!t)return null;const r="selector"===t.kind&&t.value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(t.value);if(!("identifier"===t.kind&&!this.isStructuralKeyword(t.value)&&!(t.normalized&&this.isStructuralKeyword(t.normalized))&&!(t.normalized&&this.isRoleMarkerConcept(t.normalized))||"selector"===t.kind&&(t.value.startsWith("*")||t.value.startsWith("@"))||r)||this.isPossessorToken(t))return null;const i=e.mark();let a=t.value;r&&(a=a.substring(1)),e.advance(),a=this.toEnglishProperty(a);let n=a;for(;"selector"===e.peek()?.kind&&e.peek().value.startsWith(".")&&/^\.[a-zA-Z_]\w*/.test(e.peek().value);)n+=e.peek().value,e.advance();const o=e.peek();if(!o)return e.reset(i),null;let s;for(const e of[o.value,o.normalized].filter(Boolean))if(s=Gu(this.currentProfile,e)??Gu(this.currentProfile,e.toLowerCase()),s)break;if(!s)return e.reset(i),null;const l=e.mark();return this.tryMatchPossessiveExpression(e)?(e.reset(i),null):(e.reset(l),e.advance(),Iu(Nu(s),n,"possessive"))}isStructuralKeyword(e){return new Set(["into","in","to","from","at","by","with","without","before","after","of","as","on","then","end","else","if","repeat","while","for","toggle","add","remove","put","set","show","hide","increment","decrement","send","trigger","call"]).has(e.toLowerCase())}isRoleMarkerConcept(e){return ei.has(e.toLowerCase())}static tokenLooksLikeEvent(e){if("selector"===e.kind||"url"===e.kind)return!1;if("literal"===e.kind)return!1;const t=e.value;if(/[/#@*]/.test(t))return!1;if(t.startsWith('"')||t.startsWith("'")||t.startsWith("`"))return!1;const r=e.normalized?.toLowerCase();return(!r||!Nv.has(r))&&("me"!==r&&"it"!==r&&"you"!==r)}tryMatchBraceRunLiteral(e){const r=e.peek();if(!r||"identifier"!==r.kind||"{"!==r.value)return null;const i=e.mark();e.advance();const a=["{"];let n=1,o=0;for(;!e.isAtEnd()&&o++<t.MAX_BRACE_RUN_TOKENS;){const t=e.advance();if(!t)break;if("{"===t.value)n++;else if("}"===t.value&&(n--,0===n))return a.push("}"),Mu(a.join(" "));a.push(t.value)}return e.reset(i),null}tryMatchBraceRunExpression(e){const r=e.peek();if(!r||"identifier"!==r.kind||"{"!==r.value)return null;const i=e.mark();let a="",n=-1,o=0,s=0;for(;!e.isAtEnd()&&s++<t.MAX_BRACE_RUN_TOKENS;){const t=e.advance();if(!t)break;if(n>=0&&t.position.start>n&&(a+=" ".repeat(t.position.start-n)),a+=t.value,n=t.position.end,"{"===t.value)o++;else if("}"===t.value&&(o--,0===o))return{type:"expression",raw:a}}return e.reset(i),null}tryMatchBareCallExpression(e){const r=e.peek();if(!r||"identifier"!==r.kind)return null;if(!/^[A-Za-z_][\w$]*$/.test(r.value))return null;const i=e.peek(1);if(!i||"("!==i.value)return null;const a=e.mark();e.advance();const n=e.advance();let o="",s=n.position?.end,l=!1,p=0;for(;!e.isAtEnd()&&p++<t.MAX_METHOD_ARGS+2;){const t=e.peek();if(!t)break;if(")"===t.value){e.advance(),l=!0;break}o+=(""===o||void 0!==s&&t.position?.start===s?"":" ")+t.value,s=t.position?.end,e.advance()}return l?{type:"expression",raw:`${r.value}(${o})`}:(e.reset(a),null)}tryMatchMethodCallExpression(e){const r=e.peek();if(!r||"selector"!==r.kind)return null;const i=e.mark();e.advance();const a=e.peek();if(!a||"operator"!==a.kind||"."!==a.value)return e.reset(i),null;e.advance();const n=e.peek();if(!n||"identifier"!==n.kind)return e.reset(i),null;e.advance();const o=e.peek();if(!o||"punctuation"!==o.kind||"("!==o.value)return e.reset(i),null;e.advance();const s=[];for(;!e.isAtEnd()&&t.MAX_METHOD_ARGS>s.length;){const t=e.peek();if(!t)break;if("punctuation"===t.kind&&")"===t.value){e.advance();break}"punctuation"!==t.kind||","!==t.value?(s.push(t.value),e.advance()):e.advance()}return{type:"expression",raw:`${r.value}.${n.value}(${s.join(", ")})`}}tryMatchParenReceiverCall(e){if("("!==e.peek()?.value)return null;const r=e.mark(),i=[];e.advance();let a=1;for(;!e.isAtEnd()&&4*t.MAX_METHOD_ARGS>=i.length;){const t=e.peek();if(e.advance(),"("===t.value)a++;else if(")"===t.value&&0===--a)break;i.push(t)}const n=e.tokens[e.position()-1],o=e.peek();if(0!==a||0===i.length||!o||"selector"!==o.kind||!/^\.[A-Za-z_$][\w$]*$/.test(o.value)||!t.abuts(n,o))return e.reset(r),null;e.advance();const s=e.peek();if("("!==s?.value||!t.abuts(o,s))return e.reset(r),null;const l=this.consumeCallParens(e);if(null===l)return e.reset(r),null;return{type:"expression",raw:`(${nv(i,this.currentProfile)})${o.value}${l}`}}tryMatchParenGroupExpression(e){if("("!==e.peek()?.value)return null;const r=e.mark();e.advance();const i=[];let a=1;for(;!e.isAtEnd();){const t=e.peek();if(e.advance(),"("===t.value)a++;else if(")"===t.value&&0===--a)break;i.push(t)}const n=e.tokens[e.position()-1],o=e.peek(),s=!!o&&("'"===o.value||Qu.has(o.value)||t.abuts(n,o)&&(o.value.startsWith(".")||"("===o.value));if(0!==a||0===i.length||s)return e.reset(r),null;const l=`(${nv(i,this.currentProfile)})`;return{type:"expression",raw:l,value:l}}static abuts(e,t){return!!e&&!!t&&e.position.end===t.position.start}consumeCallParens(e){const t=e.mark(),r=[];let i=0;for(;!e.isAtEnd();){const t=e.peek();if(!t)break;if(r.push(t.value),e.advance(),"("===t.value)i++;else if(")"===t.value&&0===--i)return r.join("")}return e.reset(t),null}tryMatchPropertyAccessExpression(e,r=!0){const i=e.peek();if(!i)return null;if("identifier"!==i.kind&&"keyword"!==i.kind)return null;const a=e.mark();e.advance();const n=i.value.toLowerCase(),o=e.peek();if(("identifier"===i.kind||t.PROPERTY_ACCESS_BASES.has(n))&&o&&"selector"===o.kind&&/^\.[a-zA-Z_]/.test(o.value)&&o.position.start===i.position.end){let a=i.value;const o=[];let s=0;for(;t.MAX_PROPERTY_DEPTH>s;){const t=e.peek();if(!t||"selector"!==t.kind||!/^\.[a-zA-Z_]/.test(t.value))break;a+="."+t.value.slice(1),o.push(t.value.slice(1)),e.advance(),s++}const l=e.peek(),p=!!l&&l.value.startsWith("(");return r&&!p&&o.length>0&&Ru(n)?Iu(Nu(n),o.join("."),"dot"):(p&&(a+=this.consumeCallParens(e)??""),{type:"expression",raw:a})}const s=e.peek();if(!s||"operator"!==s.kind||"."!==s.value)return e.reset(a),null;e.advance();const l=e.peek();if(!l||"identifier"!==l.kind)return e.reset(a),null;e.advance();let p=`${i.value}.${l.value}`,m=1;for(;!e.isAtEnd()&&t.MAX_PROPERTY_DEPTH>m;){const t=e.peek();if(!t||"operator"!==t.kind||"."!==t.value)break;e.advance();const r=e.peek();if(!r||"identifier"!==r.kind)break;e.advance(),p+="."+r.value,m++}const c=e.peek();if(c&&"punctuation"===c.kind&&"("===c.value){e.advance();const r=[];let i=0;for(;!e.isAtEnd()&&t.MAX_METHOD_ARGS>r.length;){const t=e.peek();if(!t)break;if("punctuation"===t.kind&&")"===t.value){if(0===i){e.advance();break}i--}"punctuation"===t.kind&&"("===t.value&&i++,"punctuation"!==t.kind||","!==t.value?(r.push(t.value),e.advance()):e.advance()}return{type:"expression",raw:`${p}(${r.join(", ")})`}}const d=i.value.toLowerCase();if(r&&Ru(d)){const e=p.split(".").slice(1).join(".");return Iu(Nu(d),e,"dot")}return{type:"expression",raw:p}}tryMatchPossessiveSelectorExpression(e){const t=e.peek();if(!t||"selector"!==t.kind)return null;const r=e.mark();e.advance();const i=e.peek(),a=this.currentProfile?.possessive?.marker?.replace(/^-/,""),n=!!i&&"punctuation"===i.kind&&"'s"===i.value,o=!!i&&"'"===i.value&&"s"===(e.peek(1)?.value??"").toLowerCase(),s=(()=>{if(!this.currentPatternCommand)return!1;if("source"!==(i?.normalized??"").toLowerCase())return!1;const e=at[this.currentPatternCommand];return!!e&&e.roles.some(e=>"source"===e.role)})();if(!n&&!!(!i||!a||"'s"===a||i.value!==a||"particle"!==i.kind&&"punctuation"!==i.kind&&"identifier"!==i.kind||s)&&!o)return e.reset(r),null;e.advance(),o&&e.advance();const l=e.peek();if(!l)return e.reset(r),null;const p="selector"===l.kind&&l.value.startsWith("*"),m="keyword"===l.kind&&!!this.currentProfile&&ky(this.currentProfile.code,l.value);return"identifier"===l.kind||p||m||(n||o)&&("selector"===l.kind||"keyword"===l.kind)?(e.advance(),Iu(qu(t.value),this.toEnglishProperty(l.value),"possessive")):(e.reset(r),null)}tryMatchSelectorPropertyExpression(e){const r=e.peek();if(!r||"selector"!==r.kind)return null;if(!r.value.startsWith("#"))return null;const i=e.mark();e.advance();const a=e.peek();if(!a||"selector"!==a.kind)return e.reset(i),null;if(!a.value.startsWith("."))return e.reset(i),null;e.advance();const n=[a.value.slice(1)];let o=a;for(let r=e.peek();r&&"selector"===r.kind&&/^\.[a-zA-Z_]/.test(r.value)&&t.MAX_PROPERTY_DEPTH>n.length;r=e.peek())n.push(r.value.slice(1)),o=r,e.advance();const s=e.peek();if("("===s?.value&&t.abuts(o,s)){const t=this.consumeCallParens(e);if(null!==t)return{type:"expression",raw:`${r.value}.${n.join(".")}${t}`}}return Iu(qu(r.value),n.join("."),"dot")}matchGroupToken(e,t,r,i){const a=e.mark(),n=new Map(r);let o=this.matchTokenSequence(e,t.tokens,r,i);if(o){const i=[];for(const e of t.tokens)if("group"===e.type&&e.renderRequired)for(const t of e.tokens)"literal"===t.type&&i.push(t.value,...t.alternatives??[]);if(i.length>0){if([...r.keys()].some(e=>!n.has(e))){e.tokens.slice(a.position,e.position()).some(e=>i.some(t=>"none"!==this.getMatchType(e,t)))||(o=!1)}}}if(!o){e.reset(a);for(const e of r.keys())n.has(e)||r.delete(e);for(const[e,t]of n)r.get(e)!==t&&r.set(e,t);return t.optional||!1}return!0}getMatchType(t,r){if(t.value===r)return"exact";if(t.normalized===r)return"normalized";if(t.stem===r&&void 0!==t.stemConfidence&&t.stemConfidence>=.7)return"stem";if("keyword"===t.kind&&t.value.toLowerCase()===r.toLowerCase())return"case-insensitive";if("keyword"===t.kind){const i=e(t.value).toLowerCase();if(i&&i===e(r).toLowerCase())return"case-insensitive"}return"none"}isWrittenTarget(e){return t.WRITTEN_ROLE[this.currentRoleCommand??""]===e.role}tokenToSemanticValue(e){return Av(e)}applyExtractionRules(e,t){for(const[r,i]of Object.entries(e.extraction)){const e=t.get(r);if(e){if(i.transform){t.set(r,i.transform("literal"===e.type?e.value+"":(e.raw??"")+""))}}else void 0!==i.value?t.set(r,{type:"literal",value:i.value}):i.default&&t.set(r,{...i.default,implicit:!0})}}isOptional(e){return"literal"!==e.type&&!0===e.optional}skipNoiseWords(e,r,i){const a=e.peek();if(!a)return;const n=a.value.toLowerCase();if(t.ENGLISH_NOISE_WORDS.has(n)){if(function(e){const t=e.token.value.toLowerCase();if("a"!==t&&"an"!==t)return!1;const r=e.next;return void 0!==r&&(Yu.has(r.value)||e.nextIsMarker)}(this.slotAt(e,r,i)))return;const a=e.mark();e.advance();const n=e.peek();if(n&&("selector"===n.kind||"identifier"===n.kind))return;const o=e.peek(1);if(n&&"keyword"===n.kind&&o&&"selector"===o.kind&&/^\.[a-zA-Z_]/.test(o.value))return;const s=n?(n.normalized??n.value).toLowerCase():"";if(n&&t.POSITIONAL_OR_SCOPE_KEYWORDS.has(s))return;const l=e.peek(1),p=l?(l.normalized??l.value).toLowerCase():"",m="SOV"!==this.currentProfile?.wordOrder&&t.COMMAND_ACTION_KEYWORDS.has(p),c=!l||"particle"===l.kind||t.CLAUSE_BOUNDARY_KEYWORDS.has(p)||m;if(n&&"keyword"===n.kind&&"en"!==this.currentProfile?.code&&Ru(s)&&c)return;if(n&&"keyword"===n.kind&&"en"===this.currentProfile?.code&&Ru(s))return;e.reset(a)}"class"===n&&e.advance()}extractEventModifiers(e){const t={};let r=!1;for(;!e.isAtEnd();){const i=e.peek();if(!i||"event-modifier"!==i.kind)break;const a=i.metadata;if(!a)break;switch(r=!0,a.modifierName){case"once":t.once=!0;break;case"debounce":"number"==typeof a.value&&(t.debounce=a.value);break;case"throttle":"number"==typeof a.value&&(t.throttle=a.value);break;case"queue":"first"!==a.value&&"last"!==a.value&&"all"!==a.value&&"none"!==a.value||(t.queue=a.value)}e.advance()}return r?t:void 0}};$v.CONDITION_OPERATOR_WORDS=new Set(["matches","match","contains","exists","has","have","equals","includes"]),$v.LOOP_CONDITION_OPERATORS=new Set([...Xu,"and","or"]),$v.POSITIONAL_OR_SCOPE_KEYWORDS=new Set(["first","last","next","previous","random","closest","parent"]),$v.STRUCTURAL_NEVER_EVENT=new Set(["if","unless","else","end","then","while"]),$v.PROPERTY_ACCESS_BASES=new Set(["it","me","you","my","its","your","event","result","target","detail","body","window","document","self","this"]),$v.COMMAND_ACTION_KEYWORDS=vy,$v.CLAUSE_BOUNDARY_KEYWORDS=new Set(["then","and","or","end","else"]),$v.RUN_PHRASES=[...Ad.map(e=>[e.split(" "),"none"]),...qd.map(e=>[e.split(" "),"type"]),...Wd.filter(e=>!/^(in|am|has|have)$|^am /.test(e)).map(e=>[e.split(" "),"operand"]),[["exists"],"none"]],$v.PICK_RANGE_SEPARATORS=new Set(["to"]),$v.PICK_RANGE_SEPARATORS_BY_LANG={ar:new Set(["\u0625\u0644\u0649"]),bn:new Set(["\u09a5\u09c7\u0995\u09c7"]),de:new Set(["zu","bis"]),es:new Set(["a"]),fr:new Set(["\u00e0"]),he:new Set(["\u05e2\u05dc","\u05e2\u05d3"]),hi:new Set(["\u0938\u0947"]),id:new Set(["ke"]),it:new Set(["in","a"]),ja:new Set(["\u304b\u3089"]),ko:new Set(["\ubd80\ud130"]),ms:new Set(["ke"]),pl:new Set(["do"]),pt:new Set(["para","a"]),qu:new Set(["kama"]),ru:new Set(["\u0432","\u0434\u043e"]),sw:new Set(["kwa","hadi"]),th:new Set(["\u0e43\u0e19","\u0e16\u0e36\u0e07"]),tl:new Set(["sa"]),tr:new Set(["ile"]),uk:new Set(["\u0432","\u0434\u043e"]),vi:new Set(["v\u00e0o","\u0111\u1ebfn"]),zh:new Set(["\u5230"])},$v.PICK_RANGE_MODES=new Set(["inclusive","exclusive"]),$v.VISIBILITY_STRATEGIES=new Set(["display","visibility","opacity","twdisplay","twvisibility","twopacity"]),$v.MAX_BRACE_RUN_TOKENS=64,$v.MAX_PROPERTY_DEPTH=10,$v.MAX_METHOD_ARGS=20,$v.DECLARATION_COMMANDS=new Set(["behavior","def","install"]),$v.WRITTEN_ROLE={increment:"patient",decrement:"patient",set:"destination"},$v.ENGLISH_NOISE_WORDS=new Set(["the","a","an"]);var Iv=$v,Kv=new Iv;function Vv(e,t){return Kv.matchPattern(e,t)}function Bv(e,t){return Kv.matchBest(e,t)}function Dv(e){return function(e){let t=vt.get(e);return!t&&Pt(e)&&(t=vt.get(Ct(e))),t}(e)}function Fv(e,t){return qt(e,t)}function Hv(){return Wt()}function Uv(e){return At(e)}function Gv(e){!function(e){vt.set(e.language,e)}(e)}Rt(),Qn(),uo(),jo(),Io(),ts(),gs(),js(),zi(),Rt(),wt();var Zv={ar:new Set(["\u0623\u0648"]),bn:new Set(["\u0985\u09a5\u09ac\u09be"]),de:new Set(["oder"]),en:new Set(["or"]),es:new Set(["o"]),fr:new Set(["ou"]),he:new Set(["\u05d0\u05d5"]),hi:new Set(["\u092f\u093e"]),id:new Set(["atau"]),it:new Set(["o"]),ja:new Set(["\u307e\u305f\u306f"]),ko:new Set(["\ub610\ub294"]),ms:new Set(["atau"]),pl:new Set(["lub"]),pt:new Set(["ou"]),qu:new Set(["utaq"]),ru:new Set(["\u0438\u043b\u0438"]),sw:new Set(["au"]),th:new Set(["\u0e2b\u0e23\u0e37\u0e2d"]),tl:new Set(["o"]),tr:new Set(["veya"]),uk:new Set(["\u0430\u0431\u043e"]),vi:new Set(["ho\u1eb7c"]),zh:new Set(["\u6216"])},Yv=new Set(Object.values(Zv).flatMap(e=>[...e]));function Xv(e,t){const r=(e.normalized??e.value).toLowerCase();if("or"===r)return!0;const i=void 0===t?Yv:Zv[t];return!!i&&(i.has(e.value)||i.has(r))}pi(),mi(),Rt(),wt();var Qv=["if","unless","repeat","for","while"],Jv=/^[A-Z][A-Za-z0-9_]*$/;function ef(e,t){const r=new Set([t]),i=_t(e),a=i?.keywords?.[t];if(a){a.primary&&r.add(a.primary.toLowerCase());for(const e of a.alternatives??[])r.add(e.toLowerCase())}return r}function tf(e,t){return!!t.has(e.value.toLowerCase())||!!e.normalized&&t.has(e.normalized.toLowerCase())}var rf=new Set(Qv);function af(e){return{byAction:Qv.map(t=>[t,ef(e,t)]),elseForms:ef(e,"else"),inForms:ef(e,"in")}}function nf(e,t){if(!e)return;const r=e.normalized?.toLowerCase();return r?rf.has(r)?r:void 0:t.byAction.find(([,t])=>tf(e,t))?.[0]}function of(e,t,r){const i=e[t],a=nf(i,r);if(!a||"while"===a)return!1;const n=e[t-1];if("for"===a){if("repeat"===nf(n,r))return!1;if("for"===i.value.toLowerCase()){const i=e[t+2];return!!i&&(tf(i,r.inForms)||"in"===i.normalized)}}return"if"!==a||!n||!tf(n,r.elseForms)}var sf=new Set(["me","it","you","the","body","window","document","its","event","result","target","self","this","them","parent","next","previous","closest","first","last"]),lf=new Set(["destination","source","style","patient","on","from","to"]);function pf(e){if(!e)return!1;if("selector"===e.kind)return!1;const t=(e.normalized??e.value).toLowerCase(),r=e.value.toLowerCase();return!sf.has(t)&&!sf.has(r)&&!lf.has(t)}var mf=e=>Object.prototype.hasOwnProperty.call(at,e);function cf(e){return e.flatMap(e=>"literal"===e.type?[e.value,...e.alternatives??[]].map(e=>e.toLowerCase()):"group"===e.type?cf(e.tokens):[])}var df=new Set(["toggle","trigger"]);function uf(e){return e.flatMap((t,r)=>{if("group"===t.type)return uf(t.tokens);if("literal"!==t.type)return[];const i=e[r+1];return[{words:[t.value,...t.alternatives??[]].map(e=>e.toLowerCase()),role:"role"===i?.type?i.role:void 0}]})}function yf(e,t,r,i){return e.some((a,n)=>{if(!a.words.includes(t)||!a.role||!i.has(a.role))return!1;let o=0;for(const t of r){const r=e.findIndex((e,r)=>r>=o&&n>r&&e.words.includes(t));if(0>r)return!1;o=r+1}return!0})}function vf(e,t,r,i,a){const n=e[r].value.toLowerCase();for(let o=r-1;o>t;o--){const t=e[o];if(a(t)||t.value.toLowerCase()===n)return!1;const s=(t.normalized??t.value).toLowerCase();if(!mf(s))continue;const l=Mt(i).filter(e=>e.command===s);if(df.has(s))return l.some(e=>cf(e.template.tokens).includes(n));const p=new Set((at[s]?.roles??[]).filter(e=>e.required).map(e=>e.role));return l.some(t=>{const i=uf(t.template.tokens),a=new Set(i.flatMap(e=>e.words)),s=e.slice(o+1,r).map(e=>e.value.toLowerCase()).filter(e=>a.has(e));return yf(i,n,s,p)})}return!1}var ff=new Set(["ja","ko"]);function hf(e){const t=new Set;e?.primary&&t.add(e.primary.toLowerCase());for(const r of e?.alternatives??[])t.add(r.toLowerCase());return t}function gf(e,t){const r=[];let i=t.position.end;const a=e.slice(t.position.end).match(/^\s*\(([^)]*)\)/);if(a){i=t.position.end+a[0].length;for(const e of a[1].split(/[,\u060c\u3001]/)){const t=e.trim();t&&r.push(t)}}return{parameters:r,headerEnd:i}}function kf(e,t,r){let i=t+1;if(i>=e.length)return-1;const a=hf(_t(r)?.roleMarkers?.patient);return a.size>0&&tf(e[i],a)&&i++,e.length>i?i:-1}var zf=/^[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*$/;function wf(e,t,r){if(!_t(t))return null;const i=ef(t,"behavior"),a=ef(t,"def"),n=e.toLowerCase(),o=[...i].some(e=>n.includes(e)),s=/\bdef\b/.test(n)||[...a].some(e=>"def"!==e&&n.includes(e));if(!o&&!s)return null;const l=Fv(e,t).tokens;if(2>l.length)return null;if(tf(l[0],i))return Tf(e,t,l,r,0);const p=l.findIndex((e,t)=>t>0&&tf(e,i));if(p>0&&Jv.test(l[0].value))return Tf(e,t,l,r,p);if(tf(l[0],a))return Sf(e,t,l,r,0);const m=l.findIndex((e,t)=>t>0&&tf(e,a));return m>0&&function(e,t,r){const i=_t(r);if("SOV"!==i?.wordOrder)return!1;if(!zf.test(e[0].value))return!1;if(t!==function(e){let t=1;if("("===e[1]?.value){let r=0,i=1;for(;e.length>i;i++)if("("===e[i].value)r++;else if(")"===e[i].value&&0===--r)break;if(i>=e.length)return-1;t=i+1}return t+1}(e))return!1;const a=hf(i.roleMarkers?.patient);return 0!==a.size&&tf(e[t-1],a)}(l,m,t)?Sf(e,t,l,r,m):null}function bf(e){return e.length>0?e.reduce((e,t)=>e+t,0)/e.length:0}function xf(e){const t=[];for(const r of e){const e=r.statements;"compound"===r.kind&&Array.isArray(e)?t.push(...e):t.push(r)}return t}function Tf(e,t,r,i,a){const n=a>0,o=n?0:kf(r,a,t);if(0>o)return null;const s=r[o],l=s.value;if(!Jv.test(l))return null;const{parameters:p,headerEnd:m}=gf(e,s);let c=n?a+1:r.findIndex(e=>e.position.start>=m);c>o||(c=o+1);const d=ef(t,"init"),u=ef(t,"end"),y=af(t),v=e=>of(r,e,y),f=e=>tf(e,u),h="SOV"!==_t(t)?.wordOrder,g=h?function(e){const t=new Set;for(const r of Mt(e))if("on"===r.command&&!/-event-/i.test(r.id))for(const e of r.template.tokens){if("role"===e.type&&"event"===e.role)break;if("literal"===e.type)for(const r of[e.value,...e.alternatives??[]])t.add(r.toLowerCase())}return t}(t):new Set,k=a=>{const n=e.slice(r[S].position.end,r[a].position.start).trim();if(n)try{const e=xf(i.body(n,t));w.push(...e),b.push(bf(e.map(e=>e.metadata?.confidence??.75)))}catch{b.push(0)}},z=[],w=[],b=[];let x=!1,T=0,S=c;for(let a=c;r.length>a;a++){const n=r[a];if(f(n)){if(T>0){T--;continue}if(a===S){x=!0;break}if(tf(r[S],d))k(a);else{const a=e.slice(r[S].position.start,n.position.start).trim();try{const e=i.statement(a,t);if(e&&"event-handler"===e.kind){const t=e;z.push(t);b.push(!t.body||0===t.body.length?.2:t.metadata?.confidence??.75)}else b.push(0)}catch{b.push(0)}}S=a+1}else v(a)?T++:h&&0===T&&a>S&&tf(r[S],d)&&g.has(n.value.toLowerCase())&&("identifier"===r[a+1]?.kind||"keyword"===r[a+1]?.kind)&&pf(r[a+1])&&(k(a),S=a)}if(0===z.length&&0===w.length)return null;const j=(x?1:.8)*bf(b);return function(e,t,r,i,a){const n={kind:"behavior",action:"behavior",roles:new Map,name:e,parameters:t,eventHandlers:r};return void 0!==i&&i.length>0&&(n.initBlock=i),void 0!==a&&(n.metadata=a),n}(l,p,z,w.length>0?w:void 0,{sourceLanguage:t,confidence:j,sourceText:e})}function Sf(e,t,r,i,a){const n=a>0,o=n?0:kf(r,a,t);if(0>o)return null;const s=r[o],l=s.value;if(!zf.test(l))return null;const{parameters:p,headerEnd:m}=gf(e,s);let c=n?a+1:r.findIndex(e=>e.position.start>=m);c>o||(c=o+1);const d=ef(t,"end"),u=af(t),y=e=>of(r,e,u),v=e=>tf(e,d);let f=0,h=-1;for(let e=c;r.length>e;e++)if(v(r[e])){if(0===f){h=e;break}f--}else y(e)&&f++;const g=e.slice(r[c]?.position.start??m,0>h?e.length:r[h].position.start).trim();if(!g)return null;let k;try{k=xf(i.body(g,t))}catch{return null}if(0===k.length)return null;let z=bf(k.map(e=>e.metadata?.confidence??.75));return 0>h&&(z*=.8),function(e,t,r,i){const a={kind:"def",action:"def",roles:new Map,name:e,parameters:t,body:r};return void 0!==i&&(a.metadata=i),a}(l,p,k,{sourceLanguage:t,confidence:z,sourceText:e})}var jf=["live","eventsource","socket","worker","intercept"],Ef=new Set(["intercept"]),Lf=new Set(["eventsource","socket","worker"]),Cf=new Set(["eventsource","socket"]),Pf=new Set(["worker"]);function _f(e){const t=ef(e,"on");t.add("when");const r=_t(e)?.eventHandler;if(r?.keyword){t.add(r.keyword.primary.toLowerCase());for(const e of r.keyword.alternatives??[])t.add(e.toLowerCase())}for(const e of r?.temporalMarkers??[])t.add(e.toLowerCase());return t}function Wf(e,t,r){const i=_t(r)?.eventHandler,a=[i?.eventMarker?.primary,...i?.eventMarker?.alternatives??[],...i?.temporalMarkers??[]].filter(e=>!!e&&/\s/.test(e));let n=1;for(const r of a){const i=r.toLowerCase().split(/\s+/),a=t-i.length+1;a<0||i.every((t,r)=>e[a+r]?.value.toLowerCase()===t)&&(n=Math.max(n,i.length))}return n}function Af(e,t,r,i,a){if("live"===e)return r+1;if(r>0){let a=r+1;return"eventsource"===e&&(a+=function(e,t,r){const i=hf(_t(r)?.roleMarkers?.source);return 0!==i.size&&e.length>t+1&&(tf(e[t],i)||tf(e[t+1],i))?2:0}(t,a,i)),a}const n=kf(t,r,i);if(0>n)return-1;if("worker"===e)return n+1;const o=_f(i),s=hf(_t(i)?.roleMarkers?.event),l=0>a?t.length:a;for(let e=n+1;l>e;e++){if(!tf(t[e],o))continue;if(pf(t[e+1]))return e;if(e>n+2&&s.size>0&&tf(t[e-1],s)&&pf(t[e-2]))return e-2;const r=Wf(t,e,i);if(r>1&&e-r>n&&pf(t[e-r]))return e-r;if(e>n+1&&pf(t[e-1]))return e-1}return l}function qf(e,t,r){if(!_t(t))return null;const i=e.toLowerCase();let a=!1;for(const e of[...jf,"changes"]){for(const r of ef(t,e))if(r&&i.includes(r)){a=!0;break}if(a)break}if(!a)return null;const n=Fv(e,t).tokens;if(2>n.length)return null;const o=function(e,t){if(3>e.length)return-1;if(!tf(e[0],function(e){const t=ef(e,"when");for(const r of _f(e))t.add(r);return t}(t)))return-1;const r=ef(t,"changes"),i=ef(t,"end");for(let t=2;e.length>t;t++){const a=e[t];if("literal"===a.kind)continue;if(tf(a,r))return t;if(tf(a,i))return-1;const n=(a.normalized??a.value).toLowerCase();if("keyword"===a.kind&&Mf.has(n))return-1}return-1}(n,t);if(o>=0)return function(e,t,r,i,a){const n=ef(t,"end"),o=af(t),s=e=>of(r,e,o),l=e=>tf(e,n),p=a+1;if(p>=r.length)return null;const m=Of(r,p,l,s),c=m>=0;if(c&&m!==r.length-1)return null;const d=c?r[m].position.start:e.length,u=e.slice(r[p].position.start,d).trim();if(!u)return null;let y;try{y=xf(i.body(u,t))}catch{return null}if(0===y.length)return null;const v=function(e,t,r){if("en"===r){return{type:"expression",raw:e.slice(t[0].position.start,t[t.length-1].position.end).trim()}}const i=t.map(e=>Xv(e,r)?{...e,kind:"keyword",normalized:"or"}:e);return{type:"expression",raw:nv(i,_t(r))}}(e,r.slice(1,a),t),f=(c?1:.8)*bf(y.map(e=>e.metadata?.confidence??.75));return Bu("when",y,void 0,{sourceLanguage:t,confidence:f,sourceText:e},new Map([["condition",v]]))}(e,t,n,r,o);const s=function(e,t){for(const r of jf)if(tf(e[0],ef(t,r)))return{action:r,keywordIdx:0};if("SOV"!==_t(t)?.wordOrder)return null;const r=Math.min(e.length,6);for(let i=1;r>i;i++)for(const r of jf)if("live"!==r&&tf(e[i],ef(t,r))&&(!Lf.has(r)||Jv.test(e[0].value))&&("intercept"!==r||2>=i))return{action:r,keywordIdx:i};return null}(n,t);return s?function(e,t,r,i,a,n){const o=ef(t,"end"),s=af(t),l=e=>of(r,e,s),p=e=>tf(e,o),m=function(e,t,r,i){if(!Lf.has(e))return;const a=r>0?0:kf(t,r,i);return 0>a?void 0:t[a].value}(a,r,n,t);if(Lf.has(a)&&(!m||!Jv.test(m)))return null;const c=r=>({sourceLanguage:t,confidence:r,sourceText:e}),d=Of(r,n+1,p,l);if(Ef.has(a))return 0>d||d===r.length-1?Bu(a,[],m,c(0>d?.8:1)):null;const u=Af(a,r,n,t,d);if(0>u||u>r.length)return null;const y=[],v=[];let f=!1;const h=Pf.has(a);if(h||Cf.has(a)){const a=h?"def":"event-handler";let n=0,o=u;for(let s=u;r.length>s;s++){const m=r[s];if(p(m)){if(n>0){n--;continue}if(f=!0,s===o)break;const l=e.slice(r[o].position.start,h?m.position.end:m.position.start).trim();try{const e=i.statement(l,t);if(e&&e.kind===a){const t=e;y.push(t);v.push(!t.body||0===t.body.length?.2:t.metadata?.confidence??.75)}else v.push(0)}catch{v.push(0)}o=s+1}else l(s)&&n++}}else{const a=Of(r,u,p,l);f=a>=0;const n=e.slice(r[u].position.start,0>a?e.length:r[a].position.start).trim();if(!n)return null;try{y.push(...xf(i.body(n,t)))}catch{return null}if(0===y.length)return null;v.push(...y.map(e=>e.metadata?.confidence??.75))}if(0===y.length&&!f)return null;const g=f?1:.8,k=v.length>0?g*bf(v):g,z=function(e,t,r,i,a,n){if("eventsource"!==e&&"socket"!==e||0!==i)return;const o=kf(r,i,n);if(0>o)return;let s=o+1,l=Math.min(a,r.length)-1;if("eventsource"===e){const e=hf(_t(n)?.roleMarkers?.source),t=t=>!!t&&(tf(t,e)||"source"===(t.normalized??"").toLowerCase());t(r[s])?s++:t(r[l])&&l--}if(s>l)return;const p=t.slice(r[s].position.start,r[l].position.end).trim();return p?{type:"expression",raw:p}:void 0}(a,e,r,n,u,t);return Bu(a,y,m,c(k),z?new Map([["source",z]]):void 0)}(e,t,n,r,s.action,s.keywordIdx):null}var Mf=new Set([...Object.keys(at),"then","else"]);function Of(e,t,r,i){let a=0;for(let n=t;e.length>n;n++)if(r(e[n])){if(0===a)return n;a--}else i(n)&&a++;return-1}Zm(),hi();var Rf=new Set(["the","to","on","with","into","from","at"]),Nf=/^[A-Za-z_$][\w$]*$/;function $f(e){let t="";for(let r=0;e.length>r;r++){const i=e[r],a=e[r-1];a&&i.position.start>a.position.end&&(t+=" "),t+=i.value}return t}function If(e,t){return t.position.start===e.position.end}var Kf={debounced:"debounce",debounce:"debounce",throttled:"throttle",throttle:"throttle"},Vf=[["\u043e\u0434\u0438\u043d","_","\u0440\u0430\u0437"],["\u043e\u0434\u0438\u043d_\u0440\u0430\u0437"],["\u043e\u0434\u043d\u0430\u0436\u0434\u044b"],["m\u1ed9t","l\u1ea7n"],["once"]],Bf=/^(\d+)(ms|s|m)?$/,Df=new Set(["selector","literal","url","event-modifier"]);function Ff(e){const t=e.match(Bf);if(!t)return null;let r=parseInt(t[1],10);const i=t[2]||"ms";return"s"===i?r*=1e3:"m"===i&&(r*=6e4),r}function Hf(e,t){try{const r=Fv(e,t),i=Mt(t);if(0===i.length)return{confidence:0,parseSuccess:!1,error:"No patterns available for language: "+t};const a=[...i].sort((e,t)=>t.priority-e.priority),n=a.filter(e=>"on"===e.command),o=Kv.matchBest(r,n);if(o)return{confidence:o.confidence,parseSuccess:!0,patternId:o.pattern.id,action:o.pattern.command,tokensConsumed:o.consumedTokens};r.reset(r.mark());const s=a.filter(e=>"on"!==e.command),l=Kv.matchBest(r,s);return l?{confidence:l.confidence,parseSuccess:!0,patternId:l.pattern.id,action:l.pattern.command,tokensConsumed:l.consumedTokens}:{confidence:0,parseSuccess:!1,error:"Could not match any patterns for: "+e}}catch(e){return{confidence:0,parseSuccess:!1,error:e instanceof Error?e.message:e+""}}}function Uf(e,t){try{const r=ug(e,t);if(r)return{node:r,confidence:r.metadata?.confidence??.8,error:void 0,tokensConsumed:Fv(e,t).tokens.length}}catch{}const r=Hf(e,t);return r.parseSuccess?{node:null,confidence:r.confidence,error:void 0,tokensConsumed:r.tokensConsumed}:{node:null,confidence:0,error:r.error}}Rt(),Rt(),wt(),Rt(),Rt(),Zm();var Gf=["values","expressions","logical","temporal","attributes"],Zf=/"[^"]*"|'[^']*'|`[^`]*`/g,Yf="\ue010",Xf=/\uE010(\d+)\uE011/g,Qf=/(^|[^\w$.#@*:-])([A-Za-z][A-Za-z-]+)(?![\w$.:-])/g,Jf=/(\bas\s+|\bis\s+(?:not\s+)?an?\s+)([A-Z][A-Za-z0-9_]*(?::[A-Za-z0-9_]+)?)\b/g,eh=new WeakMap;function th(e,t,r){if(!e)return e;const i=Wu(t);if(!i)return e;const{words:a}=function(e,t){const r=eh.get(e);if(r)return r;const i=new Map,a=(e,t)=>{if(!t)return;const r=e.toLowerCase();i.has(r)||t===e||i.set(r,t)};for(const t of Gf){const r=e[t];if(r)for(const[e,t]of Object.entries(r))a(e,t.primary)}for(const[e,r]of Object.entries(t?.references??{}))a(e,r);const n={words:i};return eh.set(e,n),n}(i,r);if(0===a.size)return e;const n=[];return function(e,t){let r=e;for(let e=0;8>e&&r.includes(Yf);e++)r=r.replace(Xf,(e,r)=>t[Number(r)]??"");return r}(function(e,t){let r="",i=0;for(;e.length>i;){const a=e.indexOf("{",i);if(-1===a){r+=e.slice(i);break}let n=0,o=-1;for(let t=a;e.length>t;t++)if("{"===e[t])n++;else if("}"===e[t]&&0===--n){o=t;break}if(-1===o){r+=e.slice(i);break}t.push(e.slice(a,o+1)),r+=e.slice(i,a)+`${Yf}${t.length-1}\ue011`,i=o+1}return r}(e.replace(Zf,e=>(n.push(e),`${Yf}${n.length-1}\ue011`)),n).replace(Jf,(e,t,r)=>(n.push(r),`${t}${Yf}${n.length-1}\ue011`)).replace(Qf,(e,t,r)=>{const i=a.get(r.toLowerCase());return i?`${t}${i}`:e}),n)}var rh=new Set(["repeat","for","while","tell"]),ih=new Set(["js"]);function ah(e,t){for(const[r,i]of e.roles)if(r!==t&&!i.implicit)return!0;return!1}function nh(e){return"literal"===e?.default?.type?(e.default.value+"").trim().toLowerCase():void 0!==e?.value?(e.value+"").trim().toLowerCase():void 0}var oh=new Set(Object.values(ry).flatMap(e=>Object.values(e))),sh=class{renderWith(e,t,r){const i=this.valueGuard;this.valueGuard=r;try{return this.render(e,t)}finally{this.valueGuard=i}}render(e,t){if("compound"===e.kind)return this.renderCompound(e,t);if("behavior"===e.kind)return this.renderBehavior(e,t);if("def"===e.kind)return this.renderDef(e,t);if("feature"===e.kind)return this.renderFeature(e,t);if("conditional"===e.kind)return this.renderConditional(e,t);if("loop"===e.kind)return this.renderLoop(e,t);if("js"===e.action&&"SOV"===_t(t)?.wordOrder){const r=e.roles.get("patient"),i=r&&"expression"===r.type?r.raw:"",a=this.keyword(t,"js"),n=this.keyword(t,"end");return i?`${a} ${i} ${n}`:`${a} ${n}`}const r=function(e,t){return Mt(e).filter(e=>e.command===t).sort((e,t)=>t.priority-e.priority)}(t,e.action);if(0===r.length)return this.renderExplicit(e);const i=this.findBestPattern(e,r);if(!i)return this.renderExplicit(e);const a=this.renderWithPattern(e,i);return ih.has(e.action)?`${a} ${this.keyword(t,"end")}`:a}renderCompound(e,t){if(e.statements.length>1&&e.statements.every(e=>"event-handler"===e.kind)){const r=this.keyword(t,"end"),i=[];for(const a of e.statements)i.push(this.render(a,t),r);return i.join("\n")}const r=e.statements.map(e=>this.render(e,t)),i=this.getChainWord(e.chainType,t);let a=r[0]??"";for(let t=1;r.length>t;t++){const n=e.statements[t-1],o=e.statements[t];a+=("command"===n.kind&&rh.has(n.action)||"command"===n.kind&&"bind"===n.action&&"command"===o.kind&&"bind"===o.action?" ":` ${i} `)+r[t]}return this.closeBlockHeaders(a,e.statements,t)}renderConditional(e,t){const r=e.roles.get("condition"),i=r?this.valueToNaturalString(r,t):"",a=[`${this.keyword(t,"if")} ${i}`.trim()],n=this.joinStatements(e.thenBranch,t);n&&a.push(n),e.elseBranch&&e.elseBranch.length>0&&a.push(this.keyword(t,"else"),this.joinStatements(e.elseBranch,t));return 1===e.elseBranch?.length&&"conditional"===e.elseBranch[0].kind||a.push(this.keyword(t,"end")),a.join(" ")}renderLoop(e,t){const r=Ku(e.action,Object.fromEntries(e.roles),e.metadata),i=[this.render(r,t)];e.indexVariable&&i.push("index "+e.indexVariable);const a=this.joinStatements(e.body,t);return a&&i.push(a),i.push(this.keyword(t,"end")),i.join(" ")}joinStatements(e,t){const r=e.map(e=>this.render(e,t)),i=this.keyword(t,"then");let a=r[0]??"";for(let t=1;r.length>t;t++){const n=e[t-1];a+=("command"===n.kind&&rh.has(n.action)?" ":` ${i} `)+r[t]}return this.closeBlockHeaders(a,e,t)}closeBlockHeaders(e,t,r){const i=t.filter(e=>"command"===e.kind&&rh.has(e.action)).length;if(0===i)return e;return`${e}${(" "+this.keyword(r,"end")).repeat(i)}`}keyword(e,t){return _t(e)?.keywords?.[t]?.primary??t}renderBlockHeader(e,t,r){return r.length>0?`${e} ${t}(${r.join(", ")})`:`${e} ${t}`}renderBehavior(e,t){const r=this.keyword(t,"end"),i=[this.renderBlockHeader(this.keyword(t,"behavior"),e.name,e.parameters)];if(e.initBlock&&e.initBlock.length>0){i.push(" "+this.keyword(t,"init"));for(const r of e.initBlock)i.push(" "+this.render(r,t));i.push(" "+r)}for(const a of e.eventHandlers)i.push(" "+this.render(a,t)," "+r);return i.push(r),i.join("\n")}renderDef(e,t){const r=[this.renderBlockHeader(this.keyword(t,"def"),e.name,e.parameters)];for(const i of e.body)r.push(" "+this.render(i,t));return r.push(this.keyword(t,"end")),r.join("\n")}renderFeature(e,t){const r=this.keyword(t,"end"),i=[this.featureHeader(e,t)];for(const a of e.body)i.push(" "+this.render(a,t)),"event-handler"===a.kind&&i.push(" "+r);return i.push(r),i.join("\n")}featureHeader(e,t){const r=this.keyword(t,e.action);if("when"===e.action){const i=e.roles.get("condition");return[r,i?this.valueToNaturalString(i,t):"",this.keyword(t,"changes")].filter(Boolean).join(" ")}const i=e.name?`${r} ${e.name}`:r,a=e.roles.get("source"),n="expression"===a?.type?a.raw:void 0;if(n&&"socket"===e.action)return`${i} ${n}`;if(n&&"eventsource"===e.action){const e=_t(t)?.roleMarkers?.source,r=e?.primary??"from";return"after"===e?.position?`${i} ${n} ${r}`:`${i} ${r} ${n}`}return i}getChainWord(e,t){const r=_t(t);if(!r?.keywords)return e;const i=r.keywords[e];return i?.primary??e}renderExplicit(e){return r(e)}supportedLanguages(){return Hv()}findBestPattern(e,t){let r=t;if("event-handler"===e.kind){const e=t.filter(e=>!/-event-/i.test(e.id));e.length>0&&(r=e)}const i=new Map;for(const e of r)for(const[t,r]of Object.entries(e.extraction??{})){const e=nh(r);if(void 0===e)continue;const a=i.get(t)??new Set;a.add(e),i.set(t,a)}const a=r.map(t=>{let r=t.priority;const a=t=>{const r=e.roles.get(t);return void 0!==r&&!(!0===r.implicit&&"reference"===r.type)},n=(e,t)=>{for(const i of e)"group"===i.type?n(i.tokens,!0):"role"===i.type&&(a(i.role)?r+=t?5:10:t||i.optional||(r-=50))};n(t.template.tokens,!1);const o=new Set,s=e=>{for(const t of e)"group"===t.type?s(t.tokens):"role"===t.type&&o.add(t.role)};s(t.template.tokens);for(const t of e.roles.keys())a(t)&&!o.has(t)&&(r-=30);for(const[a,n]of Object.entries(t.extraction??{})){const t=nh(n);if(void 0===t)continue;const o=e.roles.get(a),s="literal"===o?.type?(o.value+"").trim().toLowerCase():void 0;s===t?r+=60:(void 0===s||i.get(a)?.has(s))&&(r-=200)}return"en"===t.language&&((t.id.includes("standard")||t.id.includes("en-source"))&&(r+=20),(t.id.includes("-when")||t.id.includes("-if")||t.id.includes("-upon"))&&(r-=15)),{pattern:t,score:r}});return a.sort((e,t)=>t.score-e.score),a.length>0?a[0].pattern:null}spliceWaitAlternatives(e,t,r,i){const a=e.waitAlternatives;if(!a||0===a.length||0>r)return;const n=e=>e&&e.length>0?`(${e.join(", ")})`:"",[o,...s]=a;"event"in o&&(t[r]+=n(o.params));const l=[...Zv[i]??[]][0]??"or",p=s.map(e=>"event"in e?`${l} ${this.renderEventName({type:"literal",value:e.event},i)}${n(e.params)}`:`${l} ${e.duration}`);t.splice(r+1,0,...p);const m=e.waitSource;if(!m)return;const c=this.valueToNaturalString(m,i),d=_t(i)?.roleMarkers?.source,u=d?.primary??"from";t.splice(r+1+p.length,0,"after"===d?.position?`${c} ${u}`:`${u} ${c}`)}spliceOrEvents(e,t,r,i){const a=e.additionalEvents??[];if(0===a.length)return;const n=[...Zv[i]??[]][0]??"or",o=a.map(e=>`${n} ${this.renderEventName(e,i)}`);t.splice(0>r?t.length:r+1,0,...o)}spliceEventModifiers(e,t,r,i){const a=e.eventModifiers;if(!a)return;r>=0&&a.queue&&(t[r]+=`.queue(${a.queue})`),a.once&&a.onceAsFirst?"en"!==i||0>r?t.unshift("first"):t[r]="first "+t[r]:a.once&&("en"!==i||0>r?t.unshift("once"):t[r]+=".once");const n=[];if(a.from){const e=this.valueToNaturalString(a.from,i),r=_t(i)?.roleMarkers?.source,o=r?.primary??"from";"after"===r?.position?t.unshift(`${e} ${o}`):n.push(`${o} ${e}`)}const o=e=>e%1e3==0?e/1e3+"s":e+"ms";if("number"==typeof a.debounce&&n.push("debounced at "+o(a.debounce)),"number"==typeof a.throttle&&n.push("throttled at "+o(a.throttle)),0===n.length)return;const s=0>r||"after"===_t(i)?.roleMarkers?.source?.position?t.length:r+1;t.splice(s,0,...n)}renderWithPattern(e,t){const r=[],i=t.language;let a=-1;for(const n of t.template.tokens){const t=this.renderPatternToken(n,e,i);null!==t&&(r.push(t),"role"===n.type&&("event"===n.role||"duration"===n.role&&"wait"===e.action)&&(a=r.length-1))}"wait"===e.action&&"command"===e.kind&&this.spliceWaitAlternatives(e,r,a,i),"fetch"===e.action&&e.doNotThrow&&r.push("do not throw");const n=e.scrollBehavior;if(!n||"go"!==e.action&&"scroll"!==e.action||r.push(n),"event-handler"===e.kind){const t=e.parameterNames;t&&t.length>0&&a>=0&&(r[a]+=`(${t.join(", ")})`),this.spliceOrEvents(e,r,a,i),this.spliceEventModifiers(e,r,a,i)}if("event-handler"===e.kind){if(e.body&&e.body.length>0){const t=e.body.map(e=>this.render(e,i));r.push(t.join(" "))}}return r.join(" ")}renderPatternToken(e,t,r){switch(e.type){case"literal":return e.renderSuppress?null:e.value;case"role":{const i=t.roles.get(e.role);if(!i){if("duration"===e.role&&"wait"===t.action){const e=t.roles.get("event");if(e)return this.renderEventName(e,r)}return null}if("event"===e.role)return this.renderEventName(i,r);const a=t.scrollPosition;if(a&&"destination"===e.role&&("go"===t.action||"scroll"===t.action))return`${a} of ${this.valueToNaturalString(i,r)}`;if("en"===r&&"halt"===t.action&&"patient"===e.role&&"reference"===i.type&&"event"===i.value)return"the "+this.valueToNaturalString(i,r);if("render"===t.action&&"style"===e.role&&"expression"===i.type){const e=i.raw.trim();if(e.startsWith("{")&&e.endsWith("}"))return e.slice(1,-1).trim()}if("js"===t.action&&"expression"===i.type)return i.raw;if("keyword"===e.valueShape){if("reference"===i.type)return i.value;if("expression"===i.type)return i.raw;if("literal"===i.type&&"string"!==i.dataType)return i.value+""}if("fetch"===t.action&&"responseType"===e.role&&"expression"===i.type)return i.raw;if("pick"===t.action&&"patient"===e.role&&"expression"===i.type){const e=Iv.rangeSeparatorFor(r);if(e)return i.raw.replace(/(?<=\s)to(?=\s)/g,e)}return this.valueToNaturalString(i,r)}case"group":{if(!e.tokens.filter(e=>"role"===e.type&&!e.optional).every(e=>t.roles.has(e.role))&&e.optional)return null;if(e.optional)for(const r of["destination","source","patient"]){if(!e.tokens.find(e=>"role"===e.type&&e.role===r))continue;const i=t.roles.get(r);if("reference"===i?.type&&"me"===i.value&&i.implicit){if("destination"===r){const e=t.roles.get("patient");if("literal"===e?.type&&"string"===e.dataType)continue}if("patient"!==r||!ah(t,"patient"))return null}}if(e.optional){if(e.tokens.find(e=>"role"===e.type&&"quantity"===e.role)){const e=t.roles.get("quantity");if("literal"===e?.type&&(1===e.value||"1"===e.value))return null}}const i=[];let a=!1;for(const n of e.tokens){const e=this.renderPatternToken(n,t,r);null!==e&&(i.push(e),"role"===n.type&&(a=!0))}return(!e.optional||a||e.renderRequired)&&i.length>0?i.join(" "):null}default:return null}}renderEventName(e,t){if("literal"!==e.type||"string"!=typeof e.value)return this.valueToNaturalString(e,t);const r=e.value,i=e=>e.includes(":")?e:Hm(e,t);return r.includes(" or ")?r.split(" or ").map(e=>i(e.trim())).join(" or "):i(r)}valueToNaturalString(e,t="en"){switch(e.type){case"literal":return"string"==typeof e.value&&"string"===e.dataType?e.interpolates?e.value:`"${e.value}"`:this.localizeValue(e.value+"",t);case"selector":return e.scope?`${e.value} in ${this.valueToNaturalString(e.scope,t)}`:e.value;case"reference":return this.renderReference(e,t);case"property-path":return this.renderPropertyPath(e,t);case"expression":return this.localizeValue(this.localizeInteriorPossessives(this.valueGuard?.(e.raw)??e.raw,t),t);case"flag":return this.localizeValue(e.name,t)}}localizeValue(e,t){return"en"===t?e:th(e,t,_t(t))}renderReference(e,t){const r=_t(t);return r?.references?r.references[e.value]??e.value:e.value}renderDotBase(e,t,r){if("reference"!==e.type)return this.valueToNaturalString(e,t);const i=r?.possessive?.specialForms?.[e.value];return i&&!/\s/.test(i)?i:e.value}localizeInteriorPossessives(e,t){const r=(e,t)=>/^\s+as\b/.test(e.slice(t));if("en"===t)return e.replace(/\b(?:the\s+)?([A-Za-z][\w-]*)\s+of\s+([#.][\w-]+)/g,(e,t,i,a,n)=>oh.has(t.toLowerCase())&&!r(n,a+e.length)?`${i}'s ${t}`:e);if(!e.includes("'s"))return e;const i=(e,r)=>this.renderPropertyPath({type:"property-path",object:e,property:r,access:"possessive"},t);return e.replace(/([#.][\w-]+)((?:'s\s+[A-Za-z][\w-]*)+)/g,(e,t,a,n,o)=>{const[s,...l]=[...a.matchAll(/'s\s+([A-Za-z][\w-]*)/g)].map(e=>e[1]);let p=i(qu(t),s);if(!p)return e;const m=!p.startsWith(t);if(m)for(const e of l)p=i(qu(p),e);else p+=l.map(e=>"'s "+e).join("");return r(o,n+e.length)&&m?`(${p})`:p})}renderPropertyPath(e,t){const r=_t(t);if("dot"===e.access){const i=this.renderDotBase(e.object,t,r),a=e.property;return/^[.?]/.test(a)?`${i}${a}`:`${i}.${a}`}const i=this.localizeValue(e.property,t),a="reference"===e.object.type?e.object.value:null;if(r?.possessive&&a){const e=r.possessive.specialForms?.[a]??function(e,t){if(!e)return;for(const[r,i]of Object.entries(e))if(i===t)return r;return}(r.possessive.keywords,a);if(e)return`${e} ${i}`}const n=this.valueToNaturalString(e.object,t);if("expression"===e.object.type){if("en"===t||!r?.possessive)return`the ${i} of ${n}`;const{marker:e,markerPosition:a}=r.possessive;if(e&&"between"===a&&"th"!==t)return`${n} ${e} ${i}`;const o="th"===t?e:ny(r);return o?`${i} ${o} ${n}`:`the ${i} of ${n}`}if(r?.possessive){const{marker:o,markerPosition:s,usePossessiveAdjectives:l}=r.possessive;if(l&&a)return`${n} ${i}`;if(o&&"between"===s){if("th"===t)return`${i} ${o} ${n}`;return r.usesSpaces&&!(void 0!==r.tokenization)?`${n} ${o} ${i}`:r.usesSpaces?`${n}${o} ${i}`:`${n}${o}${i}`}const p="en"!==t&&"selector"===e.object.type?ny(r):void 0;if(p)return`${i} ${p} ${n}`;if(o)switch(s){case"after-object":return`${n}${o} ${i}`;case"before-property":return`${n} ${o} ${i}`}}return"en"!==t&&r?.possessive?`${n} ${i}`:"me"===n?"my "+i:"it"===n?"its "+i:`${n}'s ${i}`}};var lh=new sh;function ph(e,t){return lh.render(e,t)}function mh(e){return lh.renderExplicit(e)}xt();var ch=new Set(["a","an","the"]),dh=new Set(["me","my","you","your","it","its","result","event"]),uh=new Map;function yh(e,t){const r=Fv(e,t).tokens,i=r[0];if(1!==r.length||!i)return{collision:"structure",word:"words"};const a=i.normalized!==e?i.normalized:void 0;if("keyword"===i.kind&&yt.has(a??""))return{collision:"pronoun",word:"pronoun",sense:a};if("identifier"===i.kind&&!a){if(function(e){let t=uh.get(e);return t||(t=new Set(Object.values(at).flatMap(t=>t.roles.flatMap(t=>[t.markerOverride?.[e],...t.markerVariants?.[e]??[]].filter(e=>"string"==typeof e&&e.length>0)))),uh.set(e,t)),t}(t).has(e))return{collision:"structure",word:"marker"};const r=hy(t,e);return r!==e?{collision:"structure",word:"connective",sense:r}:ch.has(e.toLowerCase())?{collision:"structure",word:"article"}:null}return"particle"===i.kind?{collision:"structure",word:"marker"}:{collision:"structure",word:"keyword",sense:a}}function vh(e,t){const r=`${t}\0${e}`;let i=fh.get(r);return void 0===i&&(i=yh(e,t)?.collision??null,fh.set(r,i)),i}var fh=new Map;function hh(e){return e.replace(/(^|[^\p{L}\p{N}_$)\]])\(([\p{L}_$][\p{L}\p{M}\p{N}_$]*)\)/gu,"$1$2")}function gh(e,t,r){const i=Uf(e,t).node;return!!i&&hh(bh(i))===hh(bh(r))}function kh(e){if("a"===e||"an"===e)return!1;const t=Fv(e,"en").tokens;return 1===t.length&&"identifier"!==t[0]?.kind}function zh(e){const t=new Set,r=new Set,i=(e,r)=>{if(Array.isArray(e)){for(const t of e)i(t,r);return}if(!e||"object"!=typeof e)return;const a=e;"identifier"!==a.type||"property"===r||"targetType"===r||"string"!=typeof a.name||kh(a.name)||t.add(a.name);for(const[t,r]of Object.entries(e))r&&"object"==typeof r&&i(r,t)},a=e=>{if(!e||"object"!=typeof e||r.has(e))return;r.add(e);if("expression"===e.type&&"string"==typeof e.raw){const t=Gd(e.raw);t.success&&t.node&&i(t.node,void 0)}for(const t of e instanceof Map?e.values():Object.values(e))a(t)};return a(e),t}function wh(e){const t=[],r=new Set,i=e=>{if(!e||"object"!=typeof e||r.has(e))return;r.add(e);const a=e.diagnostics;if(Array.isArray(a))for(const e of a)"unconsumed-input"===e.code&&e.message&&t.push(e.message);for(const t of e instanceof Map?e.values():Object.values(e))i(t)};return i(e),t}function bh(e){return[ph(e,"en"),...wh(e)].join("\n")}function xh(e,t){const r=e.replace(/[$]/g,"\\$&");return RegExp(`(?<![\\p{L}\\p{N}_$])${r}(?![\\p{L}\\p{N}_$])`,t)}function Th(e,t,r){return r.find(r=>!function(e,t){return xh(t,"u").test(e)}(e,r)&&t.every(e=>null===yh(r,e)))}function Sh(e){return[e+"1",e+"2",e+"Value",e+"Var",`my${e[0].toUpperCase()}${e.slice(1)}`]}function jh(e,t,r,i,a){const n=Th(e,[t],[..."abcdefghijklmnopqrstuvwxyz"].map(e=>"zqv"+e));if(!n)return;const o=xh(n,"gu"),s=[];for(const l of r){const r=l.position?.start,p=l.position?.end;if(l.value!==a||void 0===r||void 0===p)continue;if("literal"===l.kind||"selector"===l.kind)continue;const m=Uf(Eh(e,[...s,{start:r,end:p}],n),t).node;m&&bh(m).replace(o,a)===i&&s.push({start:r,end:p})}return s}function Eh(e,t,r){let i=e;for(const{start:e,end:a}of[...t].sort((e,t)=>t.start-e.start))i=i.slice(0,e)+r+i.slice(a);return i}function Lh(e,t,r){const i={keyword:t.sense?`the word for \`${t.sense}\` in ${r}`:"a keyword in "+r,marker:"a role marker in "+r,connective:`the word for \`${t.sense}\` in ${r}`,article:"an English article, which the reader of every language skips",pronoun:dh.has(t.sense??"")?`the pronoun \`${t.sense}\` in ${r}`:`the word for \`${t.sense}\` in ${r}`,words:"more than one word in "+r}[t.word];return"pronoun"===t.collision?`Variable \`${e}\` is also ${i}: no reader can tell them apart.`:`Variable \`${e}\` is also ${i}: a reader tells them apart only by where it stands, or when it is written \`(${e})\`.`}function Ch(e,t,r){const i=dh.has(t.sense??"")?`the pronoun \`${t.sense}\``:`the word for \`${t.sense}\``,a=_t(r)?.name??r;return`Variable \`${e}\` is ${i} in ${a}: a translation into ${a} reads it as that word, and no spelling tells them apart. Rename it before translating.`}function Ph(e,t){if("en"===t)return[];const{node:r}=Uf(e,t);if(!r)return[];const i=bh(r),a=[];let n;for(const o of zh(r)){const r=yh(o,t);if(!r)continue;n??(n=Fv(e,t).tokens);const s=jh(e,t,n,i,o);if(!s)break;0!==s.length&&a.push({name:o,collision:r.collision,occurrences:s,rename:Th(e,[t],Sh(o)),message:Lh(o,r,t)})}return a}function _h(e,t,r){const{node:i}=Uf(e,t);if(!i)return[];const a=bh(i),n=[];let o;for(const s of zh(i)){const i=yh(s,r);if("pronoun"!==i?.collision)continue;o??(o=Fv(e,t).tokens);const l=jh(e,t,o,a,s);l?.length&&n.push({name:s,collision:"pronoun",occurrences:l,rename:Th(e,[t,r],Sh(s)),message:Ch(s,i,r)})}return n}function Wh(e,t){if("en"===t||!_t(t))return lh.render(e,t);let r=!1;const i=lh.renderWith(e,t,e=>{const i=function(e,t){const r=Gd(e);if(!r.success||!r.node)return e;const i=[],a=(r,n)=>{if(Array.isArray(r)){for(const e of r)a(e,n);return}if(!r||"object"!=typeof r)return;const o=r;"identifier"!==o.type||"property"===n||"targetType"===n||"string"!=typeof o.name||void 0===o.start||void 0===o.end||e.slice(o.start,o.end)!==o.name||kh(o.name)||"structure"!==vh(o.name,t)||i.push([o.start,o.end]);for(const[e,t]of Object.entries(r))t&&"object"==typeof t&&a(t,e)};a(r.node,void 0);let n=e;for(const[e,t]of i.sort((e,t)=>t[0]-e[0]))"("===n[e-1]&&")"===n[t]||(n=`${n.slice(0,e)}(${n.slice(e,t)})${n.slice(t)}`);return n}(e,t);return i!==e&&(r=!0),i});if(!r)return i;const a=lh.render(e,t);return gh(a,t,e)?a:gh(i,t,e)?i:a}zt=(e,t)=>"structure"===vh(e,t),wt();var Ah={getSchema:ct};function qh(e){return s(e,{schemaLookup:Ah})}var Mh=new Set(["if","unless","while","repeat","for"]),Oh=new Set(["repeat","for"]),Rh={kind:"loop-close"};function Nh(e){return e===Rh}function $h(e){if(Nh(e)||"command"!==e.kind||!Oh.has(e.action))return!1;const t=e.body;return!(Array.isArray(t)&&t.length>0)}function Ih(e,t){for(let r=t-1;r>=0;r--)if("particle"!==e[r].kind)return e[r]}function Kh(e){return("keyword"===e.kind||"identifier"===e.kind)&&"repeat"===(e.normalized??e.value).toLowerCase()}function Vh(e){let t=0;for(const r of e)$h(r)?t++:Nh(r)&&t>0&&t--;return t}var Bh=new Set(["then","end","else","if","unless","while","for","repeat","and"]),Dh=new Set(["first","last","next","previous","random","closest"]),Fh=new Set(["me","my","i","it","its","you","your","result"]),Hh=new Set(["top","middle","bottom","left","center","right","nearest"]),Uh=new Set(["smoothly","instantly"]);var Gh=["body","statements","thenBranch","elseBranch","eventHandlers","initBlock"];function Zh(e){const t=(e.normalized??e.value).toLowerCase();return"document"===t||"window"===t||"me"===t||"body"===t?Nu(t):"selector"===e.kind?qu(e.value):{type:"expression",raw:e.value}}var Yh=new Map;function Xh(e){let t=Yh.get(e);return t||(t=new Set(Mt(e).map(e=>e.command).filter(e=>"on"!==e)),Yh.set(e,t)),t}var Qh=new Set(["click","dblclick","input","change","submit","keydown","keyup","keypress","mouseover","mouseout","mousedown","mouseup","focus","blur","load","scroll","resize","contextmenu","transitionend","transitionstart","transitionrun","transitioncancel","animationend","animationstart","animationiteration","animationcancel","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointercancel","pointerover","pointerout","touchstart","touchend","touchmove","touchcancel","mousemove","mouseenter","mouseleave","wheel","dragstart","dragend","dragover","dragenter","dragleave","drop","drag","loadend","loadstart","error","abort","close","open","message","popstate","hashchange","storage","online","offline","visibilitychange"]),Jh=class extends Error{constructor(e,t,r,i){super(e),this.name="SemanticParseError",this.language=t,this.input=r,this.diagnostics=i}};function eg(e,t,r){return{message:e,severity:t,source:"semantic-parser",...r&&{code:r}}}function tg(e,t){return 0===t.length?e:{...e,diagnostics:t}}var rg=120;var ig=/^repeat-.*-(times|for-in|while-head|until-head|until-condition-head)$/,ag=new Set(["forever","times","for","while","until","until-event"]),ng=new Set(["to","from","into","onto","with","as","at","of","in","on","by","and","or","then","end","else","the","a","an","async"]);function og(e){const t=[],r=new Set((e.diagnostics??[]).map(e=>`${e.code}|${e.message}`)),i=a=>{if(!a||"object"!=typeof a)return;if(a!==e)for(const e of a.diagnostics??[]){if("unconsumed-input"!==e.code)continue;const i=`${e.code}|${e.message}`;r.has(i)||(r.add(i),t.push(e))}const n=a;for(const e of sg){const t=n[e];if(Array.isArray(t))for(const e of t)i(e)}};return i(e),0===t.length?e:tg(e,[...e.diagnostics??[],...t])}var sg=["body","statements","thenBranch","elseBranch","eventHandlers","initBlock"];function lg(e,t,r){if(!e||"object"!=typeof e)return e;if(e.action&&e.roles instanceof Map){const i=ct(e.action),a=i?.primaryRole;if(i&&a&&"patient"!==a&&!i.roles.some(e=>"patient"===e.role)&&e.roles.has("patient")&&!e.roles.has(a)){const t=e.roles,r=t.get("patient");void 0!==r&&(t.delete("patient"),t.set(a,r))}if("tell"===e.action){const t=e.roles,r=t.get("patient"),i=t.get("destination");!r||"selector"!==r.type&&"reference"!==r.type||i&&"literal"!==i.type||(t.delete("patient"),t.set("destination",r))}if("transition"===e.action){const t=e.roles,r=t.get("goal");r&&"literal"===r.type&&"duration"===r.dataType&&!t.has("duration")&&(t.delete("goal"),t.set("duration",r))}if("fetch"===e.action){const t=e.roles,r=t.get("patient"),i=t.get("source");!r||!i||"literal"!==r.type&&"expression"!==r.type||"expression"!==i.type||t.has("style")||(t.delete("patient"),t.set("style",i),t.set("source",r))}if("transition"===e.action){const t=e.roles,r=t.get("destination");r&&"literal"===r.type&&!t.has("goal")&&(t.delete("destination"),t.set("goal",r));const i=t.get("patient");i&&"literal"===i.type&&"string"==typeof i.value&&/^[A-Za-z_][A-Za-z0-9_-]*$/.test(i.value)&&t.set("patient",{type:"expression",raw:i.value})}if("morph"===e.action){const t=e.roles,r=t.get("patient");r&&"literal"===r.type&&"string"==typeof r.value&&/<[a-zA-Z][^>]*\/?>/.test(r.value)&&t.set("patient",{type:"expression",raw:r.value})}if("wait"===e.action){const t=e.roles;if(!t.has("event")){const e=t.get("duration"),i="expression"===e?.type?e.raw:"literal"===e?.type?e.value:void 0,a="string"==typeof i&&r?Bm(i,r):"";"string"==typeof i&&Qh.has(i.toLowerCase())?(t.delete("duration"),t.set("event",{type:"literal",value:i,dataType:"string"})):Qh.has(a)&&(t.delete("duration"),t.set("event",{type:"literal",value:a,dataType:"string"}))}}if("command"===e.kind&&"on"!==e.action){const t=e.roles,r=t.get("event");if(r&&"expression"===r.type){const e=r.raw;"string"==typeof e&&/^[A-Za-z_][A-Za-z0-9_-]*(:[A-Za-z0-9_-]+)?$/.test(e)&&t.set("event",{type:"literal",value:e,dataType:"string"})}}if(t?.size){const r=e.roles;for(const e of["destination","source"]){const i=r.get(e);i&&"literal"===i.type&&"string"==typeof i.value&&t.has(i.value)&&r.set(e,{type:"expression",raw:i.value})}}}const i=e;for(const e of sg){const a=i[e];if(Array.isArray(a))for(const e of a)lg(e,t,r)}return e}function pg(e){if(!e||"object"!=typeof e)return e;if(e.action&&e.roles instanceof Map){const t=ct(e.action);if(t){const r=e.roles;for(const e of t.roles)void 0===e.default||r.has(e.role)||r.set(e.role,{...e.default,implicit:!0})}}const t=e;for(const e of sg){const r=t[e];if(Array.isArray(r))for(const e of r)pg(e)}return e}var mg=class e{constructor(){this.parseDepth=0,this.coverageFrames=[],this.boundIdentifiers=new Set}parse(e,t){0===this.parseDepth&&this.boundIdentifiers.clear(),this.parseDepth++,this.coverageFrames.push([]);try{let r=lg(this.parseInternal(e,t),this.boundIdentifiers,t);const i=this.coverageFrames[this.coverageFrames.length-1];if(i.length>0&&(r=tg(r,[...r.diagnostics??[],...i])),1===this.parseDepth&&(r=og(r),"event-handler"===r.kind)){let i={node:r,input:e};const a=i.node.eventModifiers;if(a&&(a.once||void 0!==a.debounce||void 0!==a.throttle))for(let e=0;4>e;e++){const e=this.reclaimDanglingFromTail(i.node,i.input,t)??this.reclaimEventCompoundTail(i.node,i.input,t)??this.reclaimResponseTypeTail(i.node,i.input,t)??this.reclaimCapturedDestinationTail(i.node,i.input,t);if(!e)break;i=e}const n=this.reclaimEventCompoundTail(i.node,i.input,t);n&&(i=n),r=i.node}return r}finally{this.coverageFrames.pop(),this.parseDepth--}}coverageMark(){const e=this.coverageFrames[this.coverageFrames.length-1];return e?e.length:0}coverageRollback(e){const t=this.coverageFrames[this.coverageFrames.length-1];t&&t.length>e&&(t.length=e)}static getCoverageMarkerSurfaces(t){let r=e.coverageMarkerSurfaces.get(t);if(!r){r=new Set;const i=_t(t)?.roleMarkers;if(i)for(const e of Object.values(i))if(e){if(e.primary)for(const t of e.primary.toLowerCase().split(/\s+/))r.add(t);for(const t of e.alternatives??[])for(const e of t.toLowerCase().split(/\s+/))r.add(e)}for(const i of e.LEAKED_RENDER_MARKERS[t]??[])r.add(i.toLowerCase());e.coverageMarkerSurfaces.set(t,r)}return r}isCoverageResidueToken(t,r){if("particle"===t.kind||"conjunction"===t.kind)return!0;if(t.metadata?.closesTrackedBlock)return!0;if(this.isThenKeyword(t.value,r)||this.isEndKeyword(t.value,r)||this.isElseKeyword(t.value,r))return!0;const i=(t.normalized??t.value).toLowerCase();return!!ng.has(i)||e.getCoverageMarkerSurfaces(r).has(t.value.toLowerCase())}recordDroppedTokens(e,t,r){if(0===e.length)return;const i=this.coverageFrames[this.coverageFrames.length-1];if(!i)return;if(!e.some(e=>!this.isCoverageResidueToken(e,t)))return;const a=e.map(e=>e.value).join(" ").trim();if(!a)return;const n=a.length>rg?a.slice(0,rg)+"\u2026":a;i.push(eg(`${r} left ${e.length} token(s) unconsumed: "${n}"`,"warning","unconsumed-input"))}registerBoundIdentifiers(e){const t="repeat"===e.action||"for"===e.action?"patient":"set"===e.action?"destination":null;if(!t)return;const r=e.roles.get(t);"expression"===r?.type&&"string"==typeof r.raw&&/^[A-Za-z_]\w*$/.test(r.raw)&&this.boundIdentifiers.add(r.raw)}parseInternal(t,r){const i=wf(t,r,{statement:(e,t)=>this.parse(e,t),body:(e,t)=>this.parseStatements(e,t)});if(i)return i;const a=qf(t,r,{statement:(e,t)=>this.parse(e,t),body:(e,t)=>this.parseStatements(e,t)});if(a)return a;const n=function(e,t,r){const i=_t(t);if(!i)return null;const a="SOV"!==i.wordOrder,n=ff.has(t)?hf(i.roleMarkers?.event):new Set,o=ff.has(t)?hf(i.keywords?.on):new Set,s=n.size>0&&o.size>0,l=s?hf(i.roleMarkers?.source):new Set,p=ef(t,"end"),m=ef(t,"on"),c=ef(t,"then"),d=e.toLowerCase(),u=[...p].some(e=>d.includes(e)),y=(a||s)&&(()=>{let e=0;for(const t of m)if(t)for(let r=d.indexOf(t);r>=0;r=d.indexOf(t,r+t.length))if(++e>=2)return!0;return!1})();if(!u&&!y)return null;const v=Fv(e,t).tokens;if(2>v.length)return null;const f=af(t),h=e=>of(v,e,f),g=e=>tf(e,p),k=[];let z=0,w=0;for(let r=0;v.length>r;r++){const i=v[r];if(g(i)){if(z>0){z--;continue}const t=e.slice(v[w].position.start,i.position.start).trim();t&&k.push(t),w=r+1}else if(h(r))z++;else if(!(a&&0===z&&r>w&&tf(i,m)&&pf(v[r+1]))||v[r+2]&&tf(v[r+2],c)||vf(v,w,r,t,e=>g(e)||tf(e,c))){if(s&&0===z&&r-1>w&&tf(i,n)&&void 0!==v[r+1]&&tf(v[r+1],o)){const t=v[r-1],i=v.slice(w,r-1);if(2!==i.length||!tf(i[1],l)){const i=e.slice(v[w].position.start,t.position.start).trim();i&&k.push(i),w=r-1}}}else{const t=e.slice(v[w].position.start,i.position.start).trim();t&&k.push(t),w=r}}if(v.length>w){const t=e.slice(v[w].position.start).trim();t&&k.push(t)}if(2>k.length)return null;const b=[],x=[];for(const e of k){let i;try{i=r.statement(e,t)}catch{return null}if(!i||"event-handler"!==i.kind)return null;const a=i;if(b.push(a),!a.body||0===a.body.length)return null;x.push(a.metadata?.confidence??.75)}return Du(b,"then",{sourceLanguage:t,confidence:bf(x),sourceText:e})}(t,r,{statement:(e,t)=>this.parse(e,t),body:(e,t)=>this.parseStatements(e,t)});if(n)return n;const{modifiers:o,remainingInput:s}=this.extractStandaloneModifiers(t,r),l=s||t,p=this.stripAsyncModifier(l,r).remainingInput??l,m=this.stripDoNotThrowModifier(p,r).remainingInput??p,c=[],d=Fv(m,r);this.positionSource=m;{const e=d.mark(),t=this.consumeJsBlock(d,r);if(t&&d.isAtEnd())return tg(t,c);d.reset(e)}const u=Mt(r);if(0===u.length)throw new Jh("No patterns available for language: "+r,r,m,[eg(`No patterns registered for language '${r}'`,"error","no-patterns")]);const y=[...u].sort((e,t)=>t.priority-e.priority);{const e=d.tokens;if("VSO"===_t(r)?.wordOrder&&e.length>=4&&"source"===e[0]?.normalized){const t=e.findIndex(e=>"on"===e.normalized);if(t>=2&&e.length>t+1){const i=m.slice(e[0].position.start,e[t].position.start).trim(),a=e[t+1].position.end,n=m.slice(e[t].position.start,a)+" "+i+m.slice(a);if(n!==m)try{const e=this.parse(n,r);if(e&&"event-handler"===e.kind){return tg(o?this.applyModifiers(e,o):e,c)}}catch{}}}}{const t=d.tokens,i="if"===t[0]?.normalized;for(let a=0;i&&t.length>a+3;a++){const i=(t[a+3]?.normalized??t[a+3]?.value??"").toLowerCase();if("source"===t[a]?.normalized&&"on"===t[a+2]?.normalized&&e.KNOWN_EVENTS.has(i)){const e=(m.slice(0,t[a].position.start).trimEnd()+" "+m.slice(t[a+1].position.end).trimStart()).trim();if(e&&e!==m)try{const t=this.parse(e,r);if(t&&"event-handler"===t.kind){return tg(o?this.applyModifiers(t,o):t,c)}}catch{}break}}}{const e=this.tryDoNotThrow(d.tokens,m,r);if(e){return tg(o&&"event-handler"===e.kind?this.applyModifiers(e,o):e,c)}}{const e=this.tryTellTo(d.tokens,m,r);if(e){return tg(o&&"event-handler"===e.kind?this.applyModifiers(e,o):e,c)}}{const e=this.tryScrollModifiers(d.tokens,m,r);if(e){return tg(o&&"event-handler"===e.kind?this.applyModifiers(e,o):e,c)}}{const e=this.tryLoopIndex(d.tokens,m,r);if(e){return tg(o&&"event-handler"===e.kind?this.applyModifiers(e,o):e,c)}}{const e=this.tryWaitAlternatives(d.tokens,m,r);if(e){return tg(o&&"event-handler"===e.kind?this.applyModifiers(e,o):e,c)}}{const t=d.tokens,i=Xh(r);for(let a=0;t.length>a+1;a++){const n=t[a];if(this.isBodyCommandWord(n,i))break;if("("!==t[a+1].value)continue;const s=(n.normalized??n.value).toLowerCase();if(!(e.KNOWN_EVENTS.has(s)||Qh.has(s))&&"identifier"!==n.kind)continue;const l=this.matchEventParamPhrase(t,a+1);if(0===l.len)continue;const p=t[a+l.len],d=(m.slice(0,t[a+1].position.start).trimEnd()+" "+m.slice(p.position.end).trimStart()).trim();try{let e=this.parse(d,r);if("event-handler"===e?.kind){const t=this.reclaimEventCompoundTail(og(e),d,r);t&&(e=t.node)}const i=e?.roles.get("event"),p="expression"===i?.type?i.raw:i&&"value"in i?i.value+"":void 0,u=p?.toLowerCase(),y=m.slice(0,t[a+1].position.start).trimEnd().toLowerCase(),v=u===n.value.toLowerCase()||u===s||void 0!==u&&Dm(u,r).some(e=>y.endsWith(e.toLowerCase()));if("event-handler"===e?.kind&&v){e.parameterNames=l.names;return tg(o?this.applyModifiers(e,o):e,c)}}catch{}}}{const t=d.tokens,i=Xh(r);for(let a=1;t.length-1>a;a++){const n=t[a];if(this.isBodyCommandWord(n,i))break;if(!Xv(n,r))continue;const s=t[a+1],l=(s.normalized??s.value).toLowerCase();if(!e.KNOWN_EVENTS.has(l))break;let p=a+1;const d=t[a+2];d&&"selector"===d.kind&&d.value.startsWith("[")&&(p=a+2);const u=t[p].position.end,y=(m.slice(0,t[a].position.start).trimEnd()+" "+m.slice(u).trimStart()).trim();if(y&&y!==m)try{const e=this.parse(y,r);if(e&&"event-handler"===e.kind){e.additionalEvents=[{type:"literal",value:p>a+1?l+d.value:l}];return tg(o?this.applyModifiers(e,o):e,c)}}catch{}break}}{const e=function(e){for(let t=1;e.length>t;t++){const r=e[t];if(Df.has(r.kind))continue;const i=r.value.toLowerCase(),a=Kf[i];if(a){let i=0;for(let n=t+1;e.length>n;n++){const t=e[n],o=Ff(t.value);if(null!==o)return{modifiers:{[a]:o},start:r.position.start,end:t.position.end};if("selector"===t.kind||"literal"===t.kind||"url"===t.kind)break;if(++i>2)break}continue}for(const a of Vf){if(a[0]!==i)continue;if(t+a.length>e.length)continue;let n=!0;for(let r=1;a.length>r;r++)if(e[t+r].value.toLowerCase()!==a[r]){n=!1;break}if(n)return{modifiers:{once:!0},start:r.position.start,end:e[t+a.length-1].position.end}}}return null}(d.tokens);if(e){const t=(m.slice(0,e.start).trimEnd()+" "+m.slice(e.end).trimStart()).trim();if(t&&t!==m)try{const i=this.parse(t,r);if(i&&"event-handler"===i.kind){return tg(this.applyModifiers(i,{...o??{},...e.modifiers}),c)}}catch{}}}const v=y.filter(e=>"on"===e.command),f=d.mark(),h=Kv.matchBest(d,v);if(h){c.push(eg(`event pattern matched: ${h.pattern.id} (confidence: ${h.confidence.toFixed(2)})`,"info","pattern-match"));let t=!1;if(/^event-[a-z]+-bare$/.test(h.pattern.id)){const i=h.captured.get("event"),a=(""+(i?.raw??i?.value??"")).toLowerCase(),n=$m[r],s=e.KNOWN_EVENTS.has(a)||!!n&&Object.keys(n).some(e=>e.toLowerCase()===a);if(a&&!s){const e=this.trySOVEventExtraction(m,r,y);if(e){c.push(eg(`bare-event mis-anchor on "${a}" rejected; SOV extraction preferred`,"info","stage-bare-event-guard"));return tg(o?this.applyModifiers(e,o):e,c)}if("reference"===i?.type||"expression"===i?.type){d.reset(f);const e=y.filter(e=>"on"!==e.command),r=Kv.matchBest(d,e);d.reset(f),r&&"on"!==r.pattern.command?(t=!0,c.push(eg(`bare-event mis-anchor on reference "${a}" rejected; command ${r.pattern.command} preferred`,"info","stage-bare-event-guard"))):Kv.matchBest(d,v)}}}if(!t){const e=this.buildEventHandler(h,d,r);return tg(o?this.applyModifiers(e,o):e,c)}}c.push(eg(`event patterns: ${v.length} tried, no match`,"info","stage-event"));const g=this.tryTrailingEventExtraction(m,r,y);if(g){c.push(eg("trailing event extraction succeeded","info","stage-trailing-event"));return tg(o?this.applyModifiers(g,o):g,c)}const k=y.filter(e=>"on"!==e.command),z=this.tryParseUnlessGuard(d,k,r);if(z&&z.length>0){return tg(1===z.length?z[0]:Du(z,"then",{sourceLanguage:r,confidence:1}),c)}const w=Kv.matchBest(d,k);if(w){if(Mh.has(w.pattern.command)){const e=this.trySOVEventExtraction(m,r,y);if(e){c.push(eg(`SOV event extraction preferred over bare ${w.pattern.command} command`,"info","stage-sov-loop"));return tg(o?this.applyModifiers(e,o):e,c)}const t=this.tryMidStreamEventExtraction(m,r,y);if(t){c.push(eg(`mid-stream event extraction preferred over bare ${w.pattern.command} command`,"info","stage-midstream-loop"));return tg(o?this.applyModifiers(t,o):t,c)}}else if(e.KNOWN_EVENTS.has(w.pattern.command)&&this.hasSOVEventMarkerHead(m,r)){const e=this.trySOVEventExtraction(m,r,y);if(e){c.push(eg("SOV event extraction preferred over command-homonym event "+w.pattern.command,"info","stage-sov-homonym"));return tg(o?this.applyModifiers(e,o):e,c)}}else if("VSO"===_t(r)?.wordOrder){const e=this.tryMidStreamEventExtraction(m,r,y);if(e){c.push(eg(`mid-stream event extraction preferred over bare ${w.pattern.command} command`,"info","stage-midstream-cmd"));return tg(o?this.applyModifiers(e,o):e,c)}}if(d.tokens.length>w.consumedTokens&&"SOV"===_t(r)?.wordOrder){const e=this.trySOVEventExtraction(m,r,y);if(e){c.push(eg(`SOV event extraction preferred over partial ${w.pattern.command} command (trailing remainder)`,"info","stage-sov-trailing"));return tg(o?this.applyModifiers(e,o):e,c)}}if(d.tokens.length>w.consumedTokens&&Oh.has(w.pattern.command)){const e=this.tryTopLevelLoop(d,k,r);if(e)return c.push(eg("top-level loop: "+e.kind,"info","stage-top-level-loop")),tg(e,c)}if(d.tokens.length>w.consumedTokens&&!Mh.has(w.pattern.command)){const e=this.tryTopLevelCommandSequence(d,k,r);if(e)return c.push(eg(`top-level command sequence: ${e.statements.length} commands`,"info","stage-top-level-sequence")),tg(e,c)}if(d.tokens.length>w.consumedTokens&&("if"===w.pattern.command||"unless"===w.pattern.command)){const e=this.tryCompoundCommandParsing(d,k,r);if(e)return c.push(eg("conditional with a trailing body","info","stage-compound")),tg(e,c)}c.push(eg(`command pattern matched: ${w.pattern.id} (confidence: ${w.confidence.toFixed(2)})`,"info","pattern-match"));const t=function(e,t,r){const i=t.tokens.length;if(e.consumedTokens>=i)return null;const a=t.tokens[e.consumedTokens],n=t.tokens[i-1];if(!a||!n)return null;const o=r.slice(a.position.start,n.position.end);if(!o.trim())return null;const s=o.length>rg?o.slice(0,rg)+"\u2026":o;return`pattern ${e.pattern.id} left ${i-e.consumedTokens} token(s) unconsumed: "${s}"`}(w,d,m);return t&&c.push(eg(t,"warning","unconsumed-input")),tg(this.buildCommand(w,r),c)}if(c.push(eg(`command patterns: ${k.length} tried, no match`,"info","stage-command")),!m.includes("\n")&&"VSO"===_t(r)?.wordOrder){const e=this.tryMidStreamEventExtraction(m,r,y);if(e){c.push(eg("mid-stream event extraction succeeded with no leading command match","info","stage-midstream-nocmd"));return tg(o?this.applyModifiers(e,o):e,c)}}const b=this.trySOVEventExtraction(m,r,y);if(b){c.push(eg("SOV event extraction succeeded","info","stage-sov"));return tg(o?this.applyModifiers(b,o):b,c)}c.push(eg("SOV event extraction: no event keyword found","info","stage-sov"));const x=this.tryCompoundCommandParsing(d,k,r);if(x)return c.push(eg("compound command parsing succeeded","info","stage-compound")),tg(x,c);if(c.push(eg("compound parsing: no then-keywords or no command matches","info","stage-compound")),"en"===r){const e=Fv(m,r),t=this.tryParsePseudoCommand(e,k,r);if(t&&e.isAtEnd())return c.push(eg("pseudo-command parsed as call","info","stage-pseudo")),tg(t,c)}throw c.push(eg(`all parse stages exhausted for "${m}"`,"error","parse-failed")),new Jh(`Could not parse input in ${r}: ${m}`,r,m,c)}tryParsePseudoCommand(e,t,r){if("en"!==r)return null;const i=function(e,t,r,i){const a=e[t];if(!a||"identifier"!==a.kind&&"keyword"!==a.kind)return null;if(!Nf.test(a.value)||i(a))return null;let n=t+1,o=a.value;for(;"selector"===e[n]?.kind&&/^\.[A-Za-z_$][\w$]*$/.test(e[n].value)&&If(e[n-1],e[n]);)o+=e[n].value,n++;const s=n>t+1,l=e[n];if(!l||"("!==l.value||!If(e[n-1],l))return null;const p=function(e,t){let r=0;for(let i=t;e.length>i&&64>=i-t;i++){const t=e[i].value;if("("===t)r++;else if(")"===t&&(r--,0===r))return i+1}return-1}(e,n);if(0>p)return null;const m=o+$f(e.slice(n,p));if(s)return{text:"call "+m,consumed:p-t};let c=p;const d=e[c],u=d?.value.toLowerCase();let y=null;if("me"===u)y="me",c++;else if(void 0!==u&&Rf.has(u)){c++,"the"===e[c]?.value.toLowerCase()&&c++;const t=e[c];if(!t)return null;const i=fy(e,c,r);if(i)y=`(${$f(e.slice(c,c+i.consumed))})`,c+=i.consumed;else if("selector"===t.kind&&t.value.startsWith("#")&&!/[.[:\s]/.test(t.value.slice(1)))y=t.value,c++;else if("selector"===t.kind&&/^[.<]/.test(t.value))y=`(${t.value})`,c++;else{if("keyword"!==t.kind&&"identifier"!==t.kind||!Nf.test(t.value)||!Ru(t.value.toLowerCase())&&"identifier"!==t.kind)return null;y=t.value,c++}}return{text:y?`call ${y}.${m}`:"call "+m,consumed:c-t}}(e.tokens,e.position(),_t(r),e=>!!ct((e.normalized??e.value).toLowerCase()));if(!i)return null;const a=Fv(i.text,r),n=Kv.matchBest(a,t.filter(e=>"call"===e.command));if(!n||!a.isAtEnd())return null;for(let t=0;i.consumed>t;t++)e.advance();return this.buildCommand(n,r)}parseStatements(e,t){const r=Fv(e,t),i=Mt(t).filter(e=>"on"!==e.command).sort((e,t)=>t.priority-e.priority);this.coverageFrames.push([]);try{const e=this.parseBodyWithClauses(r,i,t),a=this.coverageFrames[this.coverageFrames.length-1];if(a.length>0&&e.length>0){const t=e[e.length-1];e[e.length-1]=tg(t,[...t.diagnostics??[],...a])}return e}finally{this.coverageFrames.pop()}}canParse(e,t){try{return this.parse(e,t),!0}catch{return!1}}supportedLanguages(){return Hv()}buildCommand(e,t){if(!e)throw Error("No match to build command from");const r={};for(const[t,i]of e.captured)r[t]=i;const i=Ku(e.pattern.command,r,{sourceLanguage:t,patternId:e.pattern.id,confidence:e.confidence});return this.registerBoundIdentifiers(i),i}buildEventHandler(r,i,a){if(!r)throw Error("No match to build event handler from");let n=r.captured.get("event");if(!n)throw Error("Event handler pattern matched but no event captured");{const t="expression"===n.type?n.raw:"literal"===n.type?n.value:void 0;if("string"==typeof t&&/^[^\s()[\]{}:]+$/.test(t)){const r=$m[a]?.[t];r?n={type:"literal",value:r,dataType:"string"}:"expression"===n.type&&e.KNOWN_EVENTS.has(t.toLowerCase())&&(n={type:"literal",value:t.toLowerCase(),dataType:"string"})}}let o=Kv.extractEventModifiers(i);const s=e=>!("reference"===e.type&&"me"===e.value)&&!0!==e.implicit,l=r.captured.get("source"),p="on"===r.pattern.command&&/^(on|event)-/.test(r.pattern.id);let m,c=!1;if(l&&(r.pattern.id.endsWith("source")||p)&&s(l)&&(o={...o??{},from:l},c=!0),r.eventSource&&!c){const e=r.captured.get("action"),t="literal"===e?.type?ct(e.value+""):void 0;"after"===_t(a)?.roleMarkers?.source?.position&&t?.roles.some(e=>"source"===e.role)&&!r.captured.has("source")?m=r.eventSource:s(r.eventSource)&&(o={...o??{},from:r.eventSource})}const d=r.captured.get("event")?.position,u=i.tokens[i.position()-1],y=void 0!==d&&void 0!==u&&u.position.end>d.end?[]:this.extractOrConjunctionEvents(i,a);let v,f=n;if(y.length>0&&"literal"===n.type){f={type:"literal",value:[n.value+"",...y.map(e=>("value"in e?e.value:"")+"")].join(" or ")}}const h=r.captured.get("action");if(h&&"literal"===h.type&&"if"===h.value){const e=i.tokens;let n=-1;for(let t=i.position()-1;t>=0;t--){const r=e[t],i=(r.normalized??r.value).toLowerCase();if(this.isIfKeyword(i,a)){n=t;break}}for(;n>0;){const t=e[n-1];if(!this.isIfKeyword((t.normalized??t.value).toLowerCase(),a))break;n--}if(n>=0){const s=Mt(a).filter(e=>"on"!==e.command).sort((e,t)=>t.priority-e.priority);let l=e.slice(n);if(r.pattern.id.endsWith("vso-verb-first")&&"literal"===f.type){const e=((f.value??"")+"").split("[")[0].trim().toLowerCase(),t=l.findIndex((t,r)=>{if(0===r||""===e)return!1;const i=(t.normalized??t.value).toLowerCase(),a=l[r-1];return i===e&&"keyword"===a.kind&&"on"===(a.normalized??"").toLowerCase()});if(t>0){const e=l[t+1],r=e&&"selector"===e.kind&&e.value.startsWith("[")?1:0;l=[...l.slice(0,t-1),...l.slice(t+1+r)]}}const p=new t(l,a),m=this.coverageMark(),c=this.parseBodyWithClauses(p,s,a);if(c.some(e=>"conditional"===e.kind)||1===c.length&&"compound"===c[0]?.kind&&c[0].statements.some(e=>"conditional"===e.kind)){for(;!i.isAtEnd();)i.advance();return Vu(f,c,o,{sourceLanguage:a,patternId:r.pattern.id,confidence:r.confidence})}this.coverageRollback(m)}}if(h&&"literal"===h.type&&h.value+""!="js"&&void 0!==ct(h.value+"")){const t=h.value,o={};for(const[e,t]of r.captured)if("event"!==e&&"action"!==e&&"continues"!==e){if("source"===e&&c)continue;o[e]=t}if(m&&(o.source=m),"repeat"===t){const e=i.peek(),t=e=>(e.normalized??e.value).toLowerCase();if(e&&"keyword"===e.kind&&"forever"===t(e))o.loopType={type:"literal",value:"forever"},delete o.patient,i.advance();else if(e&&"keyword"===e.kind&&"event"===t(e)){i.advance();const e=i.peek();if(e)for(o.event={type:"literal",value:t(e)},o.loopType={type:"literal",value:"until-event"},delete o.patient;!i.isAtEnd();){const e=i.peek();if(!e||"conjunction"===e.kind||"keyword"===e.kind&&(this.isThenKeyword(e.value,a)||this.isEndKeyword(e.value,a)))break;i.advance()}}const r=o.patient;r&&"reference"===r.type&&"me"===r.value&&delete o.patient}let s=Ku(t,o,{sourceLanguage:a,patternId:r.pattern.id,confidence:r.confidence});this.registerBoundIdentifiers(s);let l=[];if(!Mh.has(t)||"repeat"===t||"while"===t){const e=r.pattern.id.includes("verb-first"),p=i.tokens,m=i.position(),c=e=>{const t=p[e];if("conjunction"===t.kind)return!0;if("keyword"!==t.kind)return!1;const r=Uy(p,e);return this.isThenAt(t,r,a)||this.isEndKeyword(t.value,a)&&!iv(r,a)},d="repeat"===t||"while"===t,u=e=>c(e)||d&&this.isBlockEndToken(p[e],Uy(p,e),a),y=new Set;{const e=_t(a)?.keywords?.[t];e?.primary&&y.add(e.primary.toLowerCase());for(const t of e?.alternatives??[])y.add(t.toLowerCase())}let v=-1;for(let e=m-1;e>=0;e--){const r=p[e];if(c(e))break;if((r.normalized??r.value).toLowerCase()===t||y.has(r.value.toLowerCase())){v=e;break}}if(v>=0){let r=m,c=0;for(;p.length>r;){const e=p[r],t=Ih(p,r);if(!d||!this.isIfKeyword((e.normalized??e.value).toLowerCase(),a)||t&&this.isElseKeyword(t.value,a)){if(c>0)this.isBlockEndToken(e,Uy(p,r),a)&&c--;else if(u(r))break}else c++;r++}const y=p.slice(v,r);let f=y;if(e){const e=((n.value??"")+"").toLowerCase(),t=y.findIndex(t=>(t.normalized??t.value).toLowerCase()===e);if(0>t)f=null;else{const e=y[t-1],r=e&&"keyword"===e.kind&&"on"===e.normalized?.toLowerCase()?t-1:t;f=[...y.slice(0,r),...y.slice(t+1)]}}if(f&&f.length>1){const e=Mt(a).filter(e=>"on"!==e.command).sort((e,t)=>t.priority-e.priority),n=this.coverageMark(),p=this.parseClause(f,e,a),m=p[0],c=e=>null!==e&&"object"==typeof e&&"string"==typeof e.type?e.type:typeof e,d=ct(t),u=d?.primaryRole,y=e=>"patient"===e&&u&&"patient"!==u&&!d?.roles.some(e=>"patient"===e.role)?u:e,v=(e,r)=>{if(!Mh.has(t)||!d)return!1;const i=d.roles.find(t=>t.role===y(e));return!i||i.expectedTypes.length>0&&!i.expectedTypes.includes(c(r))},h=(e,t)=>"patient"===e&&!!d&&!d.roles.some(e=>"patient"===e.role)&&"literal"===c(t)&&ei.has(((t.value??"")+"").toLowerCase()),g=e=>null!==e&&"object"==typeof e&&!0===e.implicit,k=!!m&&"command"===m.kind&&Object.entries(o).every(([e,r])=>{if(g(r))return!0;if(v(e,r)||h(e,r))return!0;const i=m.roles.get(y(e));if(void 0!==i&&c(i)===c(r))return!0;if("patient"===e&&"pick"===t&&"literal"===c(r)){const e=m.roles.get("method"),t=c(e),i="literal"===t?e.value+"":"expression"===t?e.raw+"":void 0;return void 0!==i&&i===r.value+""}return!1}),z=m?.metadata?.patternId??"",w=!Mh.has(t)||ig.test(z),b=ig.test(z);if((1===p.length||b&&p.length>1)&&m&&"command"===m.kind&&(m.action===t||"while"===t&&"repeat"===m.action&&/-while-head$/.test(m.metadata?.patternId??""))&&k&&w&&(m.roles.size>Object.entries(o).filter(([e,t])=>!h(e,t)).length||[...m.roles.values()].filter(e=>!g(e)).length>Object.entries(o).filter(([e,t])=>!h(e,t)&&!g(t)).length))for(s=m,l=p.slice(1);i.position()<r;)i.advance();else this.coverageRollback(n)}}}if(!Mh.has(t)){const r=s,n=ct(t)?.roles.some(e=>"quantity"===e.role&&!e.required);if(n&&!r.roles.has("quantity")){const e=i.peek();e&&/^-?\d+(\.\d+)?$/.test(e.value)&&(s=Ku(t,{...Object.fromEntries(r.roles),quantity:{type:"literal",value:parseFloat(e.value),dataType:"number"}},r.metadata),i.advance())}const o=s,l=ct(t)?.roles.some(e=>"duration"===e.role&&!e.required);if(l&&!o.roles.has("duration")){const e=/^\d+(\.\d+)?(ms|s)$/i;let r=i.peek(),n=!1;if(r&&"particle"===r.kind){const t=i.peek(1);t&&e.test(t.value)&&(n=!0,r=t)}r&&e.test(r.value)&&(s=Ku(t,{...Object.fromEntries(o.roles),duration:{type:"literal",value:r.value,dataType:"string"}},o.metadata),n&&i.advance(),i.advance(),this.consumeForPostposition(i,a))}const p=s,m=ct(t),c=m?.roles.find(e=>"responseType"===e.role&&!e.required);if(c&&!p.roles.has("responseType")){const r=t=>"string"==typeof t&&e.RESPONSE_TYPE_WORDS.has(t.toLowerCase()),a=(e,r)=>{const i=Object.fromEntries(p.roles);r&&delete i.destination,i.responseType={type:"expression",raw:e},s=Ku(t,i,p.metadata)},n=p.roles.get("destination"),o=m?.roles.find(e=>"destination"===e.role),l=n?.raw??n?.value;if(n&&o&&!o.expectedTypes.includes(n.type)&&r(l))a(l,!0);else{const e=i.peek();e&&r(e.value)&&(a(e.value,!1),i.advance())}}if("wait"===t){const e=s;if(!e.roles.has("event")){const r=i.peek();if(r&&Qh.has(r.value.toLowerCase())){const n=Object.fromEntries(e.roles),o=n.duration;o&&"literal"!==o.type&&"expression"!==o.type&&delete n.duration;const l=n.patient;l&&"reference"===l.type&&"me"===l.value&&delete n.patient,n.event={type:"literal",value:r.value,dataType:"string"},s=Ku(t,n,e.metadata),i.advance(),this.consumeForPostposition(i,a)}}}this.tryAttachTrailingRole(i,s,a),this.tryAttachTrailingStyle(i,s,a),this.tryAttachTrailingExpressionRole(i,s,a),this.tryAttachNewWindow(i,s)}const p=r.captured.get("continues"),d="literal"===p?.type&&"then"===p.value,u=i.peek(),y=!!u&&this.isThenKeyword(u.value,a),f=Mh.has(t)&&!!u&&!this.isEndKeyword(u.value,a),g=!!u&&!this.isEndKeyword(u.value,a),k=[s,...l],z=!!u&&this.isEndKeyword(u.value,a)&&Vh(k)>0&&null!==i.peek(1);if(z&&(i.advance(),k.push(Rh)),d||y||f||g||z){const e=Mt(a).filter(e=>"on"!==e.command).sort((e,t)=>t.priority-e.priority),t=Mt(a).filter(e=>e.id.startsWith("grammar-")&&e.id.includes("-continuation")).sort((e,t)=>t.priority-e.priority),r=this.parseBodyWithGrammarPatterns(i,e,t,a,k);v=this.foldLoopBlocks([...k,...r])}else v=this.foldLoopBlocks(k),i.isAtEnd()||this.recordDroppedTokens(i.tokens.slice(i.position()),a,"handler body tail")}else{const e=Mt(a).filter(e=>"on"!==e.command).sort((e,t)=>t.priority-e.priority),n=h?r.roleStarts?.get("action"):void 0;if(void 0!==n&&n<i.position()){const r=new t(i.tokens.slice(n),a);for(v=this.parseBodyWithClauses(r,e,a);!i.isAtEnd();)i.advance()}else v=this.parseBodyWithClauses(i,e,a)}return Vu(f,v.length>1?[Du(v,"then",{sourceLanguage:a})]:v,o,{sourceLanguage:a,patternId:r.pattern.id,confidence:r.confidence})}parseBodyWithClauses(e,t,r){const i=[],a=[];let n=0;const o=[],s=(e=0)=>{const t=Vh(i);n=t+e,o.length=0;for(let e=0;t>e;e++)o.push("loop");for(let t=0;e>t;t++)o.push("while")};for(;!e.isAtEnd();){const l=e.peek();if(!l)break;if(0===a.length){const a=this.consumeJsBlock(e,r)??this.consumeVerbFinalJsBlock(e,r);if(a){i.push(a);continue}const n=this.tryParseConditionalBlock(e,t,r);if(n){i.push(n);continue}const o=this.tryParseUnlessGuard(e,t,r);if(o){i.push(...o);continue}}const p="conjunction"===l.kind||"keyword"===l.kind&&this.isThenAt(l,Uy(e.tokens,e.position()),r),m=a[a.length-1],c=e.peek(1),d="at"===m?.value.toLowerCase()&&"of"===c?.value.toLowerCase()||ci(r,l.value,m?.value,c?.value),u="keyword"===l.kind&&this.isEndKeyword(l.value,r)&&!d&&!iv(Uy(e.tokens,e.position()),r);if((u||!d&&this.isBlockEndToken(l,Uy(e.tokens,e.position()),r))&&o.every(e=>"loop"===e)&&this.closeLoopAtEnd(e,a,i,t,r)){a.length=0,s();continue}if(u&&n>0){n--,o.pop(),a.push({...l,metadata:{...l.metadata,closesTrackedBlock:!0}}),e.advance();continue}if(p&&o.includes("if")){a.push(l),e.advance();continue}if(p){if(a.length>0){const e=this.parseClause(a,t,r);i.push(...e),a.length=0,s(e.filter(e=>{const t=e;return"while"===t.action&&(!Array.isArray(t.body)||0===t.body.length)}).length)}e.advance();continue}if(u){e.advance();const n=[];for(;!e.isAtEnd();){const t=e.peek();if(!t)break;if("conjunction"===t.kind||"keyword"===t.kind&&(this.isThenKeyword(t.value,r)||this.isEndKeyword(t.value,r)))break;n.push(t),e.advance()}if(n.length>0){const e=this.coverageMark(),o=a.length>0?this.parseClause(a,t,r):[];0===o.length&&a.length>0?(this.coverageRollback(e),i.push(...this.parseClause([...a,...n],t,r))):(i.push(...o),i.push(...this.parseClause(n,t,r)))}else if(a.length>0){const e=this.parseClause(a,t,r);i.push(...e)}a.length=0;break}const y=(l.normalized??l.value).toLowerCase(),v=Kh(l);if("keyword"===l.kind||v){const e=this.isIfKeyword(y,r),t=Ih(a,a.length);("for"===y||"while"===y)&&t&&Kh(t)||e&&t&&this.isElseKeyword(t.value,r)||(v&&"while"===o[o.length-1]?o[o.length-1]="loop":(e||this.isUnlessKeyword(y,r)||"while"===y||"for"===y||v)&&(n++,o.push(e?"if":v||"for"===y?"loop":"while"===y?"while":"other")))}a.push(l),e.advance()}if(a.length>0){const e=this.parseClause(a,t,r);i.push(...e)}e.isAtEnd()||this.recordDroppedTokens(e.tokens.slice(e.position()),r,"body stream tail"),this.foldFrontedWhileIntoRepeat(i,r);for(let e=i.length-1;e>=0;e--){const t=i[e];"command"!==t.kind||"for"!==t.action||t.roles instanceof Map&&0!==t.roles.size||Array.isArray(t.body)&&0!==t.body.length||i.splice(e,1)}const l=this.foldLoopBlocks(i);return l.length>1?[Du(l,"then",{sourceLanguage:r})]:l}closeLoopAtEnd(e,t,r,i,a){const n=Vh(r);if(0===t.length)return 0!==n&&(r.push(Rh),e.advance(),!0);const o=this.coverageMark(),s=this.parseClause([...t],i,a);return 0===s.length||n+s.filter($h).length===0?(this.coverageRollback(o),!1):(r.push(...s,Rh),e.advance(),!0)}foldLoopBlocks(e){const t=[],r=[],i=e=>{(r.length>0?r[r.length-1].body:t).push(e)},a=e=>{const t=r.pop();t&&i(this.buildLoopNode(t.head,t.body,e))};for(const t of e)Nh(t)?a(!0):$h(t)?r.push({head:t,body:[]}):i(t);for(;r.length>0;)a(!1);return t}buildLoopNode(e,t,r=!1){if(0===t.length&&!r)return e;const i=e.roles.get("loopType");if("literal"===i?.type&&"number"==typeof i.value){const a=new Map(e.roles);return a.set("quantity",i),a.set("loopType",{type:"literal",value:"times"}),this.buildLoopNode({...e,roles:a},t,r)}const a="literal"===i?.type?i.value+"":void 0,n="for"===e.action||"for"===a?"for":"times"===a||"while"===a||"forever"===a?a:"until"===a||"until-event"===a?"until":e.roles.has("quantity")?"times":"forever",o="for"===n?e.roles.get("patient"):void 0,s=o?function(e){switch(e.type){case"expression":return e.raw;case"literal":return e.value+"";case"reference":return e.value;default:return}}(o):void 0,l=new Map(e.roles),p=l.get("quantity");return"while"!==n&&"until"!==n||!p||l.has("condition")||(l.set("condition",p),l.delete("quantity")),Hu("for"===e.action?"for":"repeat",n,Object.fromEntries(l),t,{...s?{loopVariable:s}:{},...e.metadata?{metadata:e.metadata}:{}})}tryTopLevelLoop(e,r,i){const a=this.coverageMark();let n;try{const a=new t(e.tokens,i);n=this.parseBodyWithClauses(a,r,i)}catch{return this.coverageRollback(a),null}const[o]=n;if(1===n.length&&"loop"===o.kind)return o;if(1===n.length&&"compound"===o.kind){const e=o;if("loop"===e.statements[0]?.kind){const t=e.statements.map(e=>e.metadata?.confidence??.75);return Du(e.statements,e.chainType,{sourceLanguage:i,confidence:t.reduce((e,t)=>e+t,0)/t.length})}}return this.coverageRollback(a),null}tryTopLevelCommandSequence(e,r,i){const a=this.coverageMark();let n;try{const a=new t(e.tokens,i);n=this.parseBodyWithClauses(a,r,i)}catch{return this.coverageRollback(a),null}if(1!==n.length||"compound"!==n[0].kind)return this.coverageRollback(a),null;const o=n[0];if(2>o.statements.length)return this.coverageRollback(a),null;const s=o.statements.map(e=>e.metadata?.confidence??.75),l=s.reduce((e,t)=>e+t,0)/s.length;return Du(o.statements,o.chainType,{sourceLanguage:i,confidence:l})}foldFrontedWhileIntoRepeat(e,t){for(let r=0;e.length>r+1;r++){const i=e[r],a=e[r+1];if("command"!==i.kind||"while"!==i.action)continue;if("command"!==a.kind||"repeat"!==a.action)continue;const n=i.roles.get("condition");if(!n)continue;if(a.roles.has("condition"))continue;if(Array.isArray(i.body)||Array.isArray(a.body))continue;const o=new Map(a.roles);o.set("condition",n),o.set("loopType",{type:"literal",value:"while",dataType:"string"}),e.splice(r,2,{...a,roles:o,metadata:{...a.metadata,sourceLanguage:t,patternId:`repeat-${t}-fronted-while-fold`,confidence:Math.max(a.metadata?.confidence??0,i.metadata?.confidence??0)}})}}takeRepeatCount(t,r,i){if("SOV"===_t(i)?.wordOrder){const t=e.countBeforeVerb(r,i);if(0>t)return;const a=r[t];return r.length=t,a}const a=t.mark();"particle"===t.peek()?.kind&&t.advance();const n=t.peek();return n&&e.countsBefore(n,t.peek(1),i)?(t.advance(),t.advance(),n):e.isCountToken(n)?(t.advance(),"identifier"===t.peek()?.kind&&t.advance(),n):void t.reset(a)}static isCountToken(e){const t="literal"===e?.kind?Av(e):null;return"literal"===t?.type&&"number"==typeof t.value}static countsBefore(t,r,i){return!!(t&&r&&ai[i]?.includes(r.value))&&("identifier"===t.kind||e.isCountToken(t))}static countBeforeVerb(t,r){const i=e.isCountToken;let a=t.length;return"particle"===t[a-1]?.kind&&a--,e.countsBefore(t[a-2],t[a-1],r)?a-2:("identifier"===t[a-1]?.kind&&i(t[a-2])&&a--,i(t[a-1])?a-1:-1)}loopHeadReadsBody(t,r,i){if("SOV"!==_t(i)?.wordOrder)return!1;if(e.countBeforeVerb(r,i)>=0)return!0;const a=t.captured.get("loopType");return"literal"===a?.type&&"number"!=typeof a.value&&!ag.has(a.value+"")}bareRepeatHead(e,t){const r=e?Av(e):null;return Ku("repeat",e&&r?{loopType:Mu("times"),quantity:$u(r,{start:e.position.start,end:e.position.end})}:{},{sourceLanguage:t,confidence:.6})}parseClause(r,i,a){if(0===r.length)return[];let n=null,o=r;const s=r[r.length-1];if(s&&r.length>=2){const e=(s.normalized??s.value).toLowerCase();this.isUnlessKeyword(e,a)&&(n="unless",o=r.slice(0,-1))}let l=null;if(n&&o.length>=3){const t=_t(a),r=t?e.buildVerbLookup(t):null;if(r)for(let t=1;o.length-1>t;t++){const i=o[t],a=r.get(i.value.toLowerCase())??(i.normalized?r.get(i.normalized.toLowerCase()):void 0);if(a&&!e.CONDITION_OPERATORS.has(a)){l=o.slice(0,t),o=o.slice(t);break}}}const p=new t(o,a),m=[],c=this.coverageMark();let d=0;const u=[];let y=l;const v=()=>{if(0===u.length)return;const e=u.slice();if(u.length=0,n&&0===m.length&&null===y)return void(y=e);const t=e[0];if(!(t&&("identifier"===t.kind||"selector"===t.kind||"literal"===t.kind||"reference"===t.kind)))return void this.recordDroppedTokens(e,a,"body clause");let r=!1;for(const t of this.parseSOVClauseByVerbAnchoring(e,a)){const e=t.action,i=t.roles;e&&ct(e)&&i instanceof Map&&i.size>0&&(m.push(t),r=!0)}r||this.recordDroppedTokens(e,a,"body clause")};for(;!p.isAtEnd();){const e=p.peek(),t=!!e&&"repeat"===e.normalized?.toLowerCase(),r=p.mark(),n=Kv.matchBest(p,i);if(t&&n&&("repeat"!==n.pattern.command||this.loopHeadReadsBody(n,u,a))){p.reset(r),p.advance();const e=this.takeRepeatCount(p,u,a);v(),m.push(this.bareRepeatHead(e,a)),d++;continue}if(!n&&e&&this.isIfKeyword((e.normalized??e.value).toLowerCase(),a)){const e=this.tryParseConditionalBlock(p,i,a);if(e){v(),m.push(e),d++;continue}}if(n&&"if"===n.pattern.command){const e=p.mark(),t=u.length;for(p.reset(r);!p.isAtEnd();){const e=p.peek();if(!e||this.isIfKeyword((e.normalized??e.value).toLowerCase(),a))break;u.push(e),p.advance()}const n=this.tryParseConditionalBlock(p,i,a);if(n){v(),m.push(n),d++;continue}u.length=t,p.reset(e)}if(n){v();const e=this.buildCommand(n,a);m.push(e),d++,this.tryAttachTrailingRole(p,e,a),this.tryAttachTrailingStyle(p,e,a),this.tryAttachTrailingExpressionRole(p,e,a),this.tryAttachTrailingDuration(p,e)}else{const e=0===u.length?this.tryParsePseudoCommand(p,i,a):null;if(e){v(),m.push(e),d++;continue}const t=p.peek(),r="identifier"===t?.kind&&"repeat"===t.value.toLowerCase();if(t&&("repeat"===t.normalized?.toLowerCase()||r)){const e=p.mark();p.advance();const t=this.takeRepeatCount(p,u,a);if(t||!r){v(),m.push(this.bareRepeatHead(t,a)),d++;continue}p.reset(e)}t&&u.push(t),p.advance()}}v();let f=m;if(0===d){const e=this.parseSOVClauseByVerbAnchoring(o,a);e.length>0&&(this.coverageRollback(c),f=e)}const h=y;if(n&&f.length>0&&h&&h.length>0){return[Ku(n,{condition:{type:"expression",raw:this.joinTokenText(h,a)}},{sourceLanguage:a,patternId:`${n}-${a}-trailing-guard`,confidence:.85}),...f]}return n&&h&&h.length>0&&0===f.length?[Ku(n,{condition:{type:"expression",raw:this.joinTokenText(h,a)}},{sourceLanguage:a,patternId:`${n}-${a}-trailing-guard`,confidence:.85})]:f}tryAttachTrailingDuration(e,t){const r=t.roles;if(r.has("duration"))return;const i=ct(t.action);if(!i?.roles.some(e=>"duration"===e.role&&!e.required))return;const a=e.peek();a&&/^\d+(?:\.\d+)?(?:ms|s|m|h)$/.test(a.value)&&(r.set("duration",Mu(a.value,"duration")),e.advance())}tryAttachNewWindow(e,t){const r=t.roles;if("go"!==t.action||r.has("manner"))return;const[i,a,n]=[e.peek(),e.peek(1),e.peek(2)];if("in"===i?.value.toLowerCase()&&"new"===a?.value.toLowerCase()&&n&&"window"===(n.normalized??n.value).toLowerCase()){r.set("manner",Nu("window"));for(let t=0;3>t;t++)e.advance()}}tryAttachTrailingRole(e,t,r){const i=ct(t.action);if(!i)return;const a=_t(r);if(!a)return;const n=t.roles,o=(e,t)=>{if(!e)return!1;if("selector"===e.kind)return!0;const r=(e.normalized??e.value).toLowerCase();return!Bh.has(r)&&("body"===r||"it"===r||"you"===r||"result"===r||"document"===r||"window"===r||(!!this.boundIdentifiers.has(e.value)||!t&&("identifier"===e.kind||"reference"===e.kind)))},s=[{role:"source",strict:!1},{role:"destination",strict:!0}];for(const{role:t,strict:r}of s){if(!i.roles.some(e=>e.role===t))continue;const s=a.roleMarkers?.[t];if(!s)continue;const l=n.get(t);if(l&&("reference"!==l.type||"me"!==l.value))continue;const p=e=>{if(!e||"particle"!==e.kind&&"keyword"!==e.kind)return!1;const i=e.value.toLowerCase();return s.primary?.toLowerCase()===i||!r&&((e.normalized??"").toLowerCase()===t||!!s.alternatives?.some(e=>e.toLowerCase()===i))},m=e.peek(),c=e.peek(1);if(!m||!c)return;if(r&&"after"===s.position){const r=e.peek(2),i=(m.normalized??m.value).toLowerCase();if(Dh.has(i)&&"selector"===c.kind&&p(r))return n.set(t,{type:"expression",raw:`${i} ${c.value}`}),e.advance(),e.advance(),void e.advance()}if("after"===s.position){if(o(m,r)&&p(c)){const r=this.tokenToSemanticValue(m);return e.advance(),e.advance(),void(r&&n.set(t,r))}if(r&&o(m,r)){const r=e.peek(2),i=e.peek(3);if("in"===(c.normalized??c.value).toLowerCase()&&r&&!p(r)&&p(i)){const r=this.tokenToSemanticValue(m);return e.advance(),e.advance(),e.advance(),e.advance(),void(r&&n.set(t,r))}}}else if(p(m)&&o(c,r)){e.advance();const r=this.tokenToSemanticValue(e.advance());return void(r&&n.set(t,r))}}}tryAttachTrailingStyle(r,i,a){if("fetch"!==i.action&&"render"!==i.action)return;const n=i.roles,o=ct(i.action);if(!o?.roles.some(e=>"style"===e.role))return;const s=n.get("style");if(s){if("expression"===s.type&&"string"==typeof s.raw&&/^[A-Za-z_][\w-]*$/.test(s.raw)&&":"===r.peek()?.value){const e=Wv(r,s.raw);e&&n.set("style",{type:"expression",raw:e})}return void this.tryAttachResponseTypeAfterStyle(r,i,a)}if("fetch"===i.action){const e=n.get("patient"),t=n.get("source");if(e&&t&&("literal"===e.type||"expression"===e.type)&&"expression"===t.type&&"string"==typeof t.raw&&/^[A-Za-z_][\w-]*$/.test(t.raw)&&":"===r.peek()?.value){const e=Wv(r,t.raw);return void(e&&(n.set("source",{type:"expression",raw:e}),this.tryAttachResponseTypeAfterStyle(r,i,a)))}}const l=_t(a),p=l?.roleMarkers?.style;if(!p)return;if("before"===p.position){const e=new Set([p.primary,...p.alternatives??[]].map(e=>e.toLowerCase())),t=r.peek();if(!t||!e.has(t.value.toLowerCase()))return;const o=r.mark();r.advance();const s=Wv(r);return s?(n.set("style",{type:"expression",raw:s}),void this.tryAttachResponseTypeAfterStyle(r,i,a)):void r.reset(o)}if("after"!==p.position)return;const m=new Set([p.primary,...p.alternatives??[]].map(e=>e.toLowerCase())),c=e=>"conjunction"===e.kind||"keyword"===e.kind&&(this.isThenKeyword(e.value,a)||this.isEndKeyword(e.value,a));let d=-1,u=0;for(let e=0;24>e;e++){const t=r.peek(e);if(!t||c(t))break;if("("===t.value||"{"===t.value?u++:")"!==t.value&&"}"!==t.value||(u=Math.max(0,u-1)),0===u&&("particle"===t.kind||"keyword"===t.kind)&&m.has(t.value.toLowerCase())){d=e;break}}if(0>=d)return;const y=[];for(let e=0;d>e;e++){const t=r.peek(e);t&&y.push(t)}if(1===y.length&&e.RESPONSE_TYPE_WORDS.has(y[0].value.toLowerCase()))return;const v=new t(y,a),f=Wv(v);n.set("style",{type:"expression",raw:f&&v.isAtEnd()?f:this.joinTokenText(y,a)});for(let e=0;d>=e;e++)r.advance();this.tryAttachResponseTypeAfterStyle(r,i,a)}tryAttachResponseTypeAfterStyle(t,r,i){const a=r.roles;if(a.has("responseType"))return;const n=ct(r.action);if(!n?.roles.some(e=>"responseType"===e.role&&!e.required))return;const o=t=>!!t&&e.RESPONSE_TYPE_WORDS.has(t.toLowerCase()),s=t.peek();if(!s)return;const l=e=>{a.set("responseType",{type:"expression",raw:e})},p=e.AS_MARKERS_BEFORE[i];if(p?.some(e=>s.value.toLowerCase()===e)){const e=t.peek(1);return void(e&&o(e.value)&&(t.advance(),t.advance(),l(e.value)))}if(o(s.value)){t.advance(),l(s.value);for(const r of e.AS_MARKERS_AFTER[i]??[])if(r.every((e,r)=>t.peek(r)?.value.toLowerCase()===e)){for(let e=0;r.length>e;e++)t.advance();break}}}tryAttachTrailingExpressionRole(e,t,r){const i=t.action,a="js"===i?{role:"patient",terminator:"boundary"}:"go"===i||"scroll"===i?{role:"destination",terminator:"destination-marker"}:null;if(!a)return;const n=t.roles,o=n.get(a.role);if("go"===i&&o&&"expression"===o.type&&"url"===(o.raw+"").toLowerCase()){const t=e.peek();if(t&&!Bh.has((t.normalized??t.value).toLowerCase())){const r=this.tokenToSemanticValue(t);if("literal"===r.type||"selector"===r.type)return n.set(a.role,r),n.set("method",{type:"literal",value:"url"}),void e.advance()}const r=n.get("patient");if(r&&("literal"===r.type||"selector"===r.type))return n.set(a.role,r),n.set("method",{type:"literal",value:"url"}),void n.delete("patient")}if("go"===i&&o&&"expression"===o.type){const e=/^url\s+(\S+)$/i.exec((o.raw??"")+"");if(e){const t=e[1].replace(/^["']|["']$/g,"");return n.set(a.role,{type:"literal",value:t,dataType:"string"}),void n.set("method",{type:"literal",value:"url"})}}if("go"===i&&!o){const t=n.get("patient");if(t&&"expression"===t.type&&"url"===(t.raw+"").toLowerCase()){const t=e.peek();if(t&&!Bh.has((t.normalized??t.value).toLowerCase())){const r=this.tokenToSemanticValue(t);if("literal"===r.type||"selector"===r.type)return n.set(a.role,r),n.set("method",{type:"literal",value:"url"}),n.delete("patient"),void e.advance()}}}if(o&&("reference"!==o.type||"me"!==o.value))return;const s=_t(r);if(!s)return;let l=null;if("destination-marker"===a.terminator){const e=s.roleMarkers?.destination;if(!e||"after"!==e.position)return;l=e.primary.toLowerCase()}const p=e=>"conjunction"===e.kind||"keyword"===e.kind&&(this.isThenKeyword(e.value,r)||this.isEndKeyword(e.value,r)),m=[];let c=0,d=!1;for(let t=0;24>t;t++){const r=e.peek(t);if(!r||p(r))break;if("("===r.value||"{"===r.value?c++:")"!==r.value&&"}"!==r.value||(c=Math.max(0,c-1)),null!==l&&0===c&&("particle"===r.kind||"keyword"===r.kind)&&r.value.toLowerCase()===l){d=!0;break}m.push(r)}if(0===m.length)return;if(null!==l&&!d)return;const u=m.length+(d?1:0);if("go"===i&&2===m.length&&"url"===m[0].value.toLowerCase()){const t=this.tokenToSemanticValue(m[1]);if("literal"===t.type||"selector"===t.type){n.set(a.role,t),n.set("method",{type:"literal",value:"url"});const r=n.get("patient");r&&"reference"===r.type&&"me"===r.value&&!ct(i)?.roles.some(e=>"patient"===e.role)&&n.delete("patient");for(let t=0;u>t;t++)e.advance();return}}let y=m;if("js"===i){const e=s.keywords?.js,t=t=>[e?.primary,...e?.alternatives??[]].some(e=>!!e&&e.length>t.value.length&&e.includes(t.value));let r=0;for(;y.length>r&&t(y[r]);)r++;if(y=y.slice(r),0===y.length)return}if(n.set(a.role,{type:"expression",raw:this.joinTokenText(y,r)}),"patient"!==a.role){const e=n.get("patient");e&&"reference"===e.type&&"me"===e.value&&!ct(i)?.roles.some(e=>"patient"===e.role)&&n.delete("patient")}for(let t=0;u>t;t++)e.advance()}static buildVerbLookup(e){const t=new Map;for(const[r,i]of Object.entries(e.keywords))if(!["on","if","else","when","where","while","end","then","and"].includes(r)&&(t.set(i.primary.toLowerCase(),r),i.alternatives))for(const e of i.alternatives)t.set(e.toLowerCase(),r);return t}static buildMarkerToRoleLookup(e){const t=new Map;for(const[r,i]of Object.entries(e.roleMarkers)){if(!i)continue;if(!("event"!==r)&&t.has(i.primary)||t.set(i.primary,r),i.alternatives)for(const e of i.alternatives)t.has(e)||t.set(e,r)}return t}parseSOVClauseByVerbAnchoring(t,r){const i=_t(r);if(!i||"SOV"!==i.wordOrder)return[];const a=e.buildVerbLookup(i),n=e.buildMarkerToRoleLookup(i),o=[];let s=0;for(;t.length>s;){let e=-1,i="";for(let r=s;t.length>r;r++){const o=t[r];if(n.has(o.value))continue;const s=a.get(o.value.toLowerCase()),l=o.normalized?a.get(o.normalized.toLowerCase()):void 0,p=s||l;if(p){e=r,i=p;break}}if(-1===e)break;const l=t.slice(s,e);let p=t.length;for(let i=e+1;t.length>i;i++){const o=t[i];if("conjunction"===o.kind||this.isThenKeyword(o.value,r)){p=i;break}if(i>e+1&&!n.has(o.value)){if(a.get(o.value.toLowerCase())||(o.normalized?a.get(o.normalized.toLowerCase()):void 0)){p=i;break}}}const m=t.slice(e+1,p),c=this.extractRolesFromMarkedTokens(l,m,n,i,r);if(o.push(Ku(i,c,{sourceLanguage:r,confidence:.7})),s=p,t.length>s){const e=t[s];("conjunction"===e.kind||this.isThenKeyword(e.value,r))&&s++}}return o}extractRolesFromMarkedTokens(e,t,r,i,a){const n={},o=(e,t)=>{const r=this.isEndKeyword(e.value,a),i="keyword"===e.kind&&"end"===(e.normalized??"").toLowerCase();return!(!r&&!i)&&(!0===e.metadata?.closesTrackedBlock||(!!r||!(t&&"selector"===t.kind)))},s=e=>{let t=[];for(let s=0;e.length>s;s++){const l=e[s];if(o(l,e[s+1]))continue;const p=r.get(l.value);if(p&&"particle"===l.kind&&t.length>0){const e=this.tokensToSemanticValue(t,a);if(e){const t=this.mapRoleForCommand(p,i,n);t&&(n[t]=e)}t=[]}else t.push(l)}if(t.length>0){if(1===t.length&&/^\d+(\.\d+)?(ms|s)$/i.test(t[0].value)&&!n.duration&&ct(i)?.roles.some(e=>"duration"===e.role))n.duration={type:"literal",value:t[0].value,dataType:"string"};else{const e=this.tokensToSemanticValue(t,a);e&&(n.patient?n.destination||(n.destination=e):n.patient=e)}}};return s(e),s(t),n}mapRoleForCommand(e,t,r){return"set"===t&&("patient"===e?e="destination":"destination"===e&&(e="patient")),r[e]?"patient"!==e||r.destination?"destination"!==e||r.patient?"source"!==e||r.source?null:"source":"patient":"destination":e}tokensToSemanticValue(e,t){if(0===e.length)return null;let r=e.filter(e=>"whitespace"!==e.kind);if(0===r.length)return null;if(r.length>=2&&("selector"===r[0].kind||/^[#.@*<]/.test(r[0].value))){const e=r.findIndex((e,t)=>t>0&&"in"===(e.normalized??e.value).toLowerCase());e>0&&(r=r.slice(0,e))}if(1===r.length)return this.tokenToSemanticValue(r[0]);const i=this.joinTokenText(r,t);if(kv(i))return{type:"expression",raw:i};const a=r.map(e=>e.value).join(""),n=r[0];return"selector"===n.kind||n.value.startsWith("#")||n.value.startsWith(".")||n.value.startsWith("@")||n.value.startsWith("*")?qu(a):"literal"===n.kind||n.value.startsWith('"')||n.value.startsWith("'")?Mu(function(e){if(e.length>=2){const t=e[0];if(('"'===t||"'"===t)&&e.endsWith(t))return e.slice(1,-1)}return e}(a),"string"):"reference"===n.kind?Nu(a):Mu(i)}tokenToSemanticValue(e){return Av(e)??Mu(e.value)}parseBodyWithGrammarPatterns(e,t,r,i,a=[]){const n=[],o=()=>Vh([...a,...n]);let s=[],l=!1;const p=()=>{if(!l&&s.length>0){const e=this.parseSOVClauseByVerbAnchoring(s,i);n.push(...e),0===e.length&&this.recordDroppedTokens(s,i,"fused body walk")}else s.length>0&&this.recordDroppedTokens(s,i,"fused body walk");s=[],l=!1};let m=0;const c=()=>n.filter(e=>{const t=e;return"while"===t.action&&(!Array.isArray(t.body)||0===t.body.length)}).length-m;for(;!e.isAtEnd();){const a=e.peek();if(a&&this.isThenKeyword(a.value,i)){p(),e.advance();continue}if(a&&o()>0&&!this.isEndKeyword(a.value,i)&&this.isBlockEndToken(a,Uy(e.tokens,e.position()),i)&&!ci(i,a.value,e.peek(-1)?.value,e.peek(1)?.value)){p(),n.push(Rh),e.advance();continue}if(a&&this.isEndKeyword(a.value,i)){const t=e.peek(-1),r=e.peek(1);if(!ci(i,a.value,t?.value,r?.value)){if(p(),o()>0){n.push(Rh),e.advance();continue}if(c()>0){m++,e.advance();continue}e.advance();break}}if(a&&!l&&this.isIfKeyword((a.normalized??a.value).toLowerCase(),i)){p();const r=this.tryParseConditionalBlock(e,t,i);if(r){n.push(r),l=!0;continue}}let d=!1;if(r.length>0){const t=Kv.matchBest(e,r);if(t){const e=t.pattern.command,r={};for(const[e,i]of t.captured)"event"!==e&&"action"!==e&&"continues"!==e&&(r[e]=i);const a=Ku(e,r,{sourceLanguage:i,patternId:t.pattern.id});n.push(a),d=!0,l=!0;const o=t.captured.get("continues");if(o&&"literal"===o.type&&"then"===o.value)continue}}if(!d){const r=e.mark(),a=Kv.matchBest(e,t);if(a){if("if"===a.pattern.command){const a=e.mark();for(e.reset(r);!e.isAtEnd();){const t=e.peek();if(!t||this.isIfKeyword((t.normalized??t.value).toLowerCase(),i))break;e.advance()}const o=this.tryParseConditionalBlock(e,t,i);if(o){p(),n.push(o),l=!0;continue}e.reset(a)}const o=this.buildCommand(a,i);n.push(o),this.tryAttachTrailingRole(e,o,i),d=!0,l=!0}}d||(a&&s.push(a),e.advance())}p(),e.isAtEnd()||this.recordDroppedTokens(e.tokens.slice(e.position()),i,"fused body walk");for(let e=n.length-1;e>=0;e--){const t=n[e];"command"!==t.kind||"for"!==t.action||t.roles instanceof Map&&0!==t.roles.size||Array.isArray(t.body)&&0!==t.body.length||n.splice(e,1)}return n}tryCompoundCommandParsing(e,r,i){const a=e.tokens,n=a.some(e=>"conjunction"===e.kind||"keyword"===e.kind&&this.isThenKeyword(e.value,i)),o=a.some(e=>this.isElseKeyword(e.value,i));if(!n&&!o)return null;const s=new t(a,i),l=this.coverageMark(),p=this.parseBodyWithClauses(s,r,i);return 0===p.length?(this.coverageRollback(l),null):p[0]}static isEnEventKeyword(t){if("string"!=typeof t)return!1;const r=t.toLowerCase(),i=e.enEventKeywordCache.get(r);if(void 0!==i)return i;let a=!1;try{const e=Fv(r,"en").tokens;a=1===e.length&&"keyword"===e[0]?.kind}catch{a=!1}return e.enEventKeywordCache.set(r,a),a}matchEventMarkerPhrase(t,r,i){const a=e.SOV_EVENT_MARKER_PHRASES[i];if(!a)return 0;for(const e of a)if(e.every((e,i)=>t[r+i]?.value===e))return e.length;return 0}hasSOVEventMarkerHead(t,r){const i=e.SOV_EVENT_MARKERS[r];if(void 0===i)return!1;const{tokens:a}=Fv(t,r),n=$m[r],o=new Set;if(n)for(const e of Object.keys(n))o.add(e.toLowerCase());for(let t=0;a.length>t;t++){const n=a[t],s=n.value.toLowerCase(),l=n.normalized?.toLowerCase();if(!(!!l&&(e.KNOWN_EVENTS.has(l)||Qh.has(l))||e.KNOWN_EVENTS.has(s)||Qh.has(s)||o.has(s)))continue;const p=this.matchEventParamPhrase(a,t+1).len,m=a[t+1+p];if(m&&("particle"===m.kind||"keyword"===m.kind)&&i.has(m.value))return!0;if(this.matchEventMarkerPhrase(a,t+1+p,r)>0)return!0}return!1}tryScrollModifiers(e,t,r){const i=e=>e?.value.toLowerCase()??"";let a=-1,n=-1;for(let t=0;e.length>t&&0>a;t++){let r="the"===i(e[t])?t+1:t;Hh.has(i(e[r]))&&(Hh.has(i(e[r+1]))&&r++,"of"===i(e[r+1])&&e[r+2]&&(a=t,n=r+1))}const o=0>a?e.findIndex(e=>Uh.has(i(e))):-1;if(0>a&&0>o)return null;const s=0>a?o:n,l=t.slice(0,e[0>a?o:a].position.start).trimEnd(),p=t.slice(e[s].position.end).trimStart(),m=l?l.length+1:0;try{const t=this.parse(l?`${l} ${p}`:p,r),s=[],c=e=>{if(!e)return;"command"!==e.kind||"go"!==e.action&&"scroll"!==e.action||s.push(e);const t=e;for(const e of Gh){const r=t[e];Array.isArray(r)&&r.forEach(e=>c(e))}};c(t??void 0);const d=e=>e.roles.get("destination")?.position?.start??-1,u=e=>s.filter(t=>d(t)>=0&&d(t)<=e).reduce((e,t)=>!e||d(t)>d(e)?t:e,void 0);if(!t)return null;if(a<0){const t=u(e[o].position.start-1);if(!t)return null;t.scrollBehavior=i(e[o])}else{const t=u(m),r=t?.roles.get("destination");if(!t||!r||!function(e,t){if(!t)return!1;const r=t.value.toLowerCase();switch(e.type){case"selector":return e.value.toLowerCase()===r;case"reference":return e.value===(t.normalized??t.value).toLowerCase()||e.value===r;case"expression":return e.raw.toLowerCase().split(/\s+/)[0]===r;default:return(("value"in e?e.value:"")+"").toLowerCase()===r}}(r,e[n+1]))return null;const i=e.slice(a,n).map(e=>e.value.toLowerCase());t.scrollPosition=i.join(" ")}return t}catch{return null}}tryDoNotThrow(e,t,r){const i=e=>e?.value.toLowerCase(),a=e.findIndex((t,r)=>"do"===i(t)&&"not"===i(e[r+1])&&"throw"===i(e[r+2]));if(0>a)return null;const n=e[a].position.start,o=(t.slice(0,e[a].position.start).trimEnd()+" "+t.slice(e[a+2].position.end).trimStart()).trim();try{const e=this.parse(o,r),t=[],i=e=>{if(!e)return;"command"===e.kind&&"fetch"===e.action&&t.push(e);const r=e;for(const e of Gh){const t=r[e];Array.isArray(t)&&t.forEach(e=>i(e))}};i(e??void 0);const a=e=>e.roles.get("source")?.position?.start??-1,s=t.filter(e=>a(e)>=0&&a(e)<n).reduce((e,t)=>!e||a(t)>a(e)?t:e,void 0);return e&&s?(s.doNotThrow=!0,e):null}catch{return null}}tryTellTo(e,t,r){const i=e=>"tell"===(e.normalized??e.value).toLowerCase(),a=e.findIndex(i);if(0>a)return null;const n=_t(r)?.roleMarkers?.destination,o=new Set([n?.primary,...n?.alternatives??[]].filter(e=>!!e));for(let n=a+1;e.length>n;n++){if("to"!==e[n].value.toLowerCase())continue;const a=e[n].position.start,s=(t.slice(0,a).trimEnd()+" "+t.slice(e[n].position.end).trimStart()).trim();try{const t=this.parse(s,r);if(!t)continue;const n=[],l=e=>{if(!e)return;"command"===e.kind&&n.push(e);const t=e;for(const e of Gh){const r=t[e];Array.isArray(r)&&r.forEach(e=>l(e))}};l(t);const p=e=>e.roles.get("destination")?.position?.start??-1,m=n.filter(e=>"tell"===e.action&&p(e)>=0&&p(e)<a).reduce((e,t)=>!e||p(t)>p(e)?t:e,void 0);if(!m)continue;const c=m.roles.get("destination")?.position?.end??-1;if(0>c)continue;if(!e.filter(e=>e.position.start>=c&&a>e.position.start).every(e=>i(e)||o.has(e.value)))continue;return t}catch{continue}}return null}tryLoopIndex(e,t,r){const i=e=>e?.value.toLowerCase(),a=new Set;for(const e of Mt(r))if("repeat"===e.command||"for"===e.command)for(const t of e.template.tokens)if("literal"===t.type)for(const e of[t.value,...t.alternatives??[]])a.add(e.toLowerCase());const n=e=>a.has(e.value.toLowerCase()),o=_t(r)?.roleMarkers?.style?.primary?.toLowerCase(),s=e=>"with"===i(e)||!!o&&i(e)===o;for(let a=0;e.length>a+1;a++){const o=s(e[a])&&"index"===i(e[a+1]),l="index"===i(e[a]);if(!o&&!l)continue;const p=e[a].position.start,m=(t.slice(0,p).trimEnd()+" "+t.slice(e[a+1].position.end).trimStart()).trim();try{const t=this.parse(m,r);if(!t)continue;const i=[],s=e=>{if(!e)return;"loop"===e.kind&&i.push(e);const t=e;for(const e of Gh){const r=t[e];Array.isArray(r)&&r.forEach(e=>s(e))}};s(t);const l=e=>Math.max(-1,...[...e.roles.values()].map(e=>e.position?.end??-1).filter(e=>p>=e)),c=i.filter(e=>l(e)>=0).reduce((e,t)=>!e||l(t)>l(e)?t:e,void 0);if(!c)continue;const d=e.filter(e=>e.position.start>=l(c)&&p>e.position.start),u=c.roles.get("quantity"),y="literal"===u?.type&&"number"==typeof u.value?u.position?.end:void 0,v=void 0===y?void 0:e.find(e=>e.position.start>=y);if(!d.every(e=>e===v||n(e)))continue;return c.indexVariable=o?"index":e[a+1].value,t}catch{continue}}return null}tryWaitAlternatives(t,r,i){const a=e=>!!e&&"wait"===(e.normalized??e.value).toLowerCase();if(!t.some(e=>a(e)))return null;const n=e=>(e.normalized??e.value).toLowerCase(),o=t=>{if(!t)return;const r=t=>e.KNOWN_EVENTS.has(t)||Qh.has(t);if(r(n(t)))return n(t);const a=Bm(t.value,i);return r(a)?a:void 0},s=e=>void 0!==o(e),l=e=>!!e&&/^\d+(?:\.\d+)?(?:ms|s)$/.test(e.value),p=_t(i)?.roleMarkers?.source,m=new Set([p?.primary,...p?.alternatives??[]].filter(Boolean).map(e=>e.toLowerCase())),c=e=>!!e&&("source"===(e.normalized??"")||m.has(e.value.toLowerCase())),d="after"!==p?.position,u="SOV"===_t(i)?.wordOrder,y=(e,r)=>u?a(t[r])||"particle"===t[r]?.kind&&a(t[r+1]):a(t[e-1])||a(t[e-2]),v=e=>{const r=Hm(o(t[e]),i).split(/\s+/);return 2>r.length||t[e].value!==r[0]?1:r.every((r,i)=>0===i||t[e+i]?.value===r)?r.length:1};for(let e=0;t.length>e;e++){if(!s(t[e]))continue;const a=[],n=e+v(e),p=this.matchEventParamPhrase(t,n);a.push(p.names.length>0?{event:o(t[e]),params:p.names}:{event:o(t[e])});let m=n+p.len;for(;Xv(t[m]??{value:""},i);){const e=t[m+1];if(s(e)){const r=m+1+v(m+1),i=this.matchEventParamPhrase(t,r);a.push(i.names.length>0?{event:o(e),params:i.names}:{event:o(e)}),m=r+i.len}else{if(!l(e))break;a.push({duration:e.value}),m+=2}}const u=m;let f,h;d&&c(t[m])&&t[m+1]?(f=[m,m+1],h=t[m+1]):!d&&t[m]&&c(t[m+1])&&(f=[m,m+1],h=t[m]);if(!(a.length>1||p.names.length>0||!!f))continue;if(!y(e,f?f[1]+1:u))continue;const g=[];u>n&&g.push([t[n-1].position.end,t[u-1].position.end]),f&&g.push([t[f[0]].position.start,t[f[1]].position.end]),g.sort((e,t)=>e[0]-t[0]);let k="",z=0;for(const[e,t]of g)k+=r.slice(z,e)+" ",z=t;k=(k+r.slice(z)).replace(/\s+/g," ").trim();const w=a[0];let b=0;for(let r=0;e>r;r++)o(t[r])===w.event&&y(r,r+1)&&b++;try{const e=this.parse(k,i),t=[],r=e=>{if(!e)return;const i=e.roles?.get("event"),a="expression"===i?.type?i.raw:i&&"value"in i?i.value+"":void 0;"command"===e.kind&&"wait"===e.action&&a?.toLowerCase()===w.event&&t.push(e);const n=e;for(const e of Gh){const t=n[e];Array.isArray(t)&&t.forEach(e=>r(e))}};r(e??void 0);const n=t[b];if(!e||!n)continue;return n.waitAlternatives=a,h&&(n.waitSource=Zh(h)),e}catch{}}return null}isBodyCommandWord(t,r){const i=(t.normalized??t.value).toLowerCase();return"keyword"===t.kind&&r.has(i)&&!e.KNOWN_EVENTS.has(i)&&!Qh.has(i)}matchEventParamPhrase(e,t){if("("!==e[t]?.value)return{len:0,names:[]};const r=[];for(let i=t+1;e.length>i;i++){const a=e[i].value;if(")"===a){const a=e[t-1];return a?.position?.end!==e[t]?.position?.start&&"particle"===e[i+1]?.kind?{len:0,names:[]}:{len:i-t+1,names:r}}if(","===a)continue;const n=e[i].kind;if("identifier"!==n&&"keyword"!==n||!/^[A-Za-z_$][\w$]*$/.test(a))break;const o=(e[i].normalized??a).toLowerCase();if("keyword"===n&&Fh.has(o))break;r.push(a)}return{len:0,names:[]}}isStrippableSourceRef(e,t){if(!e)return!1;const r=e.normalized?.toLowerCase();if("keyword"===e.kind&&("me"===r||"i"===r||"it"===r))return!0;const i=e.value.toLowerCase();return t.has(i)||!!r&&t.has(r)}tryTrailingEventExtraction(r,i,a){const n=Fv(r,i).tokens;if(3>n.length)return null;const o=$m[i],s=new Set;if(o)for(const e of Object.keys(o))s.add(e.toLowerCase());const l=n.length-2,p=n[l];if(!("keyword"===p.kind&&"on"===p.normalized?.toLowerCase()))return null;const m=n[n.length-1],c=m.value.toLowerCase(),d=m.normalized?.toLowerCase();if(!(!!d&&e.KNOWN_EVENTS.has(d)||e.KNOWN_EVENTS.has(c)||s.has(c)))return null;const u=d&&e.KNOWN_EVENTS.has(d)?d:o?.[c]??c,y=n.slice(0,l);if(0===y.length)return null;const v=a.filter(e=>"on"!==e.command),f=new t(y,i),h=this.coverageMark(),g=this.parseBodyWithClauses(f,v,i);return 0===g.length?(this.coverageRollback(h),null):Vu({type:"literal",value:u},g,void 0,{sourceLanguage:i,confidence:.75})}tryMidStreamEventExtraction(r,i,a){const n=Fv(r,i).tokens;if(3>n.length)return null;const o=$m[i],s=new Set;if(o)for(const e of Object.keys(o))s.add(e.toLowerCase());for(let r=0;n.length-1>r;r++){const l=n[r];if(!("keyword"===l.kind&&"on"===l.normalized?.toLowerCase()))continue;const p=n[r+1],m=p.value.toLowerCase(),c=p.normalized?.toLowerCase();if(!(!!c&&e.KNOWN_EVENTS.has(c)||e.KNOWN_EVENTS.has(m)||s.has(m)))continue;const d=c&&e.KNOWN_EVENTS.has(c)?c:o?.[m]??m,u=n.filter((e,t)=>t!==r&&t!==r+1);if(0===u.length)return null;const y=a.filter(e=>"on"!==e.command),v=new t(u,i),f=this.coverageMark(),h=this.parseBodyWithClauses(v,y,i);return 0===h.length?(this.coverageRollback(f),null):Vu({type:"literal",value:d},h,void 0,{sourceLanguage:i,confidence:.75})}return null}trySOVEventExtraction(r,i,a){const n=e.SOV_EVENT_MARKERS[i];if(!n)return null;const o=Fv(r,i).tokens,s=$m[i],l=new Set;if(s)for(const e of Object.keys(s))l.add(e.toLowerCase());const p=e.SOV_SOURCE_MARKERS[i];let m=-1,c="",d="",u=1,y=[];for(let t=0;o.length>t;t++){const r=o[t],a=r.value.toLowerCase();let p=a,v="";const f=a.indexOf("[");f>0&&(p=a.slice(0,f),v=r.value.slice(f));const h=r.normalized?.toLowerCase(),g=h&&(e.KNOWN_EVENTS.has(h)||Qh.has(h)),k=l.has(a)||l.has(p),z=e.KNOWN_EVENTS.has(p)||Qh.has(p);if(g||k||z){const e=o[t-1];if(e&&"event"===(e.normalized??e.value).toLowerCase())continue;let r;r=g?h:k?s?.[a]??s?.[p]??p:p;const l=this.matchEventParamPhrase(o,t+1);if(0>=n.size){m=t,c=r,d=v,u=1+l.len+this.matchEventMarkerPhrase(o,t+1+l.len,i),y=l.names;break}{let e=1+l.len;const i=o[t+e];i&&"selector"===i.kind&&i.value.startsWith("[")&&(e+=1);const a=o[t+e];if(a&&("particle"===a.kind||"keyword"===a.kind)&&n.has(a.value)){m=t,c=r,d=v||(e===l.len+2?o[t+e-1].value:""),u=e+1,y=l.names;break}}}}if(-1===m){const e=new Set(a.filter(e=>"on"!==e.command).map(e=>e.command));for(let t=0;o.length>t;t++){const r=o[t];if("identifier"===r.kind&&!r.value.startsWith("`"))if(n.size>0){let e=1;const i=o[t+1];i&&"selector"===i.kind&&i.value.startsWith("[")&&(e=2);const a=o[t+e];if(a&&("particle"===a.kind||"keyword"===a.kind)&&n.has(a.value)){m=t,c=r.value,d=2===e?o[t+1].value:"",u=e+1;break}}else{const a=this.matchEventMarkerPhrase(o,t+1,i);if(a>0){m=t,c=r.value,d="",u=1+a;break}const n=o[t+1];if(n&&"keyword"===n.kind&&null!=n.normalized&&e.has(n.normalized)){m=t,c=r.value,d="",u=1;break}}}}if(-1===m)return null;const v=new Set;for(let e=m;m+u>e;e++)v.add(e);if(p){const e=m+u;if(o.length>e){const t=o[e];if("particle"!==t.kind&&"keyword"!==t.kind||!p.markers.has(t.value)){if(this.isStrippableSourceRef(t,p.windowTokens)){const t=o[e+1];t&&("particle"===t.kind||"keyword"===t.kind)&&p.markers.has(t.value)&&(v.add(e),v.add(e+1))}}else v.add(e)}if(m>=2){const e=o[m-1];("particle"===e.kind||"keyword"===e.kind)&&p.markers.has(e.value)&&this.isStrippableSourceRef(o[m-2],p.windowTokens)&&(v.add(m-2),v.add(m-1))}for(let e=0;m>e;e++){const t=o[e],r=t.value.toLowerCase(),i=t.normalized?.toLowerCase();if(p.windowTokens.has(r)||i&&p.windowTokens.has(i)){v.add(e);break}}}const f=o.filter((e,t)=>!v.has(t));if(0===f.length)return null;const h=a.filter(e=>"on"!==e.command),g=new t(f,i),k=this.coverageMark(),z=this.parseBodyWithClauses(g,h,i);if(0===z.length)return this.coverageRollback(k),null;const w={sourceLanguage:i,confidence:.75};return d&&(w.keyFilter=d),Vu(e.isEnEventKeyword(c)?{type:"literal",value:c}:{type:"expression",raw:c},z,void 0,w,y)}profileKeywordMatches(e,t,r){const i=_t(e)?.keywords?.[t];return!!i&&(i.primary?.toLowerCase()===r||!!i.alternatives?.some(e=>e.toLowerCase()===r))}consumeForPostposition(e,t){const r=e.peek();if(!r)return;const i=(r.normalized??"").toLowerCase(),a=_t(t)?.keywords?.for;("for"===i||r.value===a?.primary||(a?.alternatives??[]).includes(r.value))&&e.advance()}isThenAt(e,t,r){return!!this.isThenKeyword(e.value,r)&&!(this.isEndKeyword(e.value,r)&&iv(t,r))}isThenKeyword(e,t){const r=e.toLowerCase(),i={en:new Set(["then"]),ja:new Set(["\u305d\u308c\u304b\u3089","\u6b21\u306b"]),ar:new Set(["\u062b\u0645","\u0628\u0639\u062f\u0647\u0627","\u062b\u0645\u0651"]),es:new Set(["entonces","luego","despu\u00e9s"]),ko:new Set(["\uadf8\ub2e4\uc74c","\uadf8\ub7f0\ud6c4","\uadf8\ub7ec\uba74"]),zh:new Set(["\u7136\u540e","\u63a5\u7740","\u90a3\u4e48"]),tr:new Set(["ard\u0131ndan","daha sonra","ardindan"]),pt:new Set(["ent\u00e3o","depois","logo"]),fr:new Set(["puis","ensuite","alors"]),de:new Set(["dann","danach","anschlie\u00dfend"]),id:new Set(["lalu","kemudian","setelah itu"]),tl:new Set(["pagkatapos","tapos"]),bn:new Set(["\u09a4\u09be\u09b0\u09aa\u09b0"]),qu:new Set(["chaymantataq","hinaspa","chaymanta","chayqa"]),sw:new Set(["kisha","halafu","baadaye"])}[t];return i?i.has(r):"then"===r||this.profileKeywordMatches(t,"then",r)}isElseKeyword(e,t){const r=e.toLowerCase();return"else"===r||this.profileKeywordMatches(t,"else",r)}isEndKeyword(e,t){const r=e.toLowerCase(),i=function(e){return ey[e]}(t);return i?"end"===r||i.has(r):"end"===r||this.profileKeywordMatches(t,"end",r)}isJsKeyword(e){const t=(e.normalized??e.value).toLowerCase();return"js"===t||this.profileKeywordMatches("en","js",t)}isPatientMarker(e,t){const r=_t(t)?.roleMarkers?.patient;if(!r?.primary)return!1;const i=e.value.toLowerCase();return r.primary.toLowerCase()===i||!!r.alternatives?.some(e=>e.toLowerCase()===i)}isJsBlockTerminator(e,t){return this.isEndKeyword(e,t)||this.profileKeywordMatches(t,"end",e.toLowerCase())}consumeVerbFinalJsBlock(e,t){const r=e.mark();let i=0,a=-1;for(;;){const r=e.peek(i);if(!r)break;if(this.isThenKeyword(r.value,t)||this.isJsBlockTerminator(r.value,t))break;if(this.isJsKeyword(r)){const n=e.peek(i+1),o=!!n&&void 0!==r.position?.end&&r.position.end===n.position?.start&&this.profileKeywordMatches(t,"js",`${r.value}${n.value}`.toLowerCase()),s=e.peek(i+(o?2:1));if(i>0&&s&&this.isJsBlockTerminator(s.value,t)){a=i;break}}i++}if(0>=a)return null;const n=[];for(let t=0;a>t;t++){const r=e.peek(t);r&&n.push(r)}const o=n[n.length-1];if(o&&this.isPatientMarker(o,t)&&n.pop(),0===n.length)return e.reset(r),null;const s=this.rawJsBody(n);for(let t=0;a>t;t++)e.advance();e.advance();const l=e.peek();return l&&!this.isJsBlockTerminator(l.value,t)&&e.advance(),e.advance(),Ku("js",{patient:{type:"expression",raw:s||"()"}},{sourceLanguage:t,patternId:"js-opaque-final-"+t,confidence:1})}consumeJsBlock(e,t){const r=e.peek();if(!r||!this.isJsKeyword(r))return null;const i=e.mark(),a=[];e.advance();const n=e.peek();n&&void 0!==r.position?.end&&r.position.end===n.position?.start&&this.profileKeywordMatches(t,"js",`${r.value}${n.value}`.toLowerCase())&&e.advance();const o=e.peek();o&&this.isPatientMarker(o,t)&&e.advance();let s=!1;for(;!e.isAtEnd();){const r=e.peek();if(!r)break;if(e.advance(),this.isJsBlockTerminator(r.value,t)){s=!0;break}a.push(r)}if(!s)return e.reset(i),null;return Ku("js",{patient:{type:"expression",raw:this.rawJsBody(a)||"()"}},{sourceLanguage:t,patternId:"js-opaque-"+t,confidence:1})}rawJsBody(e){if(0===e.length)return"";const t=e[0].position?.start,r=e[e.length-1].position?.end,i=this.positionSource;if(void 0!==i&&void 0!==t&&void 0!==r){const a=i.slice(t,r),n=e=>e.replace(/\s+/g,"");if(n(a)===n(e.map(e=>e.value).join("")))return a.trim()}let a="";for(let t=0;e.length>t;t++){const r=e[t-1];t>0&&!(void 0!==r?.position?.end&&e[t].position?.start===r.position.end)&&(a+=" "),a+=e[t].value}return a.trim()}isIfKeyword(e,t){const r=e.toLowerCase();return"if"===r||this.profileKeywordMatches(t,"if",r)}isUnlessKeyword(e,t){const r=e.toLowerCase();return"unless"===r||this.profileKeywordMatches(t,"unless",r)}tryParseUnlessGuard(e,t,r){const i=e.peek();if(!i)return null;if(!this.isUnlessKeyword((i.normalized??i.value).toLowerCase(),r))return null;const a=e.mark(),n=this.tryParseConditionalBlock(e,t,r,!0);if(!n||"conditional"!==n.kind)return e.reset(a),null;const o=n;if(o.elseBranch&&o.elseBranch.length>0)return e.reset(a),null;const s=o.roles.get("condition");if(!s)return e.reset(a),null;return[Ku("unless",{condition:s},{sourceLanguage:r,patternId:`unless-${r}-guard`,confidence:1}),...o.thenBranch]}isBlockEndToken(e,t,r){const i=t.next;return(this.isEndKeyword(e.value,r)||"keyword"===e.kind&&"end"===(e.normalized??"").toLowerCase()&&!(i&&"selector"===i.kind))&&!iv(t,r)}opensNestedBlock(e,t,r){const i=(e.normalized??e.value).toLowerCase();return this.isIfKeyword(i,r)?!(t&&this.isElseKeyword(t.value,r)):!!this.isUnlessKeyword(i,r)||("repeat"===i?"keyword"===e.kind||"identifier"===e.kind:"for"===i&&"keyword"===e.kind&&!(t&&Kh(t)))}tryParseConditionalBlock(t,r,i,a=!1){const n=t.peek();if(!n)return null;const o=(n.normalized??n.value).toLowerCase();if(!(this.isIfKeyword(o,i)||a&&this.isUnlessKeyword(o,i)))return null;const s=t.mark(),l=this.coverageMark();t.advance();const p=t.tokens,m=t.position(),c=[];let d=0;for(;!t.isAtEnd();){const e=t.peek();if(!e)break;if(0<c.length&&this.opensNestedBlock(e,Ih(c,c.length),i))d++,c.push(e),t.advance();else if(this.isBlockEndToken(e,Uy(t.tokens,t.position()),i)){if(0===d){t.advance();break}d--,c.push(e),t.advance()}else c.push(e),t.advance()}if(0===c.length)return t.reset(s),this.coverageRollback(l),null;const u=_t(i),y="SOV"===u?.wordOrder?e.buildVerbLookup(u):null;let v=0,f=0;const h=[];for(;c.length>v;v++){const t=c[v],a=(t.normalized??t.value).toLowerCase();if(v>0&&(this.isIfKeyword(a,i)||this.isUnlessKeyword(a,i))?f++:this.isBlockEndToken(t,Uy(p,m+v),i)&&f--,0===f&&this.isThenAt(t,Uy(p,m+v),i)){v++;break}if(0===f&&h.length>0){const a=(t.normalized??t.value).toLowerCase(),n=vv(c[v-1],t,1===h.length,i),o=null!==y&&y.has(t.value.toLowerCase())&&!yv.has(a),s=/^\.[a-zA-Z_]\w*$/.test(t.value)&&void 0!==c[v-1].position?.end&&void 0!==t.position?.start&&c[v-1].position.end===t.position.start;if(!e.CONDITION_OPERATORS.has(a)&&!s&&(!n||o)&&(this.tokensBeginCommand(c.slice(v),r,i)||this.sovCommandStartsAt(c.slice(v),y)))break}h.push(t)}if(0===h.length)return t.reset(s),this.coverageRollback(l),null;const g=[],k=[];let z=!1,w=0;for(;c.length>v;v++){const e=c[v];this.opensNestedBlock(e,Ih(c,v),i)?w++:this.isBlockEndToken(e,Uy(p,m+v),i)&&w--,0!==w||z||!this.isElseKeyword(e.value,i)?(z?k:g).push(e):z=!0}const b={type:"expression",raw:this.joinTokenText(h,i)},x=this.parseBranch(g,r,i),T=k.length>0?this.parseBranch(k,r,i):void 0;return 0!==x.length||T&&0!==T.length?Fu(b,x,T,{sourceLanguage:i,patternId:`conditional-${i}-folded`,confidence:1}):(t.reset(s),this.coverageRollback(l),null)}joinTokenText(e,t){return nv(e,_t(t))}tokensBeginCommand(e,r,i){if(0===e.length)return!1;const a=new t(e,i);return null!==Kv.matchBest(a,r)}sovCommandStartsAt(e,t){if(!t)return!1;const r=e=>t.has(e.value.toLowerCase())||!!e.normalized&&t.has(e.normalized.toLowerCase()),i=e=>"identifier"===e.kind||"selector"===e.kind||"literal"===e.kind||"reference"===e.kind;let a=0,n=0;for(;e.length>a+1;){const t=e[a+1];if(!i(e[a])||"particle"!==t.kind)break;n+=1,a+=2;const o=e[a];if(n>=1&&o&&r(o))return!0}return!1}parseBranch(e,r,i){if(0===e.length)return[];const a=new t(e,i),n=this.parseBodyWithClauses(a,r,i);return 1===n.length&&"compound"===n[0]?.kind?n[0].statements:n}extractStandaloneModifiers(t,r){const i=Fv(t,r).tokens;if(0===i.length)return{modifiers:null,remainingInput:null};const a=i[0].value.toLowerCase();if("on"===a&&"first"===(n=1,i[n]?.value.toLowerCase())&&i.length>2)return{modifiers:{once:!0,onceAsFirst:!0},remainingInput:t.slice(0,i[1].position.start)+t.slice(i[2].position.start)};var n;if("first"===a&&(e=>!!i[e]&&"selector"!==i[e].kind)(1))return{modifiers:{once:!0,onceAsFirst:!0},remainingInput:t.slice(i[1].position.start)};const o=e.STANDALONE_MODIFIERS[a];if(!o)return{modifiers:null,remainingInput:null};const s={};let l=1;if("once"===o)s.once=!0;else{let e=1;if(i.length>e){const t=i[e],r=i[e+1];("keyword"===t.kind||"particle"===t.kind||"identifier"===t.kind&&"literal"===r?.kind&&/^\d+(ms|s|m)?$/.test(r.value))&&(e++,l++)}if(i.length>e){const t=i[e];if("literal"===t.kind){const r=t.value.match(/^(\d+)(ms|s|m)?$/);if(r){let t=parseInt(r[1],10);const i=r[2]||"ms";"s"===i?t*=1e3:"m"===i&&(t*=6e4),s[o]=t,l=e+1}}}s[o]||(s[o]="debounce"===o?300:100)}const p=i.slice(l);if(0===p.length)return{modifiers:null,remainingInput:null};return{modifiers:s,remainingInput:t.slice(p[0].position.start)}}stripAsyncModifier(e,t){const r=_t(t)?.keywords?.async,i=new Set(["async"]);r?.primary&&i.add(r.primary.toLowerCase()),r?.alternatives?.forEach(e=>i.add(e.toLowerCase()));const a=Fv(e,t).tokens,n=a.findIndex(e=>i.has(e.value.toLowerCase()));if(-1===n)return{remainingInput:null};const o=a[n],s=(e.slice(0,o.position.start)+e.slice(o.position.end)).replace(/\s{2,}/g," ").trim();return 0===s.length?{remainingInput:null}:{remainingInput:s}}stripDoNotThrowModifier(e,t){const r=Fv(e,t).tokens;for(let t=0;r.length-1>t;t++){if("do"!==r[t].value.toLowerCase())continue;let i=-1;for(let e=t+1;t+5>=e&&r.length>e;e++){const t=r[e];if("throw"===t.normalized?.toLowerCase()){i=e;break}const a=t.kind;if("selector"===a||"literal"===a||"reference"===a||"conjunction"===a)break}if(-1===i)continue;const a=r[i].position.end,n=(e.slice(0,r[t].position.start)+e.slice(a)).replace(/\s{2,}/g," ").trim();return 0===n.length?{remainingInput:null}:{remainingInput:n}}return{remainingInput:null}}static droppedTokenCount(e){return(e.diagnostics??[]).filter(e=>"unconsumed-input"===e.code).reduce((e,t)=>e+(parseInt(/left (\d+) token/.exec(t.message)?.[1]??"0",10)||0),0)}static unconsumedSpans(e){return(e.diagnostics??[]).filter(e=>"unconsumed-input"===e.code).map(e=>/unconsumed: "(.*)"$/.exec(e.message)?.[1]).filter(e=>!!e).map(e=>e.replace(/\s+/g," ").trim())}static withoutSpanDiagnostics(e,t){return{...e,diagnostics:(e.diagnostics??[]).filter(e=>{if("unconsumed-input"!==e.code)return!0;const r=/unconsumed: "(.*)"$/.exec(e.message)?.[1];return!r||r.replace(/\s+/g," ").trim()!==t})}}static sourceNounValue(e){if("selector"===e.kind)return qu(e.value);const t=(e.normalized??e.value).toLowerCase();return Ru(t)?{type:"reference",value:t}:{type:"literal",value:e.value,dataType:"string"}}reclaimDanglingFromTail(t,r,i){const a=e.droppedTokenCount,n=e.unconsumedSpans(t);if(0===n.length)return null;const o=a(t),s=_t(i)?.roleMarkers?.source,l=new Set;s?.primary&&l.add(s.primary),s?.alternatives?.forEach(e=>l.add(e));const p=Fv(r,i).tokens;for(let t=0;p.length>t;t++){const m=p[t];if("source"!==m.normalized&&!l.has(m.value))continue;const c=p["after"===s?.position?t-1:t+1];if(!c||"identifier"!==c.kind&&"keyword"!==c.kind)continue;const d=Math.min(m.position.start,c.position.start),u=Math.max(m.position.end,c.position.end),y=r.slice(d,u).replace(/\s+/g," ").trim();if(!n.some(e=>e===y||e.includes(y)))continue;const v=(r.slice(0,d).trimEnd()+" "+r.slice(u).trimStart()).trim();if(v&&v!==r)try{const t=this.parse(v,i);if(!t||"event-handler"!==t.kind)continue;const r=og(t);if(a(r)<o)return{node:{...r,eventModifiers:{...r.eventModifiers,from:e.sourceNounValue(c)}},input:v}}catch{}}return null}reclaimEventCompoundTail(t,r,i){const a=e.unconsumedSpans(t);if(0===a.length)return null;const n=$m[i];if(!n)return null;const o=t.roles,s=o.get("event"),l="literal"===s?.type&&"string"==typeof s.value?s.value:null;if(!l)return null;const p=e=>e.replace(/\s+/g," ").trim(),m=Fv(r,i).tokens;for(const i of a)for(let a=1;m.length>a;a++)for(let s=a;m.length>s;s++){const c=p(r.slice(m[a].position.start,m[s].position.end));if(c.length>i.length)break;if(c!==i)continue;const d=m[a-1];if((n[d.value]??d.normalized)!==l)break;const u=n[p(r.slice(d.position.start,m[s].position.end))];if(!u)break;return o.set("event",{type:"literal",value:u,dataType:"string"}),{node:e.withoutSpanDiagnostics(t,i),input:r}}return null}reclaimResponseTypeTail(t,r,i){const a=e.unconsumedSpans(t);if(0===a.length)return null;const n=e.AS_MARKERS_BEFORE[i];if(!n)return null;const o=e=>e.replace(/\s+/g," ").trim(),s=e.droppedTokenCount(t),l=Fv(r,i).tokens;for(let t=0;l.length>t+1;t++){const p=l[t],m=l[t+1];if(!n.some(e=>p.value.toLowerCase()===e))continue;if(!e.RESPONSE_TYPE_WORDS.has(m.value.toLowerCase()))continue;const c=o(r.slice(p.position.start,m.position.end));if(!a.includes(c))continue;const d=(r.slice(0,p.position.start).trimEnd()+" "+r.slice(m.position.end).trimStart()).trim();if(d&&d!==r)try{const t=this.parse(d,i);if(!t||"event-handler"!==t.kind)continue;const r=og(t);if(e.droppedTokenCount(r)>=s)continue;const a=e.findResponseTypeTarget(r);if(!a)continue;return a.roles.set("responseType",{type:"expression",raw:m.value}),{node:r,input:d}}catch{}}return null}static findResponseTypeTarget(e){let t=null;const r=e=>{if(!e||"object"!=typeof e||t)return;if("command"===e.kind){const r=e,i=ct(r.action);if(i?.roles.some(e=>"responseType"===e.role&&!e.required)&&!r.roles.has("responseType"))return void(t=r)}const i=e;for(const e of["body","statements","thenBranch","elseBranch","commands"]){const t=i[e];Array.isArray(t)&&t.forEach(e=>r(e))}};return r(e),t}reclaimCapturedDestinationTail(t,r,i){const a=e.unconsumedSpans(t);if(0===a.length)return null;const n=_t(i)?.roleMarkers?.destination,o=new Set;if(n?.primary&&o.add(n.primary),n?.alternatives?.forEach(e=>o.add(e)),0===o.size)return null;const s=e=>e.replace(/\s+/g," ").trim(),l=Fv(r,i).tokens;for(let i=0;l.length>i+1;i++){const n=l[i],p=l[i+1],m=o.has(n.value)&&"me"===p.normalized,c="me"===n.normalized&&o.has(p.value);if(!m&&!c)continue;const d=s(r.slice(n.position.start,p.position.end));if(!a.includes(d))continue;let u=!1;const y=e=>{if(!e||"object"!=typeof e||u)return;if("command"===e.kind){const t=e.roles.get("destination");if("reference"===t?.type&&"me"===t.value)return void(u=!0)}const t=e;for(const e of["body","statements","thenBranch","elseBranch","commands"]){const r=t[e];Array.isArray(r)&&r.forEach(e=>y(e))}};if(y(t),u)return{node:e.withoutSpanDiagnostics(t,d),input:r}}return null}applyModifiers(e,t){return{...e,eventModifiers:{...e.eventModifiers,...t}}}extractOrConjunctionEvents(e,t){const r=[];for(;;){const i=e.mark(),a=e.peek();if(!a)break;if(!Xv(a,t)){e.reset(i);break}e.advance();const n=e.peek();if(!n){e.reset(i);break}const o=n.normalized||n.value;e.advance(),r.push({type:"literal",value:o})}return r}};mg.coverageMarkerSurfaces=new Map,mg.LEAKED_RENDER_MARKERS={hi:["\u0915\u0947","\u0930\u0942\u092a","\u092e\u0947\u0902"],tr:["olarak"],qu:["hina"]},mg.AS_MARKERS_BEFORE={en:["as"],es:["como"],fr:["comme"],pt:["como"],it:["come"],de:["als"],id:["sebagai"],ms:["sebagai","sbg"],sw:["kuwa","kama"],th:["\u0e40\u0e1b\u0e47\u0e19"],vi:["nh\u01b0"],tl:["bilang"],he:["\u05db"],ar:["\u0643\u0640"],pl:["jako"],ru:["\u043a\u0430\u043a"],uk:["\u044f\u043a"],zh:["\u7684","\u4f5c\u4e3a","\u5f53\u4f5c"]},mg.AS_MARKERS_AFTER={ko:[["\ub85c"],["\uc73c\ub85c"]],qu:[["hina"]],tr:[["olarak"]],hi:[["\u0915\u0947","\u0930\u0942\u092a","\u092e\u0947\u0902"]]},mg.enEventKeywordCache=new Map,mg.KNOWN_EVENTS=new Set(["click","dblclick","input","change","submit","keydown","keyup","keypress","mouseover","mouseout","mousedown","mouseup","focus","blur","load","scroll","resize","contextmenu"]),mg.RESPONSE_TYPE_WORDS=new Set(["json","text","html","xml","blob","arraybuffer","formdata","response"]),mg.SOV_EVENT_MARKERS={ja:new Set(["\u3067"]),ko:new Set,tr:new Set(["de","da","te","ta"]),bn:new Set(["\u098f"]),qu:new Set(["pi"]),hi:new Set(["\u092a\u0930"])},mg.SOV_EVENT_MARKER_PHRASES={ko:[["\ud560","\ub54c"],["\ud560\ub54c"]]},mg.SOV_SOURCE_MARKERS={ja:{markers:new Set(["\u304b\u3089"]),windowTokens:new Set(["\u30a6\u30a3\u30f3\u30c9\u30a6","\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8","window","document"])},ko:{markers:new Set(["\uc5d0\uc11c"]),windowTokens:new Set(["\ucc3d","\uc708\ub3c4\uc6b0","\ubb38\uc11c","window","document"])},tr:{markers:new Set(["den","dan","ten","tan"]),windowTokens:new Set(["pencere","belge","window","document"])},bn:{markers:new Set(["\u09a5\u09c7\u0995\u09c7","\u09ae\u09a7\u09cd\u09af\u09c7"]),windowTokens:new Set(["\u0989\u0987\u09a8\u09cd\u09a1\u09cb","\u09a1\u0995\u09c1\u09ae\u09c7\u09a8\u09cd\u099f","window","document"])},qu:{markers:new Set(["manta"]),windowTokens:new Set(["k_iri","ventana","window","document"])},hi:{markers:new Set(["\u0938\u0947"]),windowTokens:new Set(["\u0935\u093f\u0902\u0921\u094b","\u0926\u0938\u094d\u0924\u093e\u0935\u0947\u091c\u093c","window","document"])}},mg.CONDITION_OPERATORS=new Set(["matches","match","contains","exists","has","have","equals","includes"]),mg.STANDALONE_MODIFIERS={once:"once",debounced:"debounce",debounce:"debounce",throttled:"throttle",throttle:"throttle"};var cg=mg,dg=new cg;function ug(e,t){return dg.parse(e,t)}function yg(e,t){return dg.canParse(e,t)}function vg(e,t){try{return dg.parse(e,t).action}catch{return null}}function fg(){const e={};for(const[t,r]of Object.entries(cg.SOV_EVENT_MARKERS))e[t]=[...r];for(const[t,r]of Object.entries(cg.SOV_EVENT_MARKER_PHRASES))e[t]=[...e[t]??[],...r.map(e=>e.join(" "))];return e}function hg(e,t){if(o(e))return e;return mh(ug(e,t))}function gg(e,t){return Wh(qh(e),t)}function kg(e,t,r){if(o(e))return gg(e,r);return Wh(ug(e,t),r)}function zg(e,t){return o(e)?qh(e):ug(e,t)}function wg(e,t,r){const i=zg(e,t),a=r??t,n=o(e)?mh(i):Wh(i,a);if(void 0!==r)return n;const s=e.trim().toLowerCase(),l=n.trim().toLowerCase();return{original:e,semantic:i,rendered:n,matches:s===l}}function bg(e,t,r=Wt()){return xg(e,t,r).translations}function xg(e,t,r=Wt()){const i={},a={},n=zg(e,t);for(const e of r)try{i[e]=Wh(n,e)}catch(t){a[e]=t instanceof Error?t.message:t+""}return i.explicit=mh(n),{translations:i,failed:a}}function Tg(e,t,r,i){try{const a=zg(e,r),n=zg(t,i);if(a.action!==n.action)return!1;for(const[e,t]of a.roles){const r=n.roles.get(e);if(!r)return!1;if(!Sg(t,r))return!1}return!0}catch{return!1}}function Sg(e,t){if(e.type!==t.type)return!1;switch(e.type){case"literal":case"selector":case"reference":return e.value===t.value;case"property-path":return Sg(e.object,t.object)&&e.property===t.property;case"expression":return e.raw===t.raw;case"flag":return e.name===t.name&&e.enabled===t.enabled;default:return!1}}Rt();var jg=class{constructor(e={}){this.cache=new Map,this.config={maxSize:e.maxSize??1e3,ttlMs:e.ttlMs??0,enabled:e.enabled??!0},this.stats={hits:0,misses:0,evictions:0,expirations:0}}makeKey(e,t){return`${t}:${e}`}isExpired(e){return 0!==this.config.ttlMs&&Date.now()-e.createdAt>this.config.ttlMs}evictLRU(){const e=this.cache.keys().next().value;void 0!==e&&(this.cache.delete(e),this.stats.evictions++)}get(e,t){if(!this.config.enabled)return void this.stats.misses++;const r=this.makeKey(e,t),i=this.cache.get(r);if(i)return this.isExpired(i)?(this.cache.delete(r),this.stats.expirations++,void this.stats.misses++):(this.cache.delete(r),i.lastAccessed=Date.now(),this.cache.set(r,i),this.stats.hits++,i.result);this.stats.misses++}set(e,t,r){if(!this.config.enabled)return;if(null!==r&&"object"==typeof r&&"confidence"in r&&0===r.confidence)return;const i=this.makeKey(e,t),a=Date.now();for(;this.cache.size>=this.config.maxSize;)this.evictLRU();this.cache.set(i,{result:r,createdAt:a,lastAccessed:a})}has(e,t){if(!this.config.enabled)return!1;const r=this.makeKey(e,t),i=this.cache.get(r);return!!i&&(!this.isExpired(i)||(this.cache.delete(r),this.stats.expirations++,!1))}delete(e,t){const r=this.makeKey(e,t);return this.cache.delete(r)}clear(){this.cache.clear()}resetStats(){this.stats={hits:0,misses:0,evictions:0,expirations:0}}getStats(){const e=this.stats.hits+this.stats.misses;return{hits:this.stats.hits,misses:this.stats.misses,size:this.cache.size,maxSize:this.config.maxSize,hitRate:e>0?this.stats.hits/e:0,evictions:this.stats.evictions,expirations:this.stats.expirations,enabled:this.config.enabled}}configure(e){if(void 0!==e.maxSize)for(this.config.maxSize=e.maxSize;this.cache.size>this.config.maxSize;)this.evictLRU();void 0!==e.ttlMs&&(this.config.ttlMs=e.ttlMs),void 0!==e.enabled&&(this.config.enabled=e.enabled)}enable(){this.config.enabled=!0}disable(){this.config.enabled=!1}getConfig(){return{...this.config}}},Eg=new jg;function Lg(e){return new jg(e)}function Cg(e,t=Eg){return(r,i)=>{const a=t.get(r,i);if(a)return a;const n=e(r,i);return t.set(r,i,n),n}}Io(),It(),Et("ar",Wo,Ot),zm(),Bt(),Et("bn",ym,$t),bl(),Ht(),Et("de",vl,Vt),Qn(),Zt(),Cd(),Et("en",Hn,Ft),Lt("en",Ld()),ts(),Qt(),Et("es",Yo,Gt),sl(),tr(),Et("fr",Js,Xt),Jp(),ar(),Et("he",Gp,er),pm(),sr(),Et("hi",am,ir),jl(),mr(),Et("id",wl,or),pp(),ur(),Et("it",np,pr),uo(),fr(),Et("ja",oo,dr),jo(),kr(),Et("ko",go,vr),Wm(),br(),Et("ms",Tm,gr),Lp(),Sr(),Et("pl",bp,wr),Fs(),Lr(),Et("pt",Os,Tr),Bl(),_r(),Et("qu",Ol,Er),Np(),qr(),Et("ru",Ap,Pr),Xl(),Rr(),Et("sw",Vl,Ar),Sm(),Ir(),Et("th",km,Or),Vm(),Br(),Et("tl",Om,$r),gs(),Hr(),Et("tr",cs,Vr),Zp(),Zr(),Et("uk",Vp,Fr),xp(),Qr(),Et("vi",yp,Gr),js(),ti(),Et("zh",hs,Xr);_u("ar",{events:{blur:{primary:"\u0636\u0628\u0627\u0628\u064a\u0629"},change:{primary:"\u062a\u063a\u064a\u064a\u0631"},click:{primary:"\u0646\u0642\u0631"},dblclick:{primary:"dblclick"},focus:{primary:"\u062a\u0631\u0643\u064a\u0632"},input:{primary:"\u0625\u062f\u062e\u0627\u0644"},keydown:{primary:"\u0645\u0641\u062a\u0627\u062d \u0623\u0633\u0641\u0644"},keypress:{primary:"keypress"},keyup:{primary:"\u0645\u0641\u062a\u0627\u062d \u0623\u0639\u0644\u0649"},load:{primary:"\u062a\u062d\u0645\u064a\u0644"},mousedown:{primary:"mousedown"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mousemove:{primary:"mousemove"},mouseout:{primary:"mouseout"},mouseover:{primary:"\u0641\u0623\u0631\u0629 \u0641\u0648\u0642"},mouseup:{primary:"mouseup"},reset:{primary:"reset"},resize:{primary:"\u062a\u063a\u064a\u064a\u0631 \u062d\u062c\u0645"},scroll:{primary:"\u062a\u0645\u0631\u064a\u0631"},submit:{primary:"\u0625\u0631\u0633\u0627\u0644"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"unload"}},logical:{and:{primary:"\u0648"},bind:{primary:"\u0627\u0631\u0628\u0637"},changes:{primary:"\u064a\u062a\u063a\u064a\u0631"},contains:{primary:"\u064a\u062d\u062a\u0648\u064a"},else:{primary:"\u0648\u0625\u0644\u0627"},end:{primary:"\u0627\u0644\u0646\u0647\u0627\u064a\u0629"},equals:{primary:"\u064a\u0633\u0627\u0648\u064a"},exists:{primary:"\u0645\u0648\u062c\u0648\u062f"},has:{primary:"\u0644\u062f\u064a\u0647"},have:{primary:"\u0644\u062f\u064a"},includes:{primary:"\u064a\u0634\u0645\u0644"},is:{primary:"\u0647\u0648"},live:{primary:"\u062d\u064a"},matches:{primary:"\u064a\u0637\u0627\u0628\u0642"},not:{primary:"\u0644\u064a\u0633"},or:{primary:"\u0623\u0648"},otherwise:{primary:"\u062e\u0644\u0627\u0641 \u0630\u0644\u0643"},then:{primary:"\u062b\u0645"},when:{primary:"\u0639\u0646\u062f\u0645\u0627"},where:{primary:"\u0623\u064a\u0646"}},temporal:{h:{primary:"\u0633"},hour:{primary:"\u0633\u0627\u0639\u0629"},hours:{primary:"\u0633\u0627\u0639\u0627\u062a"},millisecond:{primary:"\u0645\u064a\u0644\u064a \u062b\u0627\u0646\u064a\u0629"},milliseconds:{primary:"\u0645\u064a\u0644\u064a \u062b\u0627\u0646\u064a\u0629"},min:{primary:"\u062f"},minute:{primary:"\u062f\u0642\u064a\u0642\u0629"},minutes:{primary:"\u062f\u0642\u0627\u0626\u0642"},ms:{primary:"\u0645.\u062b"},s:{primary:"\u062b"},second:{primary:"\u062b\u0627\u0646\u064a\u0629"},seconds:{primary:"\u062b\u0648\u0627\u0646\u0650"},times:{primary:"\u0645\u0631\u0627\u062a"}},values:{body:{primary:"\u062c\u0633\u0645"},detail:{primary:"\u062a\u0641\u0627\u0635\u064a\u0644"},document:{primary:"\u0648\u062b\u064a\u0642\u0629"},element:{primary:"\u0639\u0646\u0635\u0631"},event:{primary:"\u062d\u062f\u062b"},false:{primary:"\u062e\u0637\u0623"},it:{primary:"\u0647\u0648"},its:{primary:"\u0644\u0647"},me:{primary:"\u0623\u0646\u0627"},my:{primary:"\u0644\u064a"},myself:{primary:"\u0646\u0641\u0633\u064a"},null:{primary:"null"},result:{primary:"\u0646\u062a\u064a\u062c\u0629"},target:{primary:"\u0647\u062f\u0641"},true:{primary:"\u0635\u062d\u064a\u062d"},undefined:{primary:"\u063a\u064a\u0631 \u0645\u0639\u0631\u0641"},value:{primary:"\u0642\u064a\u0645\u0629"},window:{primary:"\u0646\u0627\u0641\u0630\u0629"},you:{primary:"\u0623\u0646\u062a"},your:{primary:"\u0644\u0643"},yourself:{primary:"\u0646\u0641\u0633\u0643"}},attributes:{attribute:{primary:"\u062e\u0627\u0635\u064a\u0629"},attributes:{primary:"\u062e\u0635\u0627\u0626\u0635"},class:{primary:"\u0641\u0626\u0629"},classes:{primary:"\u0641\u0626\u0627\u062a"},properties:{primary:"\u062e\u0635\u0627\u0626\u0635"},property:{primary:"\u062e\u0627\u0635\u064a\u0629"},style:{primary:"\u0623\u0633\u0644\u0648\u0628"},styles:{primary:"\u0623\u0633\u0627\u0644\u064a\u0628"}},expressions:{at:{primary:"\u0639\u0646\u062f"},characters:{primary:"\u062d\u0631\u0648\u0641"},children:{primary:"\u0623\u0637\u0641\u0627\u0644"},closest:{primary:"\u0627\u0644\u0623\u0642\u0631\u0628"},empty:{primary:"\u0641\u0627\u0631\u063a"},"ends with":{primary:"\u064a\u0646\u062a\u0647\u064a \u0628\u0640"},exclusive:{primary:"\u062d\u0635\u0631\u064a"},first:{primary:"\u0623\u0648\u0644"},"ignoring case":{primary:"\u0645\u0639 \u062a\u062c\u0627\u0647\u0644 \u0627\u0644\u062d\u0627\u0644\u0629"},inclusive:{primary:"\u0634\u0627\u0645\u0644"},"joined by":{primary:"\u0645\u062f\u0645\u0648\u062c \u0628\u0648\u0627\u0633\u0637\u0629"},last:{primary:"\u0622\u062e\u0631"},"mapped to":{primary:"\u0645\u062d\u0648\u0644 \u0625\u0644\u0649"},next:{primary:"\u0627\u0644\u062a\u0627\u0644\u064a"},no:{primary:"\u0644\u0627 \u064a\u0648\u062c\u062f"},parent:{primary:"\u0648\u0627\u0644\u062f"},prev:{primary:"\u0633\u0627\u0628\u0642"},previous:{primary:"\u0627\u0644\u0633\u0627\u0628\u0642"},random:{primary:"\u0639\u0634\u0648\u0627\u0626\u064a"},some:{primary:"\u0628\u0639\u0636"},"sorted by":{primary:"\u0645\u0631\u062a\u0628 \u062d\u0633\u0628"},"split by":{primary:"\u0645\u0642\u0633\u0645 \u0628\u0648\u0627\u0633\u0637\u0629"},"starts with":{primary:"\u064a\u0628\u062f\u0623 \u0628\u0640"},within:{primary:"\u062f\u0627\u062e\u0644"}}});_u("bn",{events:{blur:{primary:"\u099d\u09be\u09aa\u09b8\u09be"},change:{primary:"\u09aa\u09b0\u09bf\u09ac\u09b0\u09cd\u09a4\u09a8"},click:{primary:"\u0995\u09cd\u09b2\u09bf\u0995"},every:{primary:"\u09aa\u09cd\u09b0\u09a4\u09bf"},focus:{primary:"\u09ab\u09cb\u0995\u09be\u09b8"},input:{primary:"\u0987\u09a8\u09aa\u09c1\u099f"},keydown:{primary:"keydown"},keyup:{primary:"keyup"},load:{primary:"\u09b2\u09cb\u09a1"},mouseout:{primary:"mouseout"},mouseover:{primary:"mouseover"},reset:{primary:"\u09b0\u09bf\u09b8\u09c7\u099f"},resize:{primary:"\u09b0\u09bf\u09b8\u09be\u0987\u099c"},scroll:{primary:"\u09b8\u09cd\u0995\u09cd\u09b0\u09cb\u09b2"},submit:{primary:"\u099c\u09ae\u09be"}},logical:{and:{primary:"\u098f\u09ac\u0982"},bind:{primary:"\u09ac\u09be\u0987\u09a8\u09cd\u09a1"},changes:{primary:"\u09aa\u09b0\u09bf\u09ac\u09b0\u09cd\u09a4\u09bf\u09a4 \u09b9\u09b2\u09c7"},else:{primary:"\u09a8\u09a4\u09c1\u09ac\u09be"},empty:{primary:"\u0996\u09be\u09b2\u09bf"},end:{primary:"\u09b6\u09c7\u09b7"},exists:{primary:"\u0986\u099b\u09c7"},false:{primary:"\u09ae\u09bf\u09a5\u09cd\u09af\u09be"},has:{primary:"\u0986\u099b\u09c7"},have:{primary:"\u0986\u099b\u09bf"},if:{primary:"\u09af\u09a6\u09bf"},is:{primary:"\u09b9\u09af\u09bc"},live:{primary:"\u09b2\u09be\u0987\u09ad"},not:{primary:"\u09a8\u09be"},null:{primary:"\u09b6\u09c2\u09a8\u09cd\u09af"},or:{primary:"\u0985\u09a5\u09ac\u09be"},then:{primary:"\u09a4\u09be\u09b0\u09aa\u09b0"},true:{primary:"\u09b8\u09a4\u09cd\u09af"},undefined:{primary:"\u0985\u09a8\u09bf\u09b0\u09cd\u09a7\u09be\u09b0\u09bf\u09a4"},when:{primary:"\u09af\u0996\u09a8"},where:{primary:"\u0995\u09cb\u09a5\u09be\u09af\u09bc"}},temporal:{forever:{primary:"\u099a\u09bf\u09b0\u0995\u09be\u09b2"},hours:{primary:"\u0998\u09a3\u09cd\u099f\u09be"},milliseconds:{primary:"\u09ae\u09bf\u09b2\u09bf\u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1"},minutes:{primary:"\u09ae\u09bf\u09a8\u09bf\u099f"},ms:{primary:"\u09ae\u09bf\u09b8\u09c7"},now:{primary:"\u098f\u0996\u09a8"},s:{primary:"\u09b8\u09c7"},seconds:{primary:"\u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1"},times:{primary:"\u09ac\u09be\u09b0"}},values:{body:{primary:"\u09ac\u09a1\u09bf"},event:{primary:"\u0998\u099f\u09a8\u09be"},it:{primary:"\u098f\u099f\u09bf"},its:{primary:"\u098f\u09b0"},me:{primary:"\u0986\u09ae\u09bf"},my:{primary:"\u0986\u09ae\u09be\u09b0"},result:{primary:"\u09ab\u09b2\u09be\u09ab\u09b2"},target:{primary:"\u09b2\u0995\u09cd\u09b7\u09cd\u09af"},you:{primary:"\u0986\u09aa\u09a8\u09bf"},your:{primary:"\u09a4\u09cb\u09ae\u09be\u09b0"}},attributes:{checked:{primary:"\u099a\u09c7\u0995 \u0995\u09b0\u09be"},class:{primary:"\u09b6\u09cd\u09b0\u09c7\u09a3\u09bf"},disabled:{primary:"\u0985\u0995\u09cd\u09b7\u09ae"},html:{primary:"\u098f\u0987\u099a\u099f\u09bf\u098f\u09ae\u098f\u09b2"},id:{primary:"\u0986\u0987\u09a1\u09bf"},style:{primary:"\u09b6\u09c8\u09b2\u09c0"},text:{primary:"\u09aa\u09be\u09a0\u09cd\u09af"},value:{primary:"\u09ae\u09be\u09a8"}},expressions:{characters:{primary:"\u0985\u0995\u09cd\u09b7\u09b0"},children:{primary:"\u09b8\u09a8\u09cd\u09a4\u09be\u09a8"},closest:{primary:"\u09a8\u09bf\u0995\u099f\u09a4\u09ae"},empty:{primary:"\u0996\u09be\u09b2\u09bf"},"ends with":{primary:"\u09a6\u09bf\u09af\u09bc\u09c7_\u09b6\u09c7\u09b7"},exclusive:{primary:"\u09ac\u09be\u09a6"},first:{primary:"\u09aa\u09cd\u09b0\u09a5\u09ae"},"ignoring case":{primary:"\u0995\u09c7\u09b8_\u0989\u09aa\u09c7\u0995\u09cd\u09b7\u09be"},inclusive:{primary:"\u0985\u09a8\u09cd\u09a4\u09b0\u09cd\u09ad\u09c1\u0995\u09cd\u09a4"},index:{primary:"\u09b8\u09c2\u099a\u0995"},"joined by":{primary:"\u09a6\u09cd\u09ac\u09be\u09b0\u09be_\u09af\u09c1\u0995\u09cd\u09a4"},last:{primary:"\u09b6\u09c7\u09b7"},length:{primary:"\u09a6\u09c8\u09b0\u09cd\u0998\u09cd\u09af"},"mapped to":{primary:"\u09a4\u09c7_\u09b0\u09c2\u09aa\u09be\u09a8\u09cd\u09a4\u09b0\u09bf\u09a4"},next:{primary:"\u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0"},parent:{primary:"\u09ae\u09c2\u09b2"},previous:{primary:"\u0986\u0997\u09c7\u09b0"},random:{primary:"\u098f\u09b2\u09cb\u09ae\u09c7\u09b2\u09cb"},"sorted by":{primary:"\u09a6\u09cd\u09ac\u09be\u09b0\u09be_\u09b8\u09be\u099c\u09be\u09a8\u09cb"},"split by":{primary:"\u09a6\u09cd\u09ac\u09be\u09b0\u09be_\u09ac\u09bf\u09ad\u0995\u09cd\u09a4"},"starts with":{primary:"\u09a6\u09bf\u09af\u09bc\u09c7_\u09b6\u09c1\u09b0\u09c1"}}});_u("de",{events:{blur:{primary:"defokussieren"},change:{primary:"\u00e4ndern"},click:{primary:"klick"},dblclick:{primary:"doppelklick"},focus:{primary:"fokus"},input:{primary:"eingabe"},keydown:{primary:"taste unten"},keypress:{primary:"tastedr\u00fccken"},keyup:{primary:"taste oben"},load:{primary:"laden"},mousedown:{primary:"mousedown"},mouseenter:{primary:"mauseintreten"},mouseleave:{primary:"mausverlassen"},mousemove:{primary:"mausbewegen"},mouseout:{primary:"maus weg"},mouseover:{primary:"maus dr\u00fcber"},mouseup:{primary:"mouseup"},reset:{primary:"zur\u00fccksetzen"},resize:{primary:"gr\u00f6\u00dfen\u00e4nderung"},scroll:{primary:"scrollen"},submit:{primary:"absenden"},touchcancel:{primary:"ber\u00fchrungabbrechen"},touchend:{primary:"ber\u00fchrungend"},touchmove:{primary:"ber\u00fchrungbewegen"},touchstart:{primary:"ber\u00fchrungstart"},unload:{primary:"entladen"}},logical:{and:{primary:"und"},changes:{primary:"\u00e4ndert"},contains:{primary:"enth\u00e4lt"},else:{primary:"sonst"},end:{primary:"ende"},equals:{primary:"gleicht"},exists:{primary:"existiert"},has:{primary:"hat"},have:{primary:"habe"},includes:{primary:"beinhaltet"},is:{primary:"ist"},live:{primary:"live"},matches:{primary:"passt"},not:{primary:"nicht"},or:{primary:"oder"},otherwise:{primary:"andernfalls"},then:{primary:"dann"},when:{primary:"wenn"},where:{primary:"wo"}},temporal:{h:{primary:"std"},hour:{primary:"stunde"},hours:{primary:"stunden"},millisecond:{primary:"millisekunde"},milliseconds:{primary:"millisekunden"},min:{primary:"min"},minute:{primary:"minute"},minutes:{primary:"minuten"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"sekunde"},seconds:{primary:"sekunden"},times:{primary:"mal"}},values:{body:{primary:"k\u00f6rper"},detail:{primary:"detail"},document:{primary:"dokument"},element:{primary:"element"},event:{primary:"ereignis"},false:{primary:"falsch"},it:{primary:"es"},its:{primary:"sein"},me:{primary:"ich"},my:{primary:"mein"},myself:{primary:"ich selbst"},null:{primary:"null"},result:{primary:"ergebnis"},target:{primary:"ziel"},true:{primary:"wahr"},undefined:{primary:"undefiniert"},value:{primary:"wert"},window:{primary:"fenster"},you:{primary:"du"},your:{primary:"dein"},yourself:{primary:"dich selbst"}},attributes:{attribute:{primary:"attribut"},attributes:{primary:"attribute"},class:{primary:"klasse"},classes:{primary:"klassen"},properties:{primary:"eigenschaften"},property:{primary:"eigenschaft"},style:{primary:"stil"},styles:{primary:"stile"}},expressions:{at:{primary:"bei"},characters:{primary:"Zeichen"},children:{primary:"kinder"},closest:{primary:"n\u00e4chstgelegene"},empty:{primary:"leer"},"ends with":{primary:"endet mit"},exclusive:{primary:"exklusiv"},first:{primary:"erste"},"ignoring case":{primary:"ohne Gro\u00df-/Kleinschreibung"},inclusive:{primary:"inklusiv"},"joined by":{primary:"verbunden mit"},last:{primary:"letzte"},"mapped to":{primary:"zugeordnet zu"},next:{primary:"n\u00e4chste"},no:{primary:"kein"},parent:{primary:"elternteil"},prev:{primary:"vorh"},previous:{primary:"vorherige"},random:{primary:"zuf\u00e4llig"},some:{primary:"einige"},"sorted by":{primary:"sortiert nach"},"split by":{primary:"geteilt durch"},"starts with":{primary:"beginnt mit"},within:{primary:"innerhalb"}}});_u("en",{events:{blur:{primary:"blur"},change:{primary:"change"},click:{primary:"click"},dblclick:{primary:"dblclick"},focus:{primary:"focus"},input:{primary:"input"},keydown:{primary:"keydown"},keypress:{primary:"keypress"},keyup:{primary:"keyup"},load:{primary:"load"},mousedown:{primary:"mousedown"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mousemove:{primary:"mousemove"},mouseout:{primary:"mouseout"},mouseover:{primary:"mouseover"},mouseup:{primary:"mouseup"},reset:{primary:"reset"},resize:{primary:"resize"},scroll:{primary:"scroll"},submit:{primary:"submit"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"unload"}},logical:{and:{primary:"and"},changes:{primary:"changes"},contains:{primary:"contains"},else:{primary:"else"},end:{primary:"end"},equals:{primary:"equals"},exists:{primary:"exists"},has:{primary:"has"},have:{primary:"have"},includes:{primary:"includes"},is:{primary:"is"},live:{primary:"live"},matches:{primary:"matches"},not:{primary:"not"},or:{primary:"or"},otherwise:{primary:"otherwise"},then:{primary:"then"},when:{primary:"when"},where:{primary:"where"}},temporal:{h:{primary:"h"},hour:{primary:"hour"},hours:{primary:"hours"},millisecond:{primary:"millisecond"},milliseconds:{primary:"milliseconds"},min:{primary:"min"},minute:{primary:"minute"},minutes:{primary:"minutes"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"second"},seconds:{primary:"seconds"}},values:{body:{primary:"body"},detail:{primary:"detail"},document:{primary:"document"},element:{primary:"element"},event:{primary:"event"},false:{primary:"false"},it:{primary:"it"},its:{primary:"its"},me:{primary:"me"},my:{primary:"my"},myself:{primary:"myself"},null:{primary:"null"},result:{primary:"result"},target:{primary:"target"},true:{primary:"true"},undefined:{primary:"undefined"},value:{primary:"value"},window:{primary:"window"},you:{primary:"you"},your:{primary:"your"},yourself:{primary:"yourself"}},attributes:{attribute:{primary:"attribute"},attributes:{primary:"attributes"},class:{primary:"class"},classes:{primary:"classes"},properties:{primary:"properties"},property:{primary:"property"},style:{primary:"style"},styles:{primary:"styles"}},expressions:{at:{primary:"at"},children:{primary:"children"},closest:{primary:"closest"},empty:{primary:"empty"},"ends with":{primary:"ends with"},first:{primary:"first"},"ignoring case":{primary:"ignoring case"},"joined by":{primary:"joined by"},last:{primary:"last"},"mapped to":{primary:"mapped to"},next:{primary:"next"},no:{primary:"no"},parent:{primary:"parent"},prev:{primary:"prev"},previous:{primary:"previous"},random:{primary:"random"},some:{primary:"some"},"sorted by":{primary:"sorted by"},"split by":{primary:"split by"},"starts with":{primary:"starts with"},within:{primary:"within"}}});_u("es",{events:{blur:{primary:"desenfocar"},change:{primary:"cambiar"},click:{primary:"clic"},dblclick:{primary:"dobleclic"},focus:{primary:"enfocar"},input:{primary:"entrada"},keydown:{primary:"tecla abajo"},keypress:{primary:"teclapresar"},keyup:{primary:"tecla arriba"},load:{primary:"cargar"},mousedown:{primary:"rat\u00f3n abajo"},mouseenter:{primary:"rat\u00f3nentrar"},mouseleave:{primary:"rat\u00f3nsalir"},mousemove:{primary:"rat\u00f3nmover"},mouseout:{primary:"rat\u00f3n fuera"},mouseover:{primary:"rat\u00f3n encima"},mouseup:{primary:"rat\u00f3n arriba"},reset:{primary:"reiniciar"},resize:{primary:"redimensionar"},scroll:{primary:"desplazar"},submit:{primary:"env\u00edo"},touchcancel:{primary:"toquecancelar"},touchend:{primary:"toqueterminar"},touchmove:{primary:"toquemover"},touchstart:{primary:"toqueempezar"},unload:{primary:"descargar"}},logical:{and:{primary:"y"},changes:{primary:"cambia"},contains:{primary:"contiene"},else:{primary:"sino"},end:{primary:"fin"},equals:{primary:"iguala"},exists:{primary:"existe"},has:{primary:"tiene"},have:{primary:"tengo"},includes:{primary:"incluye"},is:{primary:"es"},live:{primary:"vivo"},matches:{primary:"coincide"},not:{primary:"no"},or:{primary:"o"},otherwise:{primary:"delocontrario"},then:{primary:"entonces"},when:{primary:"cuando"},where:{primary:"donde"}},temporal:{h:{primary:"h"},hour:{primary:"hora"},hours:{primary:"horas"},millisecond:{primary:"milisegundo"},milliseconds:{primary:"milisegundos"},min:{primary:"min"},minute:{primary:"minuto"},minutes:{primary:"minutos"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"segundo"},seconds:{primary:"segundos"},times:{primary:"veces"}},values:{body:{primary:"cuerpo"},detail:{primary:"detalle"},document:{primary:"documento"},element:{primary:"elemento"},event:{primary:"evento"},false:{primary:"falso"},it:{primary:"ello"},its:{primary:"su"},me:{primary:"yo"},my:{primary:"mi"},myself:{primary:"yo mismo"},null:{primary:"nulo"},result:{primary:"resultado"},target:{primary:"objetivo"},true:{primary:"verdadero"},undefined:{primary:"indefinido"},value:{primary:"valor"},window:{primary:"ventana"},you:{primary:"tu"},your:{primary:"tu"},yourself:{primary:"ti mismo"}},attributes:{attribute:{primary:"atributo"},attributes:{primary:"atributos"},class:{primary:"clase"},classes:{primary:"clases"},properties:{primary:"propiedades"},property:{primary:"propiedad"},style:{primary:"estilo"},styles:{primary:"estilos"}},expressions:{at:{primary:"en"},characters:{primary:"caracteres"},children:{primary:"hijos"},closest:{primary:"cercano"},empty:{primary:"vac\u00edo"},"ends with":{primary:"termina con"},exclusive:{primary:"exclusivo"},first:{primary:"primero"},"ignoring case":{primary:"ignorando may\u00fasculas"},inclusive:{primary:"inclusivo"},"joined by":{primary:"unido por"},last:{primary:"\u00faltimo"},"mapped to":{primary:"transformado a"},next:{primary:"siguiente"},no:{primary:"ning\u00fan"},parent:{primary:"padre"},prev:{primary:"ant"},previous:{primary:"anterior"},random:{primary:"aleatorio"},some:{primary:"alg\u00fan"},"sorted by":{primary:"ordenado por"},"split by":{primary:"dividido por"},"starts with":{primary:"empieza con"},within:{primary:"dentro"}}});_u("fr",{events:{blur:{primary:"flou"},change:{primary:"changer"},click:{primary:"clic"},dblclick:{primary:"doubleclic"},focus:{primary:"focus"},input:{primary:"saisie"},keydown:{primary:"touche bas"},keypress:{primary:"touchepress\u00e9e"},keyup:{primary:"touche haut"},load:{primary:"charger"},mousedown:{primary:"mousedown"},mouseenter:{primary:"sourisentrer"},mouseleave:{primary:"sourissortir"},mousemove:{primary:"sourisbouger"},mouseout:{primary:"souris dehors"},mouseover:{primary:"souris dessus"},mouseup:{primary:"mouseup"},reset:{primary:"r\u00e9initialiser"},resize:{primary:"redimensionner"},scroll:{primary:"d\u00e9filer"},submit:{primary:"soumettre"},touchcancel:{primary:"toucherannuler"},touchend:{primary:"toucherfin"},touchmove:{primary:"toucherbouger"},touchstart:{primary:"touchercommencer"},unload:{primary:"d\u00e9charger"}},logical:{and:{primary:"et"},changes:{primary:"change"},contains:{primary:"contient"},else:{primary:"sinon"},end:{primary:"fin"},equals:{primary:"\u00e9gale"},exists:{primary:"existe"},has:{primary:"a"},have:{primary:"ai"},includes:{primary:"inclut"},is:{primary:"est"},live:{primary:"vif"},matches:{primary:"correspond"},not:{primary:"non"},or:{primary:"ou"},otherwise:{primary:"autrement"},then:{primary:"alors"},when:{primary:"quand"},where:{primary:"o\u00f9"}},temporal:{h:{primary:"h"},hour:{primary:"heure"},hours:{primary:"heures"},millisecond:{primary:"milliseconde"},milliseconds:{primary:"millisecondes"},min:{primary:"min"},minute:{primary:"minute"},minutes:{primary:"minutes"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"seconde"},seconds:{primary:"secondes"},times:{primary:"fois"}},values:{body:{primary:"corps"},detail:{primary:"d\u00e9tail"},document:{primary:"document"},element:{primary:"\u00e9l\u00e9ment"},event:{primary:"\u00e9v\u00e9nement"},false:{primary:"faux"},it:{primary:"\u00e7a"},its:{primary:"son"},me:{primary:"moi"},my:{primary:"mon"},myself:{primary:"moi-m\u00eame"},null:{primary:"nul"},result:{primary:"r\u00e9sultat"},target:{primary:"cible"},true:{primary:"vrai"},undefined:{primary:"ind\u00e9fini"},value:{primary:"valeur"},window:{primary:"fen\u00eatre"},you:{primary:"tu"},your:{primary:"ton"},yourself:{primary:"toi-m\u00eame"}},attributes:{attribute:{primary:"attribut"},attributes:{primary:"attributs"},class:{primary:"classe"},classes:{primary:"classes"},properties:{primary:"propri\u00e9t\u00e9s"},property:{primary:"propri\u00e9t\u00e9"},style:{primary:"style"},styles:{primary:"styles"}},expressions:{at:{primary:"\u00e0"},characters:{primary:"caract\u00e8res"},children:{primary:"enfants"},closest:{primary:"proche"},empty:{primary:"vide"},"ends with":{primary:"finit par"},exclusive:{primary:"exclusif"},first:{primary:"premier"},"ignoring case":{primary:"en ignorant la casse"},inclusive:{primary:"inclusif"},"joined by":{primary:"joint par"},last:{primary:"dernier"},"mapped to":{primary:"transform\u00e9 en"},next:{primary:"suivant"},no:{primary:"aucun"},parent:{primary:"parent"},prev:{primary:"pr\u00e9c"},previous:{primary:"pr\u00e9c\u00e9dent"},random:{primary:"al\u00e9atoire"},some:{primary:"quelques"},"sorted by":{primary:"tri\u00e9 par"},"split by":{primary:"divis\u00e9 par"},"starts with":{primary:"commence par"},within:{primary:"dans"}}});_u("he",{events:{blur:{primary:"\u05d8\u05e9\u05d8\u05e9"},change:{primary:"\u05e9\u05d9\u05e0\u05d5\u05d9"},click:{primary:"\u05dc\u05d7\u05d9\u05e6\u05d4"},focus:{primary:"\u05de\u05e7\u05d3"},input:{primary:"\u05e7\u05dc\u05d8"},submit:{primary:"\u05e9\u05dc\u05d9\u05d7\u05d4"}},logical:{and:{primary:"\u05d5\u05d2\u05dd"},bind:{primary:"\u05e7\u05e9\u05d5\u05e8"},changes:{primary:"\u05de\u05e9\u05ea\u05e0\u05d4"},else:{primary:"\u05d0\u05d7\u05e8\u05ea"},end:{primary:"\u05e1\u05d5\u05e3"},live:{primary:"\u05d7\u05d9"},then:{primary:"\u05d0\u05d6"},when:{primary:"\u05db\u05d0\u05e9\u05e8"},where:{primary:"\u05d0\u05d9\u05e4\u05d4"}},temporal:{times:{primary:"\u05e4\u05e2\u05de\u05d9\u05dd"}},values:{body:{primary:"\u05d2\u05d5\u05e3"},event:{primary:"\u05d0\u05d9\u05e8\u05d5\u05e2"},false:{primary:"\u05e9\u05e7\u05e8"},true:{primary:"\u05d0\u05de\u05ea"},it:{primary:"\u05d6\u05d4"},its:{primary:"\u05e9\u05dc\u05d5"},me:{primary:"\u05d0\u05e0\u05d9"},my:{primary:"\u05e9\u05dc\u05d9"},result:{primary:"\u05ea\u05d5\u05e6\u05d0\u05d4"},target:{primary:"\u05d9\u05e2\u05d3"},you:{primary:"\u05d0\u05ea\u05d4"},your:{primary:"\u05e9\u05dc\u05da"}},expressions:{characters:{primary:"\u05ea\u05d5\u05d5\u05d9\u05dd"},exclusive:{primary:"\u05d1\u05dc\u05e2\u05d3\u05d9"},inclusive:{primary:"\u05db\u05d5\u05dc\u05dc"},last:{primary:"\u05d0\u05d7\u05e8\u05d5\u05df"},random:{primary:"\u05d0\u05e7\u05e8\u05d0\u05d9"}}});_u("hi",{events:{blur:{primary:"\u0927\u0941\u0902\u0927\u0932\u093e"},change:{primary:"\u092a\u0930\u093f\u0935\u0930\u094d\u0924\u0928"},click:{primary:"\u0915\u094d\u0932\u093f\u0915"},dblclick:{primary:"\u0921\u092c\u0932_\u0915\u094d\u0932\u093f\u0915"},focus:{primary:"\u092b\u094b\u0915\u0938"},input:{primary:"\u0907\u0928\u092a\u0941\u091f"},keydown:{primary:"\u0915\u0940_\u0928\u0940\u091a\u0947"},keypress:{primary:"\u0915\u0940_\u092a\u094d\u0930\u0947\u0938"},keyup:{primary:"\u0915\u0940_\u090a\u092a\u0930"},load:{primary:"\u0932\u094b\u0921"},mousedown:{primary:"\u092e\u093e\u0909\u0938\u0928\u0940\u091a\u0947"},mouseenter:{primary:"\u092e\u093e\u0909\u0938_\u092a\u094d\u0930\u0935\u0947\u0936"},mouseleave:{primary:"\u092e\u093e\u0909\u0938_\u092c\u093e\u0939\u0930"},mousemove:{primary:"\u092e\u093e\u0909\u0938_\u092e\u0942\u0935"},mouseout:{primary:"\u092e\u093e\u0909\u0938_\u0906\u0909\u091f"},mouseover:{primary:"\u092e\u093e\u0909\u0938_\u0913\u0935\u0930"},mouseup:{primary:"\u092e\u093e\u0909\u0938\u090a\u092a\u0930"},reset:{primary:"\u0930\u0940\u0938\u0947\u091f"},resize:{primary:"\u0906\u0915\u093e\u0930_\u092c\u0926\u0932\u0947\u0902"},scroll:{primary:"\u0938\u094d\u0915\u094d\u0930\u0949\u0932"},submit:{primary:"\u091c\u092e\u093e"},touchcancel:{primary:"\u091f\u091a_\u0930\u0926\u094d\u0926"},touchend:{primary:"\u091f\u091a_\u0938\u092e\u093e\u092a\u094d\u0924"},touchmove:{primary:"\u091f\u091a_\u092e\u0942\u0935"},touchstart:{primary:"\u091f\u091a_\u0936\u0941\u0930\u0942"},unload:{primary:"\u0905\u0928\u0932\u094b\u0921"}},logical:{and:{primary:"\u0914\u0930"},changes:{primary:"\u092c\u0926\u0932\u0928\u0947 \u092a\u0930"},contains:{primary:"\u0936\u093e\u092e\u093f\u0932"},else:{primary:"\u0935\u0930\u0928\u093e"},empty:{primary:"\u0916\u093e\u0932\u0940"},end:{primary:"\u0938\u092e\u093e\u092a\u094d\u0924"},equals:{primary:"\u092c\u0930\u093e\u092c\u0930"},exists:{primary:"\u092e\u094c\u091c\u0942\u0926"},has:{primary:"\u0939\u0948"},have:{primary:"\u0939\u0948"},includes:{primary:"\u092e\u0947\u0902_\u0939\u0948"},is:{primary:"\u0939\u0948"},isNot:{primary:"\u0928\u0939\u0940\u0902_\u0939\u0948"},live:{primary:"\u0932\u093e\u0907\u0935"},matches:{primary:"\u092e\u0947\u0932 \u0916\u093e\u0924\u093e"},not:{primary:"\u0928\u0939\u0940\u0902"},or:{primary:"\u092f\u093e"},otherwise:{primary:"\u0905\u0928\u094d\u092f\u0925\u093e"},then:{primary:"\u092b\u093f\u0930"},when:{primary:"\u091c\u092c"},where:{primary:"\u0915\u0939\u093e\u0901"}},temporal:{every:{primary:"\u0939\u0930"},forever:{primary:"\u0939\u092e\u0947\u0936\u093e"},h:{primary:"\u0918\u0902"},hour:{primary:"\u0918\u0902\u091f\u093e"},hours:{primary:"\u0918\u0902\u091f\u0947"},millisecond:{primary:"\u092e\u093f\u0932\u0940\u0938\u0947\u0915\u0902\u0921"},milliseconds:{primary:"\u092e\u093f\u0932\u0940\u0938\u0947\u0915\u0902\u0921"},min:{primary:"\u092e\u093f"},minute:{primary:"\u092e\u093f\u0928\u091f"},minutes:{primary:"\u092e\u093f\u0928\u091f"},ms:{primary:"\u092e\u093f\u0938\u0947"},once:{primary:"\u090f\u0915_\u092c\u093e\u0930"},s:{primary:"\u0938\u0947"},second:{primary:"\u0938\u0947\u0915\u0902\u0921"},seconds:{primary:"\u0938\u0947\u0915\u0902\u0921"},until:{primary:"\u0924\u0915"},times:{primary:"\u092c\u093e\u0930"}},values:{body:{primary:"\u092c\u0949\u0921\u0940"},closest:{primary:"\u0928\u093f\u0915\u091f\u0924\u092e"},detail:{primary:"\u0935\u093f\u0935\u0930\u0923"},document:{primary:"\u0926\u0938\u094d\u0924\u093e\u0935\u0947\u091c\u093c"},element:{primary:"\u0924\u0924\u094d\u0935"},event:{primary:"\u0918\u091f\u0928\u093e"},false:{primary:"\u091d\u0942\u0920"},first:{primary:"\u092a\u0939\u0932\u093e"},it:{primary:"\u092f\u0939"},its:{primary:"\u0907\u0938\u0915\u093e"},last:{primary:"\u0905\u0902\u0924\u093f\u092e"},me:{primary:"\u092e\u0948\u0902"},my:{primary:"\u092e\u0947\u0930\u093e"},myself:{primary:"\u092e\u0948\u0902_\u0938\u094d\u0935\u092f\u0902"},next:{primary:"\u0905\u0917\u0932\u093e"},null:{primary:"null"},parent:{primary:"\u092e\u0942\u0932"},previous:{primary:"\u092a\u093f\u091b\u0932\u093e"},result:{primary:"\u092a\u0930\u093f\u0923\u093e\u092e"},target:{primary:"\u0932\u0915\u094d\u0937\u094d\u092f"},true:{primary:"\u0938\u091a"},undefined:{primary:"\u0905\u092a\u0930\u093f\u092d\u093e\u0937\u093f\u0924"},value:{primary:"\u092e\u093e\u0928"},window:{primary:"\u0935\u093f\u0902\u0921\u094b"},you:{primary:"\u0906\u092a"},your:{primary:"\u0906\u092a\u0915\u093e"},yourself:{primary:"\u0938\u094d\u0935\u092f\u0902"}},attributes:{attribute:{primary:"\u0917\u0941\u0923"},attributes:{primary:"\u0917\u0941\u0923"},checked:{primary:"\u091a\u0947\u0915"},class:{primary:"\u0915\u094d\u0932\u093e\u0938"},classes:{primary:"\u0915\u094d\u0932\u093e\u0938\u0947\u0938"},disabled:{primary:"\u0905\u0915\u094d\u0937\u092e"},hidden:{primary:"\u091b\u093f\u092a\u093e"},html:{primary:"html"},properties:{primary:"\u0938\u0902\u092a\u0924\u094d\u0924\u093f\u092f\u093e\u0901"},property:{primary:"\u0938\u0902\u092a\u0924\u094d\u0924\u093f"},readonly:{primary:"\u0915\u0947\u0935\u0932_\u092a\u0922\u093c\u0928\u0947"},required:{primary:"\u0906\u0935\u0936\u094d\u092f\u0915"},selected:{primary:"\u091a\u092f\u0928\u093f\u0924"},style:{primary:"\u0938\u094d\u091f\u093e\u0907\u0932"},styles:{primary:"\u0938\u094d\u091f\u093e\u0907\u0932\u094d\u0938"},text:{primary:"\u092a\u093e\u0920"}},expressions:{at:{primary:"\u092a\u0930"},characters:{primary:"\u0905\u0915\u094d\u0937\u0930"},children:{primary:"\u092c\u091a\u094d\u091a\u0947"},closest:{primary:"\u0928\u093f\u0915\u091f\u0924\u092e"},empty:{primary:"\u0916\u093e\u0932\u0940"},"ends with":{primary:"\u092a\u0930_\u0938\u092e\u093e\u092a\u094d\u0924"},first:{primary:"\u092a\u0939\u0932\u093e"},"ignoring case":{primary:"\u0915\u0947\u0938_\u0905\u0928\u0926\u0947\u0916\u093e"},"joined by":{primary:"\u0926\u094d\u0935\u093e\u0930\u093e_\u091c\u0941\u0921\u093c\u093e"},last:{primary:"\u0905\u0902\u0924\u093f\u092e"},"mapped to":{primary:"\u092e\u0947\u0902_\u092a\u0930\u093f\u0935\u0930\u094d\u0924\u093f\u0924"},next:{primary:"\u0905\u0917\u0932\u093e"},no:{primary:"\u0915\u094b\u0908 \u0928\u0939\u0940\u0902"},parent:{primary:"\u092e\u0942\u0932"},prev:{primary:"\u092a\u093f\u091b"},previous:{primary:"\u092a\u093f\u091b\u0932\u093e"},random:{primary:"\u092f\u093e\u0926\u0943\u091a\u094d\u091b\u093f\u0915"},some:{primary:"\u0915\u0941\u091b"},"sorted by":{primary:"\u0926\u094d\u0935\u093e\u0930\u093e_\u0915\u094d\u0930\u092e\u092c\u0926\u094d\u0927"},"split by":{primary:"\u0926\u094d\u0935\u093e\u0930\u093e_\u0935\u093f\u092d\u093e\u091c\u093f\u0924"},"starts with":{primary:"\u0938\u0947_\u0936\u0941\u0930\u0942"},within:{primary:"\u0915\u0947_\u0905\u0902\u0926\u0930"}}});_u("id",{events:{blur:{primary:"blur"},change:{primary:"ubah"},click:{primary:"klik"},dblclick:{primary:"dblclick"},focus:{primary:"fokus"},input:{primary:"masukan"},keydown:{primary:"tekan_tombol"},keypress:{primary:"keypress"},keyup:{primary:"keyup"},load:{primary:"muat"},mousedown:{primary:"mousedown"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mousemove:{primary:"mousemove"},mouseout:{primary:"tinggalkan"},mouseover:{primary:"arahkan"},mouseup:{primary:"mouseup"},reset:{primary:"reset"},resize:{primary:"ubah_ukuran"},scroll:{primary:"gulir"},submit:{primary:"kirim"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"bongkar"}},logical:{and:{primary:"dan"},changes:{primary:"berubah"},contains:{primary:"berisi"},else:{primary:"lainnya"},end:{primary:"akhir"},equals:{primary:"sama"},exists:{primary:"ada"},has:{primary:"punya"},have:{primary:"punya"},includes:{primary:"termasuk"},is:{primary:"adalah"},live:{primary:"langsung"},matches:{primary:"cocok"},not:{primary:"bukan"},or:{primary:"atau"},otherwise:{primary:"sebaliknya"},then:{primary:"lalu"},when:{primary:"ketika"},where:{primary:"di_mana"}},temporal:{h:{primary:"j"},hour:{primary:"jam"},hours:{primary:"jam"},millisecond:{primary:"milidetik"},milliseconds:{primary:"milidetik"},min:{primary:"mnt"},minute:{primary:"menit"},minutes:{primary:"menit"},ms:{primary:"ms"},s:{primary:"d"},second:{primary:"detik"},seconds:{primary:"detik"},times:{primary:"kali"}},values:{body:{primary:"badan"},detail:{primary:"detail"},document:{primary:"dokumen"},element:{primary:"elemen"},event:{primary:"peristiwa"},false:{primary:"salah"},it:{primary:"itu"},its:{primary:"miliknya"},me:{primary:"saya"},my:{primary:"saya punya"},myself:{primary:"saya sendiri"},null:{primary:"null"},result:{primary:"hasil"},target:{primary:"target"},true:{primary:"benar"},undefined:{primary:"tidak_terdefinisi"},value:{primary:"nilai"},window:{primary:"jendela"},you:{primary:"kamu"},your:{primary:"kamu punya"},yourself:{primary:"kamu sendiri"}},attributes:{attribute:{primary:"atribut"},attributes:{primary:"atribut_atribut"},class:{primary:"kelas"},classes:{primary:"kelas_kelas"},properties:{primary:"properti_properti"},property:{primary:"properti"},style:{primary:"gaya"},styles:{primary:"gaya_gaya"}},expressions:{at:{primary:"di"},characters:{primary:"karakter"},children:{primary:"anak_anak"},closest:{primary:"terdekat"},empty:{primary:"kosong"},"ends with":{primary:"diakhiri dengan"},exclusive:{primary:"eksklusif"},first:{primary:"pertama"},"ignoring case":{primary:"abaikan kapital"},inclusive:{primary:"inklusif"},"joined by":{primary:"digabung oleh"},last:{primary:"terakhir"},"mapped to":{primary:"dipetakan ke"},next:{primary:"berikutnya"},no:{primary:"tidak_ada"},parent:{primary:"induk"},prev:{primary:"sblm"},previous:{primary:"sebelumnya"},random:{primary:"acak"},some:{primary:"beberapa"},"sorted by":{primary:"diurutkan berdasarkan"},"split by":{primary:"dipisah oleh"},"starts with":{primary:"dimulai dengan"},within:{primary:"dalam"}}});_u("it",{events:{blur:{primary:"sfuocare"},change:{primary:"cambio"},click:{primary:"clic"},dblclick:{primary:"doppioclic"},focus:{primary:"fuoco"},input:{primary:"input"},keydown:{primary:"tastogi\u00f9"},keypress:{primary:"tastopremi"},keyup:{primary:"tastosu"},load:{primary:"carica"},mousedown:{primary:"mousedown"},mouseenter:{primary:"mouseentra"},mouseleave:{primary:"mouseesce"},mousemove:{primary:"mousemuovi"},mouseout:{primary:"mousefuori"},mouseover:{primary:"mousesopra"},mouseup:{primary:"mouseup"},reset:{primary:"reimpostare"},resize:{primary:"ridimensiona"},scroll:{primary:"scorrimento"},submit:{primary:"invio"},touchcancel:{primary:"toccoannulla"},touchend:{primary:"toccofine"},touchmove:{primary:"toccomuovi"},touchstart:{primary:"toccoinizia"},unload:{primary:"scarica"}},logical:{and:{primary:"e"},changes:{primary:"cambia"},contains:{primary:"contiene"},else:{primary:"altrimenti"},end:{primary:"fine"},equals:{primary:"uguale"},exists:{primary:"esiste"},has:{primary:"ha"},have:{primary:"ho"},includes:{primary:"include"},is:{primary:"\u00e8"},live:{primary:"vivo"},matches:{primary:"corrisponde"},not:{primary:"non"},or:{primary:"o"},otherwise:{primary:"altrimenti"},then:{primary:"allora"},when:{primary:"quando"},where:{primary:"dove"}},temporal:{h:{primary:"h"},hour:{primary:"ora"},hours:{primary:"ore"},millisecond:{primary:"millisecondo"},milliseconds:{primary:"millisecondi"},min:{primary:"min"},minute:{primary:"minuto"},minutes:{primary:"minuti"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"secondo"},seconds:{primary:"secondi"},times:{primary:"volte"}},values:{body:{primary:"corpo"},detail:{primary:"dettaglio"},document:{primary:"documento"},element:{primary:"elemento"},event:{primary:"evento"},false:{primary:"falso"},it:{primary:"esso"},its:{primary:"suo"},me:{primary:"io"},my:{primary:"mio"},myself:{primary:"me stesso"},null:{primary:"nullo"},result:{primary:"risultato"},target:{primary:"obiettivo"},true:{primary:"vero"},undefined:{primary:"indefinito"},value:{primary:"valore"},window:{primary:"finestra"},you:{primary:"tu"},your:{primary:"tuo"},yourself:{primary:"te stesso"}},attributes:{attribute:{primary:"attributo"},attributes:{primary:"attributi"},class:{primary:"classe"},classes:{primary:"classi"},properties:{primary:"propriet\u00e0"},property:{primary:"propriet\u00e0"},style:{primary:"stile"},styles:{primary:"stili"}},expressions:{at:{primary:"a"},characters:{primary:"caratteri"},children:{primary:"figli"},closest:{primary:"vicino"},empty:{primary:"vuoto"},"ends with":{primary:"finisce con"},exclusive:{primary:"esclusivo"},first:{primary:"primo"},"ignoring case":{primary:"ignorando maiuscole"},inclusive:{primary:"inclusivo"},"joined by":{primary:"unito per"},last:{primary:"ultimo"},"mapped to":{primary:"trasformato in"},next:{primary:"prossimo"},no:{primary:"nessun"},parent:{primary:"genitore"},prev:{primary:"prec"},previous:{primary:"precedente"},random:{primary:"casuale"},some:{primary:"qualche"},"sorted by":{primary:"ordinato per"},"split by":{primary:"diviso per"},"starts with":{primary:"inizia con"},within:{primary:"dentro"}}});_u("ja",{events:{blur:{primary:"\u307c\u304b\u3057"},change:{primary:"\u5909\u66f4"},click:{primary:"\u30af\u30ea\u30c3\u30af"},dblclick:{primary:"dblclick"},focus:{primary:"\u30d5\u30a9\u30fc\u30ab\u30b9"},input:{primary:"\u5165\u529b"},keydown:{primary:"\u30ad\u30fc\u30c0\u30a6\u30f3"},keypress:{primary:"\u30ad\u30fc\u30d7\u30ec\u30b9"},keyup:{primary:"\u30ad\u30fc\u30a2\u30c3\u30d7"},load:{primary:"\u8aad\u307f\u8fbc\u307f"},mousedown:{primary:"\u30de\u30a6\u30b9\u62bc\u4e0b"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mousemove:{primary:"mousemove"},mouseout:{primary:"\u30de\u30a6\u30b9\u30a2\u30a6\u30c8"},mouseover:{primary:"\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc"},mouseup:{primary:"\u30de\u30a6\u30b9\u89e3\u653e"},reset:{primary:"\u30ea\u30bb\u30c3\u30c8"},resize:{primary:"\u30b5\u30a4\u30ba\u5909\u66f4"},scroll:{primary:"\u30b9\u30af\u30ed\u30fc\u30eb"},submit:{primary:"\u9001\u4fe1"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"unload"}},logical:{and:{primary:"\u305d\u3057\u3066"},bind:{primary:"\u30d0\u30a4\u30f3\u30c9"},changes:{primary:"\u5909\u308f\u3063\u305f\u3089"},contains:{primary:"\u542b\u3080"},else:{primary:"\u305d\u3046\u3067\u306a\u3051\u308c\u3070"},end:{primary:"\u7d42\u308f\u308a"},equals:{primary:"\u7b49\u3057\u3044"},exists:{primary:"\u5b58\u5728\u3059\u308b"},has:{primary:"\u3042\u308b"},have:{primary:"\u3042\u308b"},includes:{primary:"\u542b\u3081\u308b"},is:{primary:"\u3067\u3042\u308b"},live:{primary:"\u30e9\u30a4\u30d6"},matches:{primary:"\u4e00\u81f4\u3059\u308b"},not:{primary:"\u3067\u306f\u306a\u3044"},or:{primary:"\u307e\u305f\u306f"},otherwise:{primary:"\u305d\u3046\u3067\u306a\u3051\u308c\u3070"},then:{primary:"\u305d\u308c\u304b\u3089"},when:{primary:"\u6642"},where:{primary:"\u3069\u3053"}},temporal:{h:{primary:"\u6642"},hour:{primary:"\u6642\u9593"},hours:{primary:"\u6642\u9593"},millisecond:{primary:"\u30df\u30ea\u79d2"},milliseconds:{primary:"\u30df\u30ea\u79d2"},min:{primary:"\u5206"},minute:{primary:"\u5206"},minutes:{primary:"\u5206"},ms:{primary:"ms"},s:{primary:"\u79d2"},second:{primary:"\u79d2"},seconds:{primary:"\u79d2"},times:{primary:"\u56de"}},values:{body:{primary:"\u30dc\u30c7\u30a3"},detail:{primary:"\u8a73\u7d30"},document:{primary:"\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8"},element:{primary:"\u8981\u7d20"},event:{primary:"\u30a4\u30d9\u30f3\u30c8"},false:{primary:"\u507d"},it:{primary:"\u305d\u308c"},its:{primary:"\u305d\u306e"},me:{primary:"\u79c1"},my:{primary:"\u79c1\u306e"},myself:{primary:"\u79c1\u81ea\u8eab"},null:{primary:"null"},result:{primary:"\u7d50\u679c"},target:{primary:"\u5bfe\u8c61"},true:{primary:"\u771f"},undefined:{primary:"\u672a\u5b9a\u7fa9"},value:{primary:"\u5024"},window:{primary:"\u30a6\u30a3\u30f3\u30c9\u30a6"},you:{primary:"\u3042\u306a\u305f"},your:{primary:"\u3042\u306a\u305f\u306e"},yourself:{primary:"\u3042\u306a\u305f\u81ea\u8eab"}},attributes:{attribute:{primary:"\u5c5e\u6027"},attributes:{primary:"\u5c5e\u6027\u7fa4"},class:{primary:"\u30af\u30e9\u30b9"},classes:{primary:"\u30af\u30e9\u30b9\u7fa4"},properties:{primary:"\u30d7\u30ed\u30d1\u30c6\u30a3\u7fa4"},property:{primary:"\u30d7\u30ed\u30d1\u30c6\u30a3"},style:{primary:"\u30b9\u30bf\u30a4\u30eb"},styles:{primary:"\u30b9\u30bf\u30a4\u30eb\u7fa4"}},expressions:{at:{primary:"\u3067"},characters:{primary:"\u6587\u5b57"},children:{primary:"\u5b50"},closest:{primary:"\u6700\u3082\u8fd1\u3044"},empty:{primary:"\u7a7a"},"ends with":{primary:"\u3067\u7d42\u308f\u308b"},exclusive:{primary:"\u9664\u304f"},first:{primary:"\u6700\u521d"},"ignoring case":{primary:"\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u7121\u8996"},inclusive:{primary:"\u542b\u3080"},"joined by":{primary:"\u3067\u7d50\u5408"},last:{primary:"\u6700\u5f8c"},"mapped to":{primary:"\u306b\u5909\u63db"},next:{primary:"\u6b21"},no:{primary:"\u306a\u3044"},parent:{primary:"\u89aa"},prev:{primary:"\u524d"},previous:{primary:"\u524d"},random:{primary:"\u30e9\u30f3\u30c0\u30e0"},some:{primary:"\u3044\u304f\u3064\u304b"},"sorted by":{primary:"\u3067\u30bd\u30fc\u30c8"},"split by":{primary:"\u3067\u5206\u5272"},"starts with":{primary:"\u3067\u59cb\u307e\u308b"},within:{primary:"\u4ee5\u5185"}}});_u("ko",{events:{blur:{primary:"\ube14\ub7ec"},change:{primary:"\ubcc0\uacbd"},click:{primary:"\ud074\ub9ad"},dblclick:{primary:"\ub354\ube14\ud074\ub9ad"},focus:{primary:"\ud3ec\ucee4\uc2a4"},input:{primary:"\uc785\ub825"},keydown:{primary:"\ud0a4\ub2e4\uc6b4"},keypress:{primary:"\ud0a4\ud504\ub808\uc2a4"},keyup:{primary:"\ud0a4\uc5c5"},load:{primary:"\ub85c\ub4dc"},mousedown:{primary:"\ub9c8\uc6b0\uc2a4\ub2e4\uc6b4"},mouseenter:{primary:"\ub9c8\uc6b0\uc2a4\uc5d4\ud130"},mouseleave:{primary:"\ub9c8\uc6b0\uc2a4\ub9ac\ube0c"},mousemove:{primary:"\ub9c8\uc6b0\uc2a4\ubb34\ube0c"},mouseout:{primary:"\ub9c8\uc6b0\uc2a4\uc544\uc6c3"},mouseover:{primary:"\ub9c8\uc6b0\uc2a4\uc624\ubc84"},mouseup:{primary:"\ub9c8\uc6b0\uc2a4\uc5c5"},reset:{primary:"\uc7ac\uc124\uc815"},resize:{primary:"\ub9ac\uc0ac\uc774\uc988"},scroll:{primary:"\uc2a4\ud06c\ub864"},submit:{primary:"\uc81c\ucd9c"},touchcancel:{primary:"\ud130\uce58\ucde8\uc18c"},touchend:{primary:"\ud130\uce58\uc885\ub8cc"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"unload"}},logical:{and:{primary:"\uadf8\ub9ac\uace0"},bind:{primary:"\ubc14\uc778\ub4dc"},changes:{primary:"\ubcc0\uacbd\ub418\uba74"},contains:{primary:"\ud3ec\ud568"},else:{primary:"\uc544\ub2c8\uba74"},end:{primary:"\ub05d"},equals:{primary:"\uac19\ub2e4"},exists:{primary:"\uc874\uc7ac"},has:{primary:"\uc788\ub2e4"},have:{primary:"\uc788\ub2e4"},includes:{primary:"\ud3ec\ud568\ud558\ub2e4"},is:{primary:"\uc774\ub2e4"},live:{primary:"\ub77c\uc774\ube0c"},matches:{primary:"\uc77c\uce58"},not:{primary:"\uc544\ub2c8"},or:{primary:"\ub610\ub294"},otherwise:{primary:"\uadf8\ub807\uc9c0\uc54a\uc73c\uba74"},then:{primary:"\uadf8\ub7ec\uba74"},when:{primary:"\ub54c"},where:{primary:"\uc5b4\ub514"}},temporal:{h:{primary:"\uc2dc"},hour:{primary:"\uc2dc\uac04"},hours:{primary:"\uc2dc\uac04"},millisecond:{primary:"\ubc00\ub9ac\ucd08"},milliseconds:{primary:"\ubc00\ub9ac\ucd08"},min:{primary:"\ubd84"},minute:{primary:"\ubd84"},minutes:{primary:"\ubd84"},ms:{primary:"ms"},s:{primary:"\ucd08"},second:{primary:"\ucd08"},seconds:{primary:"\ucd08"},times:{primary:"\ubc88"}},values:{body:{primary:"\ubc14\ub514"},detail:{primary:"\uc138\ubd80"},document:{primary:"\ubb38\uc11c"},element:{primary:"\uc694\uc18c"},event:{primary:"\uc774\ubca4\ud2b8"},false:{primary:"\uac70\uc9d3"},it:{primary:"\uadf8\uac83"},its:{primary:"\uadf8\uac83\uc758"},me:{primary:"\ub098"},my:{primary:"\ub0b4"},myself:{primary:"\ub098\uc790\uc2e0"},null:{primary:"\ub110"},result:{primary:"\uacb0\uacfc"},target:{primary:"\ub300\uc0c1"},true:{primary:"\ucc38"},undefined:{primary:"\uc815\uc758\uc548\ub428"},value:{primary:"\uac12"},window:{primary:"\ucc3d"},you:{primary:"\ub108"},your:{primary:"\ub124"},yourself:{primary:"\ub108\uc790\uc2e0"}},attributes:{attribute:{primary:"\uc18d\uc131"},attributes:{primary:"\uc18d\uc131\ub4e4"},class:{primary:"\ud074\ub798\uc2a4"},classes:{primary:"\ud074\ub798\uc2a4\ub4e4"},properties:{primary:"\ud504\ub85c\ud37c\ud2f0\ub4e4"},property:{primary:"\ud504\ub85c\ud37c\ud2f0"},style:{primary:"\uc2a4\ud0c0\uc77c"},styles:{primary:"\uc2a4\ud0c0\uc77c\ub4e4"}},expressions:{at:{primary:"\uc5d0\uc11c"},characters:{primary:"\ubb38\uc790"},children:{primary:"\uc790\uc2dd"},closest:{primary:"\uac00\uc7a5\uac00\uae4c\uc6b4"},empty:{primary:"\ube44\uc5b4\uc788\ub294"},"ends with":{primary:"\ub85c\ub05d\ub098\ub294"},exclusive:{primary:"\uc81c\uc678"},first:{primary:"\uccab\ubc88\uc9f8"},"ignoring case":{primary:"\ub300\uc18c\ubb38\uc790_\ubb34\uc2dc"},inclusive:{primary:"\ud3ec\ud568"},"joined by":{primary:"\ub85c_\uacb0\ud569"},last:{primary:"\ub9c8\uc9c0\ub9c9"},"mapped to":{primary:"\ub85c_\ubcc0\ud658"},next:{primary:"\ub2e4\uc74c"},no:{primary:"\uc5c6\uc74c"},parent:{primary:"\ubd80\ubaa8"},prev:{primary:"\uc774\uc804"},previous:{primary:"\uc774\uc804"},random:{primary:"\ubb34\uc791\uc704"},some:{primary:"\uc77c\ubd80"},"sorted by":{primary:"\ub85c_\uc815\ub82c"},"split by":{primary:"\ub85c_\ubd84\ud560"},"starts with":{primary:"\ub85c\uc2dc\uc791"},within:{primary:"\uc774\ub0b4"}}});_u("ms",{events:{blur:{primary:"blur"},change:{primary:"change"},click:{primary:"click"},dblclick:{primary:"dblclick"},every:{primary:"setiap"},focus:{primary:"focus"},input:{primary:"input"},keydown:{primary:"keydown"},keypress:{primary:"keypress"},keyup:{primary:"keyup"},load:{primary:"load"},mousedown:{primary:"mousedown"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mousemove:{primary:"mousemove"},mouseout:{primary:"mouseout"},mouseover:{primary:"mouseover"},mouseup:{primary:"mouseup"},reset:{primary:"reset"},resize:{primary:"resize"},scroll:{primary:"scroll"},submit:{primary:"submit"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"unload"}},logical:{and:{primary:"dan"},changes:{primary:"berubah"},contains:{primary:"mengandungi"},else:{primary:"kalau_tidak"},empty:{primary:"kosong"},end:{primary:"tamat"},equals:{primary:"sama"},exists:{primary:"wujud"},false:{primary:"salah"},has:{primary:"ada"},have:{primary:"ada"},if:{primary:"jika"},includes:{primary:"termasuk"},is:{primary:"adalah"},live:{primary:"langsung"},matches:{primary:"sepadan"},not:{primary:"bukan"},null:{primary:"null"},or:{primary:"atau"},otherwise:{primary:"jika_tidak"},then:{primary:"kemudian"},true:{primary:"benar"},undefined:{primary:"tidak_ditakrifkan"},when:{primary:"apabila"},where:{primary:"di_mana"}},temporal:{forever:{primary:"selamanya"},h:{primary:"j"},hour:{primary:"jam"},hours:{primary:"jam"},millisecond:{primary:"milisaat"},milliseconds:{primary:"milisaat"},min:{primary:"min"},minute:{primary:"minit"},minutes:{primary:"minit"},ms:{primary:"ms"},now:{primary:"sekarang"},s:{primary:"s"},second:{primary:"saat"},seconds:{primary:"saat"},times:{primary:"kali"}},values:{body:{primary:"badan"},detail:{primary:"perincian"},document:{primary:"dokumen"},element:{primary:"elemen"},event:{primary:"peristiwa"},false:{primary:"salah"},it:{primary:"ia"},its:{primary:"nya"},me:{primary:"saya"},my:{primary:"saya_punya"},myself:{primary:"diri_saya"},null:{primary:"null"},result:{primary:"hasil"},target:{primary:"sasaran"},true:{primary:"benar"},undefined:{primary:"tidak_ditakrifkan"},value:{primary:"nilai"},window:{primary:"tetingkap"},you:{primary:"kamu"},your:{primary:"kamu_punya"},yourself:{primary:"diri_kamu"}},attributes:{attribute:{primary:"atribut"},attributes:{primary:"atribut_atribut"},checked:{primary:"ditanda"},class:{primary:"kelas"},classes:{primary:"kelas_kelas"},disabled:{primary:"dilumpuhkan"},html:{primary:"html"},id:{primary:"id"},properties:{primary:"sifat_sifat"},property:{primary:"sifat"},style:{primary:"gaya"},styles:{primary:"gaya_gaya"},text:{primary:"teks"},value:{primary:"nilai"}},expressions:{at:{primary:"di"},characters:{primary:"aksara"},children:{primary:"anak_anak"},closest:{primary:"terdekat"},empty:{primary:"kosong"},"ends with":{primary:"berakhir_dengan"},exclusive:{primary:"eksklusif"},first:{primary:"pertama"},"ignoring case":{primary:"abaikan_huruf_besar_kecil"},inclusive:{primary:"inklusif"},index:{primary:"indeks"},"joined by":{primary:"digabung_oleh"},last:{primary:"terakhir"},length:{primary:"panjang"},"mapped to":{primary:"dipetakan_ke"},next:{primary:"seterusnya"},no:{primary:"tiada"},parent:{primary:"induk"},prev:{primary:"sebelum"},previous:{primary:"sebelumnya"},random:{primary:"rawak"},some:{primary:"beberapa"},"sorted by":{primary:"disusun_mengikut"},"split by":{primary:"dipecah_oleh"},"starts with":{primary:"bermula_dengan"},within:{primary:"dalam"}}});_u("pl",{events:{blur:{primary:"rozmycie"},change:{primary:"zmiana"},click:{primary:"klikni\u0119cie"},dblclick:{primary:"podw\u00f3jneklikni\u0119cie"},focus:{primary:"fokus"},input:{primary:"wej\u015bcie"},keydown:{primary:"klawiszd\u00f3\u0142"},keypress:{primary:"klawisznaci\u015bni\u0119cie"},keyup:{primary:"klawiszg\u00f3ra"},load:{primary:"za\u0142aduj"},mousedown:{primary:"mousedown"},mouseenter:{primary:"myszwej\u015bcie"},mouseleave:{primary:"myszwyj\u015bcie"},mousemove:{primary:"myszruch"},mouseout:{primary:"myszpoza"},mouseover:{primary:"mysznad"},mouseup:{primary:"mouseup"},reset:{primary:"zresetuj"},resize:{primary:"zmiana rozmiaru"},scroll:{primary:"przewi\u0144"},submit:{primary:"wys\u0142aniu"},touchcancel:{primary:"dotykanuluj"},touchend:{primary:"dotykkoniec"},touchmove:{primary:"dotykruch"},touchstart:{primary:"dotykstart"},unload:{primary:"wy\u0142aduj"}},logical:{and:{primary:"i"},changes:{primary:"zmienia"},contains:{primary:"zawiera"},else:{primary:"inaczej"},end:{primary:"koniec"},equals:{primary:"r\u00f3wna si\u0119"},exists:{primary:"istnieje"},has:{primary:"ma"},have:{primary:"mam"},includes:{primary:"obejmuje"},is:{primary:"jest"},live:{primary:"\u017cywy"},matches:{primary:"pasuje"},not:{primary:"nie"},or:{primary:"lub"},otherwise:{primary:"wpp"},then:{primary:"wtedy"},when:{primary:"kiedy"},where:{primary:"gdzie"}},temporal:{h:{primary:"godz"},hour:{primary:"godzina"},hours:{primary:"godziny"},millisecond:{primary:"milisekunda"},milliseconds:{primary:"milisekundy"},min:{primary:"min"},minute:{primary:"minuta"},minutes:{primary:"minuty"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"sekunda"},seconds:{primary:"sekundy"},times:{primary:"razy"}},values:{body:{primary:"body"},detail:{primary:"szczeg\u00f3\u0142"},document:{primary:"dokument"},element:{primary:"element"},event:{primary:"zdarzenie"},false:{primary:"fa\u0142sz"},it:{primary:"to"},its:{primary:"jego"},me:{primary:"ja"},my:{primary:"m\u00f3j"},myself:{primary:"ja sam"},null:{primary:"null"},result:{primary:"wynik"},target:{primary:"cel"},true:{primary:"prawda"},undefined:{primary:"niezdefiniowane"},value:{primary:"warto\u015b\u0107"},window:{primary:"okno"},you:{primary:"ty"},your:{primary:"tw\u00f3j"},yourself:{primary:"ty sam"}},attributes:{attribute:{primary:"atrybut"},attributes:{primary:"atrybuty"},class:{primary:"klasa"},classes:{primary:"klasy"},properties:{primary:"w\u0142a\u015bciwo\u015bci"},property:{primary:"w\u0142a\u015bciwo\u015b\u0107"},style:{primary:"styl"},styles:{primary:"style"}},expressions:{at:{primary:"przy"},characters:{primary:"znaki"},children:{primary:"dzieci"},closest:{primary:"najbli\u017cszy"},empty:{primary:"pusty"},"ends with":{primary:"ko\u0144czy si\u0119 na"},exclusive:{primary:"wy\u0142\u0105cznie"},first:{primary:"pierwszy"},"ignoring case":{primary:"ignoruj\u0105c wielko\u015b\u0107 liter"},inclusive:{primary:"w\u0142\u0105cznie"},"joined by":{primary:"po\u0142\u0105czone przez"},last:{primary:"ostatni"},"mapped to":{primary:"przekszta\u0142cone na"},next:{primary:"nast\u0119pny"},no:{primary:"brak"},parent:{primary:"rodzic"},prev:{primary:"poprz"},previous:{primary:"poprzedni"},random:{primary:"losowy"},some:{primary:"jaki\u015b"},"sorted by":{primary:"sortowane wed\u0142ug"},"split by":{primary:"podzielone przez"},"starts with":{primary:"zaczyna si\u0119 od"},within:{primary:"wewn\u0105trz"}}});_u("pt",{events:{blur:{primary:"desfoque"},change:{primary:"mudan\u00e7a"},click:{primary:"clique"},dblclick:{primary:"duploClique"},focus:{primary:"foco"},input:{primary:"entrada"},keydown:{primary:"tecla baixo"},keypress:{primary:"teclaPressionar"},keyup:{primary:"tecla cima"},load:{primary:"carregar"},mousedown:{primary:"mouse pressionado"},mouseenter:{primary:"mouseEntrar"},mouseleave:{primary:"mouseSair"},mousemove:{primary:"mouseMover"},mouseout:{primary:"mouse fora"},mouseover:{primary:"mouse sobre"},mouseup:{primary:"mouse solto"},reset:{primary:"redefinir"},resize:{primary:"redimensionar"},scroll:{primary:"rolar"},submit:{primary:"envio"},touchcancel:{primary:"toqueCancelar"},touchend:{primary:"toqueFim"},touchmove:{primary:"toqueMover"},touchstart:{primary:"toqueIn\u00edcio"},unload:{primary:"descarregar"}},logical:{and:{primary:"e"},changes:{primary:"muda"},contains:{primary:"cont\u00e9m"},else:{primary:"sen\u00e3o"},end:{primary:"fim"},equals:{primary:"igual"},exists:{primary:"existe"},has:{primary:"tem"},have:{primary:"tenho"},includes:{primary:"inclui"},is:{primary:"\u00e9"},live:{primary:"vivo"},matches:{primary:"corresponde"},not:{primary:"n\u00e3o"},or:{primary:"ou"},otherwise:{primary:"caso_contr\u00e1rio"},then:{primary:"ent\u00e3o"},when:{primary:"quando"},where:{primary:"onde"}},temporal:{h:{primary:"h"},hour:{primary:"hora"},hours:{primary:"horas"},millisecond:{primary:"milissegundo"},milliseconds:{primary:"milissegundos"},min:{primary:"min"},minute:{primary:"minuto"},minutes:{primary:"minutos"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"segundo"},seconds:{primary:"segundos"},times:{primary:"vezes"}},values:{body:{primary:"corpo"},detail:{primary:"detalhe"},document:{primary:"documento"},element:{primary:"elemento"},event:{primary:"evento"},false:{primary:"falso"},it:{primary:"isso"},its:{primary:"seu"},me:{primary:"eu"},my:{primary:"meu"},myself:{primary:"eu mesmo"},null:{primary:"nulo"},result:{primary:"resultado"},target:{primary:"alvo"},true:{primary:"verdadeiro"},undefined:{primary:"indefinido"},value:{primary:"valor"},window:{primary:"janela"},you:{primary:"voc\u00ea"},your:{primary:"seu"},yourself:{primary:"voc\u00ea mesmo"}},attributes:{attribute:{primary:"atributo"},attributes:{primary:"atributos"},class:{primary:"classe"},classes:{primary:"classes"},properties:{primary:"propriedades"},property:{primary:"propriedade"},style:{primary:"estilo"},styles:{primary:"estilos"}},expressions:{at:{primary:"em"},characters:{primary:"caracteres"},children:{primary:"filhos"},closest:{primary:"maispr\u00f3ximo"},empty:{primary:"vazio"},"ends with":{primary:"termina com"},exclusive:{primary:"exclusivo"},first:{primary:"primeiro"},"ignoring case":{primary:"ignorando mai\u00fasculas"},inclusive:{primary:"inclusivo"},"joined by":{primary:"unido por"},last:{primary:"\u00faltimo"},"mapped to":{primary:"mapeado para"},next:{primary:"pr\u00f3ximo"},no:{primary:"nenhum"},parent:{primary:"pai"},prev:{primary:"ant"},previous:{primary:"anterior"},random:{primary:"aleat\u00f3rio"},some:{primary:"algum"},"sorted by":{primary:"ordenado por"},"split by":{primary:"dividido por"},"starts with":{primary:"come\u00e7a com"},within:{primary:"dentro"}}});_u("qu",{events:{blur:{primary:"paqariy"},change:{primary:"kambiay"},click:{primary:"\u00f1itiy"},dblclick:{primary:"dblclick"},focus:{primary:"qhaway"},input:{primary:"yaykuchiy"},keydown:{primary:"llave uray"},keypress:{primary:"keypress"},keyup:{primary:"llave hawa"},load:{primary:"apakuy"},mousedown:{primary:"rat\u00f1itiy"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mousemove:{primary:"mousemove"},mouseout:{primary:"mouseout"},mouseover:{primary:"mouseover"},mouseup:{primary:"rathuqariy"},reset:{primary:"musuqchay"},resize:{primary:"hatun_kay"},scroll:{primary:"kunray"},submit:{primary:"apaykachay"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"unload"}},logical:{and:{primary:"hinallataq"},changes:{primary:"tukurikun"},contains:{primary:"ukupi_kan"},else:{primary:"manachus"},end:{primary:"tukuy"},equals:{primary:"kikin"},exists:{primary:"tiyan"},has:{primary:"kachkan"},have:{primary:"kachkani"},includes:{primary:"churasqa"},is:{primary:"kanqa"},live:{primary:"kawsay"},matches:{primary:"tupan"},not:{primary:"mana"},or:{primary:"utaq"},otherwise:{primary:"huk_kaqpi"},then:{primary:"chayqa"},when:{primary:"maykama"},where:{primary:"maypi"}},temporal:{h:{primary:"h"},hour:{primary:"hora"},hours:{primary:"horakuna"},millisecond:{primary:"iskay_paqta_sikundu"},milliseconds:{primary:"iskay_paqta_sikundukuna"},min:{primary:"m"},minute:{primary:"minutu"},minutes:{primary:"minutukuna"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"sikundu"},seconds:{primary:"sikundukuna"},times:{primary:"kuti"}},values:{body:{primary:"kurku"},detail:{primary:"sut_iy"},document:{primary:"qillqa"},element:{primary:"raku"},event:{primary:"ruway"},false:{primary:"llulla"},it:{primary:"chay"},its:{primary:"chaypaq"},me:{primary:"noqa"},my:{primary:"noqaq"},myself:{primary:"noqa killa"},null:{primary:"null"},result:{primary:"lluqsiy"},target:{primary:"punta"},true:{primary:"cheqaq"},undefined:{primary:"mana_riqsisqa"},value:{primary:"chanin"},window:{primary:"k_iri"},you:{primary:"qam"},your:{primary:"qampaq"},yourself:{primary:"qam killa"}},attributes:{attribute:{primary:"kaq"},attributes:{primary:"kaqkuna"},class:{primary:"ayllu"},classes:{primary:"ayllukuna"},properties:{primary:"kanaykuna"},property:{primary:"kanay"},style:{primary:"sami"},styles:{primary:"samikuna"}},expressions:{at:{primary:"pi"},characters:{primary:"sanampa"},children:{primary:"wawakuna"},closest:{primary:"kaylla"},empty:{primary:"chusaq"},"ends with":{primary:"tukusqa wan"},first:{primary:"\u00f1awpaq"},"ignoring case":{primary:"hatun-huchuy qillqata-saqiy"},"joined by":{primary:"hu\u00f1usqa"},last:{primary:"qhipa"},"mapped to":{primary:"kay kaqman"},next:{primary:"qhipantin"},no:{primary:"mana_kanchu"},parent:{primary:"mama_tayta"},prev:{primary:"\u00f1awpaq"},previous:{primary:"\u00f1awpaqnin"},random:{primary:"imaymanata"},some:{primary:"wakin"},"sorted by":{primary:"niqpi ruwasqa"},"split by":{primary:"rakisqa"},"starts with":{primary:"qallarisqa wan"},within:{primary:"ukupi"}}});_u("ru",{events:{blur:{primary:"\u043f\u043e\u0442\u0435\u0440\u044f_\u0444\u043e\u043a\u0443\u0441\u0430"},change:{primary:"\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435"},click:{primary:"\u043a\u043b\u0438\u043a"},dblclick:{primary:"\u0434\u0432\u043e\u0439\u043d\u043e\u0439_\u043a\u043b\u0438\u043a"},focus:{primary:"\u0444\u043e\u043a\u0443\u0441"},input:{primary:"\u0432\u0432\u043e\u0434"},keydown:{primary:"\u043a\u043b\u0430\u0432\u0438\u0448\u0430_\u0432\u043d\u0438\u0437"},keypress:{primary:"\u043d\u0430\u0436\u0430\u0442\u0438\u0435_\u043a\u043b\u0430\u0432\u0438\u0448\u0438"},keyup:{primary:"\u043a\u043b\u0430\u0432\u0438\u0448\u0430_\u0432\u0432\u0435\u0440\u0445"},load:{primary:"\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430"},mousedown:{primary:"\u043c\u044b\u0448\u044c\u0432\u043d\u0438\u0437"},mouseenter:{primary:"\u043c\u044b\u0448\u044c_\u0432\u0445\u043e\u0434"},mouseleave:{primary:"\u043c\u044b\u0448\u044c_\u0432\u044b\u0445\u043e\u0434"},mousemove:{primary:"\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435_\u043c\u044b\u0448\u0438"},mouseout:{primary:"\u0443\u0445\u043e\u0434"},mouseover:{primary:"\u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0435"},mouseup:{primary:"\u043c\u044b\u0448\u044c\u0432\u0432\u0435\u0440\u0445"},reset:{primary:"\u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c"},resize:{primary:"\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u0440\u0430\u0437\u043c\u0435\u0440\u0430"},scroll:{primary:"\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430"},submit:{primary:"\u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430"},touchcancel:{primary:"\u043a\u0430\u0441\u0430\u043d\u0438\u0435_\u043e\u0442\u043c\u0435\u043d\u0430"},touchend:{primary:"\u043a\u0430\u0441\u0430\u043d\u0438\u0435_\u043a\u043e\u043d\u0435\u0446"},touchmove:{primary:"\u043a\u0430\u0441\u0430\u043d\u0438\u0435_\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435"},touchstart:{primary:"\u043a\u0430\u0441\u0430\u043d\u0438\u0435_\u043d\u0430\u0447\u0430\u043b\u043e"},unload:{primary:"\u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430"}},logical:{and:{primary:"\u0438"},changes:{primary:"\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f"},contains:{primary:"\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442"},else:{primary:"\u0438\u043d\u0430\u0447\u0435"},empty:{primary:"\u043f\u0443\u0441\u0442\u043e\u0439"},end:{primary:"\u043a\u043e\u043d\u0435\u0446"},equals:{primary:"\u0440\u0430\u0432\u043d\u043e"},exists:{primary:"\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442"},has:{primary:"\u0438\u043c\u0435\u0435\u0442"},have:{primary:"\u0438\u043c\u0435\u044e"},includes:{primary:"\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442"},is:{primary:"\u0435\u0441\u0442\u044c"},isNot:{primary:"\u043d\u0435_\u0435\u0441\u0442\u044c"},live:{primary:"\u0436\u0438\u0432\u043e\u0439"},matches:{primary:"\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442"},not:{primary:"\u043d\u0435"},or:{primary:"\u0438\u043b\u0438"},otherwise:{primary:"\u0432_\u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c_\u0441\u043b\u0443\u0447\u0430\u0435"},then:{primary:"\u0437\u0430\u0442\u0435\u043c"},when:{primary:"\u043a\u043e\u0433\u0434\u0430"},where:{primary:"\u0433\u0434\u0435"}},temporal:{every:{primary:"\u043a\u0430\u0436\u0434\u044b\u0439"},forever:{primary:"\u0432\u0441\u0435\u0433\u0434\u0430"},h:{primary:"\u0447"},hour:{primary:"\u0447\u0430\u0441"},hours:{primary:"\u0447\u0430\u0441\u043e\u0432"},millisecond:{primary:"\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430"},milliseconds:{primary:"\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434"},min:{primary:"\u043c\u0438\u043d"},minute:{primary:"\u043c\u0438\u043d\u0443\u0442\u0430"},minutes:{primary:"\u043c\u0438\u043d\u0443\u0442"},ms:{primary:"\u043c\u0441"},once:{primary:"\u043e\u0434\u043d\u0430\u0436\u0434\u044b"},s:{primary:"\u0441"},second:{primary:"\u0441\u0435\u043a\u0443\u043d\u0434\u0430"},seconds:{primary:"\u0441\u0435\u043a\u0443\u043d\u0434"},until:{primary:"\u0434\u043e"},times:{primary:"\u0440\u0430\u0437"}},values:{body:{primary:"\u0442\u0435\u043b\u043e"},closest:{primary:"\u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439"},detail:{primary:"\u0434\u0435\u0442\u0430\u043b\u0438"},document:{primary:"\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442"},element:{primary:"\u044d\u043b\u0435\u043c\u0435\u043d\u0442"},event:{primary:"\u0441\u043e\u0431\u044b\u0442\u0438\u0435"},false:{primary:"\u043b\u043e\u0436\u044c"},first:{primary:"\u043f\u0435\u0440\u0432\u044b\u0439"},it:{primary:"\u044d\u0442\u043e"},its:{primary:"\u0435\u0433\u043e"},last:{primary:"\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439"},me:{primary:"\u044f"},my:{primary:"\u043c\u043e\u0439"},myself:{primary:"\u044f_\u0441\u0430\u043c"},next:{primary:"\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439"},null:{primary:"\u043d\u0438\u0447\u0435\u0433\u043e"},parent:{primary:"\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c"},previous:{primary:"\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439"},result:{primary:"\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442"},target:{primary:"\u0446\u0435\u043b\u044c"},true:{primary:"\u0438\u0441\u0442\u0438\u043d\u0430"},undefined:{primary:"\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e"},value:{primary:"\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"},window:{primary:"\u043e\u043a\u043d\u043e"},you:{primary:"\u0442\u044b"},your:{primary:"\u0442\u0432\u043e\u0439"},yourself:{primary:"\u0441\u0430\u043c"}},attributes:{attribute:{primary:"\u0430\u0442\u0440\u0438\u0431\u0443\u0442"},attributes:{primary:"\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b"},checked:{primary:"\u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043e"},class:{primary:"\u043a\u043b\u0430\u0441\u0441"},classes:{primary:"\u043a\u043b\u0430\u0441\u0441\u044b"},disabled:{primary:"\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043e"},hidden:{primary:"\u0441\u043a\u0440\u044b\u0442\u043e"},html:{primary:"html"},properties:{primary:"\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430"},property:{primary:"\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e"},readonly:{primary:"\u0442\u043e\u043b\u044c\u043a\u043e_\u0447\u0442\u0435\u043d\u0438\u0435"},required:{primary:"\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e"},selected:{primary:"\u0432\u044b\u0431\u0440\u0430\u043d\u043e"},style:{primary:"\u0441\u0442\u0438\u043b\u044c"},styles:{primary:"\u0441\u0442\u0438\u043b\u0438"},text:{primary:"\u0442\u0435\u043a\u0441\u0442"}},expressions:{at:{primary:"\u0432"},characters:{primary:"\u0441\u0438\u043c\u0432\u043e\u043b\u044b"},children:{primary:"\u0434\u0435\u0442\u0438"},closest:{primary:"\u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439"},empty:{primary:"\u043f\u0443\u0441\u0442\u043e\u0439"},"ends with":{primary:"\u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f_\u043d\u0430"},exclusive:{primary:"\u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e"},first:{primary:"\u043f\u0435\u0440\u0432\u044b\u0439"},"ignoring case":{primary:"\u0431\u0435\u0437_\u0443\u0447\u0451\u0442\u0430_\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430"},inclusive:{primary:"\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e"},"joined by":{primary:"\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043e_\u0447\u0435\u0440\u0435\u0437"},last:{primary:"\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439"},"mapped to":{primary:"\u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043e_\u0432"},next:{primary:"\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439"},no:{primary:"\u043d\u0435\u0442"},parent:{primary:"\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c"},prev:{primary:"\u043f\u0440\u0435\u0434"},previous:{primary:"\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439"},random:{primary:"\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439"},some:{primary:"\u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435"},"sorted by":{primary:"\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e_\u043f\u043e"},"split by":{primary:"\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043e_\u043f\u043e"},"starts with":{primary:"\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f_\u0441"},within:{primary:"\u0432\u043d\u0443\u0442\u0440\u0438"}}});_u("sw",{events:{blur:{primary:"blur"},change:{primary:"kubadilisha"},click:{primary:"bonyeza"},dblclick:{primary:"dblclick"},focus:{primary:"lenga"},input:{primary:"ingizo"},keydown:{primary:"kitufe_shuka"},keypress:{primary:"keypress"},keyup:{primary:"kitufe_juu"},load:{primary:"pakia"},mousedown:{primary:"panya_shuka"},mouseenter:{primary:"panya_ingia"},mouseleave:{primary:"panya_toka"},mousemove:{primary:"panya_sogea"},mouseout:{primary:"panya_nje"},mouseover:{primary:"sogeza juu"},mouseup:{primary:"panya_juu"},reset:{primary:"reset"},resize:{primary:"badilisha_ukubwa"},scroll:{primary:"sogeza"},submit:{primary:"wasilisha"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"shuka"}},logical:{and:{primary:"na"},changes:{primary:"inabadilika"},contains:{primary:"ina"},else:{primary:"sivyo"},end:{primary:"mwisho"},equals:{primary:"sawa"},exists:{primary:"ipo"},has:{primary:"ana"},have:{primary:"nina"},includes:{primary:"pamoja"},is:{primary:"ni"},live:{primary:"mubashara"},matches:{primary:"inafanana"},not:{primary:"si"},or:{primary:"au"},otherwise:{primary:"vinginevyo"},then:{primary:"kisha"},when:{primary:"wakati"},where:{primary:"wapi"}},temporal:{h:{primary:"sa"},hour:{primary:"saa"},hours:{primary:"masaa"},millisecond:{primary:"millisekunde"},milliseconds:{primary:"millisekunde"},min:{primary:"dk"},minute:{primary:"dakika"},minutes:{primary:"dakika"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"sekunde"},seconds:{primary:"sekunde"},times:{primary:"mara"}},values:{body:{primary:"mwili"},detail:{primary:"maelezo"},document:{primary:"hati"},element:{primary:"kipengele"},event:{primary:"tukio"},false:{primary:"uongo"},it:{primary:"hiyo"},its:{primary:"yake"},me:{primary:"mimi"},my:{primary:"yangu"},myself:{primary:"mimi mwenyewe"},null:{primary:"null"},result:{primary:"matokeo"},target:{primary:"lengo"},true:{primary:"kweli"},undefined:{primary:"haijafafanuliwa"},value:{primary:"thamani"},window:{primary:"dirisha"},you:{primary:"wewe"},your:{primary:"yako"},yourself:{primary:"wewe mwenyewe"}},attributes:{attribute:{primary:"sifa"},attributes:{primary:"sifa"},class:{primary:"darasa"},classes:{primary:"madarasa"},properties:{primary:"mali"},property:{primary:"mali"},style:{primary:"mtindo"},styles:{primary:"mitindo"}},expressions:{at:{primary:"katika"},characters:{primary:"herufi"},children:{primary:"watoto"},closest:{primary:"karibu"},empty:{primary:"tupu"},"ends with":{primary:"huisha na"},first:{primary:"kwanza"},"ignoring case":{primary:"puuza herufi kubwa ndogo"},"joined by":{primary:"kuunganishwa kwa"},last:{primary:"wamwisho"},"mapped to":{primary:"kubadilishwa kuwa"},next:{primary:"ijayo"},no:{primary:"hakuna"},parent:{primary:"mzazi"},prev:{primary:"awali"},previous:{primary:"iliyopita"},random:{primary:"nasibu"},some:{primary:"baadhi"},"sorted by":{primary:"kupangwa kwa"},"split by":{primary:"kugawanywa kwa"},"starts with":{primary:"huanza na"},within:{primary:"ndani_ya"}}});_u("th",{events:{blur:{primary:"\u0e40\u0e1a\u0e25\u0e2d"},change:{primary:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07"},click:{primary:"\u0e04\u0e25\u0e34\u0e01"},every:{primary:"\u0e17\u0e38\u0e01"},focus:{primary:"\u0e42\u0e1f\u0e01\u0e31\u0e2a"},input:{primary:"\u0e2d\u0e34\u0e19\u0e1e\u0e38\u0e15"},keydown:{primary:"\u0e01\u0e14\u0e04\u0e35\u0e22\u0e4c"},keyup:{primary:"\u0e1b\u0e25\u0e48\u0e2d\u0e22\u0e04\u0e35\u0e22\u0e4c"},load:{primary:"\u0e42\u0e2b\u0e25\u0e14"},mouseout:{primary:"\u0e40\u0e21\u0e32\u0e2a\u0e4c\u0e2d\u0e2d\u0e01"},mouseover:{primary:"\u0e40\u0e21\u0e32\u0e2a\u0e4c\u0e40\u0e02\u0e49\u0e32"},reset:{primary:"\u0e23\u0e35\u0e40\u0e0b\u0e47\u0e15"},resize:{primary:"\u0e1b\u0e23\u0e31\u0e1a\u0e02\u0e19\u0e32\u0e14"},scroll:{primary:"\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19"},submit:{primary:"\u0e2a\u0e48\u0e07"}},logical:{and:{primary:"\u0e41\u0e25\u0e30"},changes:{primary:"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19"},else:{primary:"\u0e44\u0e21\u0e48\u0e07\u0e31\u0e49\u0e19"},empty:{primary:"\u0e27\u0e48\u0e32\u0e07"},end:{primary:"\u0e08\u0e1a"},exists:{primary:"\u0e21\u0e35\u0e2d\u0e22\u0e39\u0e48"},false:{primary:"\u0e40\u0e17\u0e47\u0e08"},has:{primary:"\u0e21\u0e35"},have:{primary:"\u0e21\u0e35"},if:{primary:"\u0e16\u0e49\u0e32"},is:{primary:"\u0e40\u0e1b\u0e47\u0e19"},live:{primary:"\u0e2a\u0e14"},not:{primary:"\u0e44\u0e21\u0e48"},null:{primary:"null"},or:{primary:"\u0e2b\u0e23\u0e37\u0e2d"},then:{primary:"\u0e41\u0e25\u0e49\u0e27"},true:{primary:"\u0e08\u0e23\u0e34\u0e07"},undefined:{primary:"\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14"},when:{primary:"\u0e40\u0e21\u0e37\u0e48\u0e2d"},where:{primary:"\u0e17\u0e35\u0e48\u0e44\u0e2b\u0e19"}},temporal:{forever:{primary:"\u0e15\u0e25\u0e2d\u0e14\u0e44\u0e1b"},hours:{primary:"\u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07"},milliseconds:{primary:"\u0e21\u0e34\u0e25\u0e25\u0e34\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"},minutes:{primary:"\u0e19\u0e32\u0e17\u0e35"},ms:{primary:"\u0e21\u0e27"},now:{primary:"\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49"},s:{primary:"\u0e27\u0e34"},seconds:{primary:"\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"},times:{primary:"\u0e04\u0e23\u0e31\u0e49\u0e07"}},values:{body:{primary:"\u0e1a\u0e2d\u0e14\u0e35\u0e49"},event:{primary:"\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c"},it:{primary:"\u0e21\u0e31\u0e19"},its:{primary:"\u0e02\u0e2d\u0e07\u0e21\u0e31\u0e19"},me:{primary:"\u0e09\u0e31\u0e19"},my:{primary:"\u0e02\u0e2d\u0e07\u0e09\u0e31\u0e19"},result:{primary:"\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c"},target:{primary:"\u0e40\u0e1b\u0e49\u0e32\u0e2b\u0e21\u0e32\u0e22"},you:{primary:"\u0e04\u0e38\u0e13"},your:{primary:"\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13"}},attributes:{checked:{primary:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e41\u0e25\u0e49\u0e27"},class:{primary:"\u0e04\u0e25\u0e32\u0e2a"},disabled:{primary:"\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19"},html:{primary:"\u0e40\u0e2d\u0e0a\u0e17\u0e35\u0e40\u0e2d\u0e47\u0e21\u0e41\u0e2d\u0e25"},id:{primary:"\u0e44\u0e2d\u0e14\u0e35"},style:{primary:"\u0e2a\u0e44\u0e15\u0e25\u0e4c"},text:{primary:"\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21"},value:{primary:"\u0e04\u0e48\u0e32"}},expressions:{characters:{primary:"\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30"},children:{primary:"\u0e25\u0e39\u0e01"},closest:{primary:"\u0e43\u0e01\u0e25\u0e49\u0e2a\u0e38\u0e14"},empty:{primary:"\u0e25\u0e49\u0e32\u0e07"},"ends with":{primary:"\u0e25\u0e07\u0e17\u0e49\u0e32\u0e22\u0e14\u0e49\u0e27\u0e22"},exclusive:{primary:"\u0e22\u0e01\u0e40\u0e27\u0e49\u0e19"},first:{primary:"\u0e41\u0e23\u0e01"},"ignoring case":{primary:"\u0e44\u0e21\u0e48\u0e2a\u0e19\u0e15\u0e31\u0e27\u0e1e\u0e34\u0e21\u0e1e\u0e4c"},inclusive:{primary:"\u0e23\u0e27\u0e21"},index:{primary:"\u0e14\u0e31\u0e0a\u0e19\u0e35"},"joined by":{primary:"\u0e23\u0e27\u0e21\u0e14\u0e49\u0e27\u0e22"},last:{primary:"\u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22"},length:{primary:"\u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27"},"mapped to":{primary:"\u0e41\u0e1b\u0e25\u0e07\u0e40\u0e1b\u0e47\u0e19"},next:{primary:"\u0e16\u0e31\u0e14\u0e44\u0e1b"},parent:{primary:"\u0e15\u0e49\u0e19\u0e17\u0e32\u0e07"},previous:{primary:"\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32"},random:{primary:"\u0e2a\u0e38\u0e48\u0e21"},"sorted by":{primary:"\u0e40\u0e23\u0e35\u0e22\u0e07\u0e15\u0e32\u0e21"},"split by":{primary:"\u0e41\u0e22\u0e01\u0e14\u0e49\u0e27\u0e22"},"starts with":{primary:"\u0e02\u0e36\u0e49\u0e19\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22"}}});_u("tl",{events:{blur:{primary:"blur"},change:{primary:"change"},click:{primary:"click"},dblclick:{primary:"dblclick"},every:{primary:"bawat"},focus:{primary:"focus"},input:{primary:"input"},keydown:{primary:"keydown"},keypress:{primary:"keypress"},keyup:{primary:"keyup"},load:{primary:"load"},mousedown:{primary:"mousedown"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mousemove:{primary:"mousemove"},mouseout:{primary:"mouseout"},mouseover:{primary:"mouseover"},mouseup:{primary:"mouseup"},reset:{primary:"reset"},resize:{primary:"resize"},scroll:{primary:"scroll"},submit:{primary:"submit"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"unload"}},logical:{and:{primary:"at"},changes:{primary:"nagbabago"},contains:{primary:"naglalaman"},else:{primary:"kung_hindi"},empty:{primary:"walang_laman"},end:{primary:"wakas"},equals:{primary:"katumbas"},exists:{primary:"may"},false:{primary:"mali"},has:{primary:"may"},have:{primary:"may"},if:{primary:"kung"},includes:{primary:"naglalaman"},is:{primary:"ay"},live:{primary:"live"},matches:{primary:"tumutugma"},not:{primary:"hindi"},null:{primary:"wala"},or:{primary:"o"},otherwise:{primary:"kung_hindi_man"},then:{primary:"pagkatapos"},true:{primary:"totoo"},undefined:{primary:"hindi_tinukoy"},when:{primary:"kapag"},where:{primary:"kung_saan"}},temporal:{forever:{primary:"magpakailanman"},h:{primary:"h"},hour:{primary:"oras"},hours:{primary:"oras"},millisecond:{primary:"milisegundo"},milliseconds:{primary:"milisegundo"},min:{primary:"min"},minute:{primary:"minuto"},minutes:{primary:"minuto"},ms:{primary:"ms"},now:{primary:"ngayon"},s:{primary:"s"},second:{primary:"segundo"},seconds:{primary:"segundo"},times:{primary:"beses"}},values:{body:{primary:"katawan"},detail:{primary:"detalye"},document:{primary:"dokumento"},element:{primary:"elemento"},event:{primary:"pangyayari"},false:{primary:"mali"},it:{primary:"ito"},its:{primary:"nito"},me:{primary:"ako"},my:{primary:"aking"},myself:{primary:"sarili_ko"},null:{primary:"wala"},result:{primary:"resulta"},target:{primary:"target"},true:{primary:"totoo"},undefined:{primary:"hindi_tinukoy"},value:{primary:"halaga"},window:{primary:"bintana"},you:{primary:"ikaw"},your:{primary:"iyong"},yourself:{primary:"sarili_mo"}},attributes:{attribute:{primary:"katangian"},attributes:{primary:"mga_katangian"},checked:{primary:"naka_tsek"},class:{primary:"klase"},classes:{primary:"mga_klase"},disabled:{primary:"hindi_pinagana"},html:{primary:"html"},id:{primary:"id"},properties:{primary:"mga_ari_arian"},property:{primary:"ari_arian"},style:{primary:"estilo"},styles:{primary:"mga_estilo"},text:{primary:"teksto"},value:{primary:"halaga"}},expressions:{at:{primary:"sa"},characters:{primary:"karakter"},children:{primary:"mga_anak"},closest:{primary:"pinakamalapit"},empty:{primary:"walang_laman"},"ends with":{primary:"nagtatapos_sa"},exclusive:{primary:"bukod"},first:{primary:"una"},"ignoring case":{primary:"huwag_pansinin_ang_case"},inclusive:{primary:"kasama"},index:{primary:"indeks"},"joined by":{primary:"pinagsama_sa"},last:{primary:"huli"},length:{primary:"haba"},"mapped to":{primary:"binago_sa"},next:{primary:"susunod"},no:{primary:"walang"},parent:{primary:"magulang"},prev:{primary:"nakaraan"},previous:{primary:"nakaraan"},random:{primary:"random"},some:{primary:"ilan"},"sorted by":{primary:"nakaayos_ayon_sa"},"split by":{primary:"hinati_sa"},"starts with":{primary:"nagsisimula_sa"},within:{primary:"sa_loob_ng"}}});_u("tr",{events:{blur:{primary:"bulan\u0131k"},change:{primary:"de\u011fi\u015fim"},click:{primary:"t\u0131klama"},dblclick:{primary:"dblclick"},focus:{primary:"odak"},input:{primary:"giri\u015f"},keydown:{primary:"tu\u015fbasma"},keypress:{primary:"keypress"},keyup:{primary:"tu\u015fb\u0131rakma"},load:{primary:"y\u00fckle"},mousedown:{primary:"farebas"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mousemove:{primary:"mousemove"},mouseout:{primary:"fared\u0131\u015f\u0131nda"},mouseover:{primary:"farei\u00e7inde"},mouseup:{primary:"fareb\u0131rak"},reset:{primary:"s\u0131f\u0131rla"},resize:{primary:"boyutland\u0131rma"},scroll:{primary:"kayd\u0131r"},submit:{primary:"g\u00f6nderme"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"touchmove"},touchstart:{primary:"touchstart"},unload:{primary:"unload"}},logical:{and:{primary:"ve"},changes:{primary:"de\u011fi\u015fti\u011finde"},contains:{primary:"i\u00e7erir"},else:{primary:"yoksa"},end:{primary:"son"},equals:{primary:"e\u015fittir"},exists:{primary:"var"},has:{primary:"var"},have:{primary:"var"},includes:{primary:"i\u00e7erir"},is:{primary:"dir"},live:{primary:"canl\u0131"},matches:{primary:"e\u015fle\u015fir"},not:{primary:"de\u011fil"},or:{primary:"veya"},otherwise:{primary:"aksi_halde"},then:{primary:"ard\u0131ndan"},when:{primary:"iken"},where:{primary:"nerede"}},temporal:{h:{primary:"sa"},hour:{primary:"saat"},hours:{primary:"saat"},millisecond:{primary:"milisaniye"},milliseconds:{primary:"milisaniye"},min:{primary:"dk"},minute:{primary:"dakika"},minutes:{primary:"dakika"},ms:{primary:"ms"},s:{primary:"s"},second:{primary:"saniye"},seconds:{primary:"saniye"},times:{primary:"kez"}},values:{body:{primary:"g\u00f6vde"},detail:{primary:"detay"},document:{primary:"belge"},element:{primary:"\u00f6\u011fe"},event:{primary:"olay"},false:{primary:"yanl\u0131\u015f"},it:{primary:"o"},its:{primary:"onun"},me:{primary:"ben"},my:{primary:"benim"},myself:{primary:"kendim"},null:{primary:"null"},result:{primary:"sonu\u00e7"},target:{primary:"hedef"},true:{primary:"do\u011fru"},undefined:{primary:"tan\u0131ms\u0131z"},value:{primary:"de\u011fer"},window:{primary:"pencere"},you:{primary:"sen"},your:{primary:"senin"},yourself:{primary:"kendin"}},attributes:{attribute:{primary:"\u00f6zellik"},attributes:{primary:"\u00f6zellikler"},class:{primary:"s\u0131n\u0131f"},classes:{primary:"s\u0131n\u0131flar"},properties:{primary:"\u00f6zellikler"},property:{primary:"\u00f6zellik"},style:{primary:"stil"},styles:{primary:"stiller"}},expressions:{at:{primary:"de"},characters:{primary:"karakterler"},children:{primary:"\u00e7ocuklar"},closest:{primary:"enyak\u0131n"},empty:{primary:"bo\u015f"},"ends with":{primary:"ile biter"},exclusive:{primary:"hari\u00e7"},first:{primary:"ilk"},"ignoring case":{primary:"b\u00fcy\u00fck k\u00fc\u00e7\u00fck harf duyars\u0131z"},inclusive:{primary:"dahil"},"joined by":{primary:"ile birle\u015ftirilmi\u015f"},last:{primary:"sonuncu"},"mapped to":{primary:"ye d\u00f6n\u00fc\u015ft\u00fcr\u00fclm\u00fc\u015f"},next:{primary:"sonraki"},no:{primary:"yok"},parent:{primary:"ebeveyn"},prev:{primary:"\u00f6nc"},previous:{primary:"\u00f6nceki"},random:{primary:"rastgele"},some:{primary:"baz\u0131"},"sorted by":{primary:"g\u00f6re s\u0131ral\u0131"},"split by":{primary:"ile b\u00f6l\u00fcnm\u00fc\u015f"},"starts with":{primary:"ile ba\u015flar"},within:{primary:"i\u00e7inde"}}});_u("uk",{events:{blur:{primary:"\u0440\u043e\u0437\u0444\u043e\u043a\u0443\u0441"},change:{primary:"\u0437\u043c\u0456\u043d\u0430"},click:{primary:"\u043a\u043b\u0456\u043a"},dblclick:{primary:"\u043f\u043e\u0434\u0432\u0456\u0439\u043d\u0438\u0439_\u043a\u043b\u0456\u043a"},focus:{primary:"\u0444\u043e\u043a\u0443\u0441"},input:{primary:"\u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f"},keydown:{primary:"\u043a\u043b\u0430\u0432\u0456\u0448\u0430_\u0432\u043d\u0438\u0437"},keypress:{primary:"\u043d\u0430\u0442\u0438\u0441\u043a\u0430\u043d\u043d\u044f_\u043a\u043b\u0430\u0432\u0456\u0448\u0456"},keyup:{primary:"\u043a\u043b\u0430\u0432\u0456\u0448\u0430_\u0432\u0433\u043e\u0440\u0443"},load:{primary:"\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f"},mousedown:{primary:"\u043c\u0438\u0448\u0430\u0432\u043d\u0438\u0437"},mouseenter:{primary:"\u043c\u0438\u0448\u0430_\u0432\u0445\u0456\u0434"},mouseleave:{primary:"\u043c\u0438\u0448\u0430_\u0432\u0438\u0445\u0456\u0434"},mousemove:{primary:"\u0440\u0443\u0445_\u043c\u0438\u0448\u0456"},mouseout:{primary:"\u0432\u0456\u0434\u0432\u0435\u0434\u0435\u043d\u043d\u044f"},mouseover:{primary:"\u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u044f"},mouseup:{primary:"\u043c\u0438\u0448\u0430\u0432\u0433\u043e\u0440\u0443"},reset:{primary:"\u0441\u043a\u0438\u043d\u0443\u0442\u0438"},resize:{primary:"\u0437\u043c\u0456\u043d\u0430\u0440\u043e\u0437\u043c\u0456\u0440\u0443"},scroll:{primary:"\u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430"},submit:{primary:"\u043d\u0430\u0434\u0441\u0438\u043b\u0430\u043d\u043d\u044f"},touchcancel:{primary:"\u0434\u043e\u0442\u0438\u043a_\u0441\u043a\u0430\u0441\u0443\u0432\u0430\u043d\u043d\u044f"},touchend:{primary:"\u0434\u043e\u0442\u0438\u043a_\u043a\u0456\u043d\u0435\u0446\u044c"},touchmove:{primary:"\u0434\u043e\u0442\u0438\u043a_\u0440\u0443\u0445"},touchstart:{primary:"\u0434\u043e\u0442\u0438\u043a_\u043f\u043e\u0447\u0430\u0442\u043e\u043a"},unload:{primary:"\u0432\u0438\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f"}},logical:{and:{primary:"\u0456"},changes:{primary:"\u0437\u043c\u0456\u043d\u044e\u0454\u0442\u044c\u0441\u044f"},contains:{primary:"\u043c\u0456\u0441\u0442\u0438\u0442\u044c"},else:{primary:"\u0456\u043d\u0430\u043a\u0448\u0435"},empty:{primary:"\u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439"},end:{primary:"\u043a\u0456\u043d\u0435\u0446\u044c"},equals:{primary:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454"},exists:{primary:"\u0456\u0441\u043d\u0443\u0454"},has:{primary:"\u043c\u0430\u0454"},have:{primary:"\u043c\u0430\u044e"},includes:{primary:"\u0432\u043a\u043b\u044e\u0447\u0430\u0454"},is:{primary:"\u0454"},isNot:{primary:"\u043d\u0435_\u0454"},live:{primary:"\u0436\u0438\u0432\u0438\u0439"},matches:{primary:"\u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454"},not:{primary:"\u043d\u0435"},or:{primary:"\u0430\u0431\u043e"},otherwise:{primary:"\u0432_\u0456\u043d\u0448\u043e\u043c\u0443_\u0432\u0438\u043f\u0430\u0434\u043a\u0443"},then:{primary:"\u0442\u043e\u0434\u0456"},when:{primary:"\u043a\u043e\u043b\u0438"},where:{primary:"\u0434\u0435"}},temporal:{every:{primary:"\u043a\u043e\u0436\u043d\u0438\u0439"},forever:{primary:"\u0437\u0430\u0432\u0436\u0434\u0438"},h:{primary:"\u0433\u043e\u0434"},hour:{primary:"\u0433\u043e\u0434\u0438\u043d\u0430"},hours:{primary:"\u0433\u043e\u0434\u0438\u043d"},millisecond:{primary:"\u043c\u0456\u043b\u0456\u0441\u0435\u043a\u0443\u043d\u0434\u0430"},milliseconds:{primary:"\u043c\u0456\u043b\u0456\u0441\u0435\u043a\u0443\u043d\u0434"},min:{primary:"\u0445\u0432"},minute:{primary:"\u0445\u0432\u0438\u043b\u0438\u043d\u0430"},minutes:{primary:"\u0445\u0432\u0438\u043b\u0438\u043d"},ms:{primary:"\u043c\u0441"},once:{primary:"\u043e\u0434\u0438\u043d_\u0440\u0430\u0437"},s:{primary:"\u0441"},second:{primary:"\u0441\u0435\u043a\u0443\u043d\u0434\u0430"},seconds:{primary:"\u0441\u0435\u043a\u0443\u043d\u0434"},until:{primary:"\u0434\u043e"},times:{primary:"\u0440\u0430\u0437\u0456\u0432"}},values:{body:{primary:"\u0442\u0456\u043b\u043e"},closest:{primary:"\u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0438\u0439"},detail:{primary:"\u0434\u0435\u0442\u0430\u043b\u0456"},document:{primary:"\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442"},element:{primary:"\u0435\u043b\u0435\u043c\u0435\u043d\u0442"},event:{primary:"\u043f\u043e\u0434\u0456\u044f"},false:{primary:"\u0445\u0438\u0431\u043d\u0456\u0441\u0442\u044c"},first:{primary:"\u043f\u0435\u0440\u0448\u0438\u0439"},it:{primary:"\u0446\u0435"},its:{primary:"\u0439\u043e\u0433\u043e"},last:{primary:"\u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439"},me:{primary:"\u044f"},my:{primary:"\u043c\u0456\u0439"},myself:{primary:"\u044f_\u0441\u0430\u043c"},next:{primary:"\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439"},null:{primary:"\u043d\u0456\u0447\u043e\u0433\u043e"},parent:{primary:"\u0431\u0430\u0442\u044c\u043a\u0456\u0432\u0441\u044c\u043a\u0438\u0439"},previous:{primary:"\u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439"},result:{primary:"\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442"},target:{primary:"\u0446\u0456\u043b\u044c"},true:{primary:"\u0456\u0441\u0442\u0438\u043d\u0430"},undefined:{primary:"\u043d\u0435\u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043e"},value:{primary:"\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f"},window:{primary:"\u0432\u0456\u043a\u043d\u043e"},you:{primary:"\u0442\u0438"},your:{primary:"\u0442\u0432\u0456\u0439"},yourself:{primary:"\u0441\u0430\u043c"}},attributes:{attribute:{primary:"\u0430\u0442\u0440\u0438\u0431\u0443\u0442"},attributes:{primary:"\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0438"},checked:{primary:"\u043f\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043e"},class:{primary:"\u043a\u043b\u0430\u0441"},classes:{primary:"\u043a\u043b\u0430\u0441\u0438"},disabled:{primary:"\u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e"},hidden:{primary:"\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u043d\u043e"},html:{primary:"html"},properties:{primary:"\u0432\u043b\u0430\u0441\u0442\u0438\u0432\u043e\u0441\u0442\u0456"},property:{primary:"\u0432\u043b\u0430\u0441\u0442\u0438\u0432\u0456\u0441\u0442\u044c"},readonly:{primary:"\u043b\u0438\u0448\u0435_\u0447\u0438\u0442\u0430\u043d\u043d\u044f"},required:{primary:"\u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u043e"},selected:{primary:"\u0432\u0438\u0431\u0440\u0430\u043d\u043e"},style:{primary:"\u0441\u0442\u0438\u043b\u044c"},styles:{primary:"\u0441\u0442\u0438\u043b\u0456"},text:{primary:"\u0442\u0435\u043a\u0441\u0442"}},expressions:{at:{primary:"\u0432"},characters:{primary:"\u0441\u0438\u043c\u0432\u043e\u043b\u0438"},children:{primary:"\u0434\u0456\u0442\u0438"},closest:{primary:"\u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0438\u0439"},empty:{primary:"\u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439"},"ends with":{primary:"\u0437\u0430\u043a\u0456\u043d\u0447\u0443\u0454\u0442\u044c\u0441\u044f_\u043d\u0430"},exclusive:{primary:"\u0432\u0438\u043a\u043b\u044e\u0447\u043d\u043e"},first:{primary:"\u043f\u0435\u0440\u0448\u0438\u0439"},"ignoring case":{primary:"\u0431\u0435\u0437_\u0443\u0440\u0430\u0445\u0443\u0432\u0430\u043d\u043d\u044f_\u0440\u0435\u0433\u0456\u0441\u0442\u0440\u0443"},inclusive:{primary:"\u0432\u043a\u043b\u044e\u0447\u043d\u043e"},"joined by":{primary:"\u043e\u0431'\u0454\u0434\u043d\u0430\u043d\u043e_\u0447\u0435\u0440\u0435\u0437"},last:{primary:"\u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439"},"mapped to":{primary:"\u043f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u043e_\u043d\u0430"},next:{primary:"\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439"},no:{primary:"\u043d\u0456"},parent:{primary:"\u0431\u0430\u0442\u044c\u043a\u0456\u0432\u0441\u044c\u043a\u0438\u0439"},prev:{primary:"\u043f\u043e\u043f\u0435\u0440"},previous:{primary:"\u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439"},random:{primary:"\u0432\u0438\u043f\u0430\u0434\u043a\u043e\u0432\u0438\u0439"},some:{primary:"\u0434\u0435\u044f\u043a\u0456"},"sorted by":{primary:"\u0432\u0456\u0434\u0441\u043e\u0440\u0442\u043e\u0432\u0430\u043d\u043e_\u0437\u0430"},"split by":{primary:"\u0440\u043e\u0437\u0434\u0456\u043b\u0435\u043d\u043e_\u0437\u0430"},"starts with":{primary:"\u043f\u043e\u0447\u0438\u043d\u0430\u0454\u0442\u044c\u0441\u044f_\u0437"},within:{primary:"\u0432\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456"}}});_u("vi",{events:{blur:{primary:"blur"},change:{primary:"change"},click:{primary:"nh\u1ea5p"},dblclick:{primary:"dblclick"},focus:{primary:"focus"},input:{primary:"nh\u1eadp"},keydown:{primary:"keydown"},keypress:{primary:"keypress"},keyup:{primary:"keyup"},load:{primary:"load"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mouseout:{primary:"mouseout"},mouseover:{primary:"mouseover"},reset:{primary:"reset"},resize:{primary:"\u0111\u1ed5i k\u00edch th\u01b0\u1edbc"},scroll:{primary:"cu\u1ed9n"},submit:{primary:"n\u1ed9p"}},logical:{and:{primary:"v\u00e0"},changes:{primary:"thay \u0111\u1ed5i"},contains:{primary:"ch\u1ee9a"},else:{primary:"kh\u00f4ng th\u00ec"},empty:{primary:"tr\u1ed1ng"},end:{primary:"k\u1ebft th\u00fac"},equals:{primary:"b\u1eb1ng"},exists:{primary:"t\u1ed3n t\u1ea1i"},false:{primary:"sai"},has:{primary:"c\u00f3"},have:{primary:"c\u00f3"},is:{primary:"l\u00e0"},live:{primary:"live"},matches:{primary:"kh\u1edbp"},not:{primary:"kh\u00f4ng"},null:{primary:"r\u1ed7ng"},or:{primary:"ho\u1eb7c"},then:{primary:"r\u1ed3i"},true:{primary:"\u0111\u00fang"},when:{primary:"khi"},where:{primary:"\u1edf_\u0111\u00e2u"}},temporal:{always:{primary:"lu\u00f4n lu\u00f4n"},forever:{primary:"m\u00e3i m\u00e3i"},never:{primary:"kh\u00f4ng bao gi\u1edd"},now:{primary:"b\u00e2y gi\u1edd"},once:{primary:"m\u1ed9t l\u1ea7n"},sometimes:{primary:"\u0111\u00f4i khi"},times:{primary:"l\u1ea7n"},today:{primary:"h\u00f4m nay"},tomorrow:{primary:"ng\u00e0y mai"},twice:{primary:"hai l\u1ea7n"},yesterday:{primary:"h\u00f4m qua"}},values:{all:{primary:"t\u1ea5t c\u1ea3"},any:{primary:"b\u1ea5t k\u1ef3"},body:{primary:"body"},each:{primary:"m\u1ed7i"},event:{primary:"s\u1ef1 ki\u1ec7n"},every:{primary:"t\u1ea5t c\u1ea3"},false:{primary:"sai"},it:{primary:"n\u00f3"},its:{primary:"c\u1ee7a n\u00f3"},me:{primary:"t\u00f4i"},my:{primary:"c\u1ee7a t\u00f4i"},none:{primary:"kh\u00f4ng c\u00f3"},null:{primary:"r\u1ed7ng"},result:{primary:"k\u1ebft qu\u1ea3"},some:{primary:"m\u1ed9t s\u1ed1"},target:{primary:"m\u1ee5c ti\u00eau"},true:{primary:"\u0111\u00fang"},undefined:{primary:"kh\u00f4ng x\u00e1c \u0111\u1ecbnh"},you:{primary:"b\u1ea1n"},your:{primary:"c\u1ee7a b\u1ea1n"}},attributes:{checked:{primary:"\u0111\u01b0\u1ee3c ch\u1ecdn"},class:{primary:"l\u1edbp"},disabled:{primary:"v\u00f4 hi\u1ec7u"},hidden:{primary:"\u1ea9n"},href:{primary:"li\u00ean k\u1ebft"},html:{primary:"html"},id:{primary:"id"},selected:{primary:"\u0111\u01b0\u1ee3c ch\u1ecdn"},src:{primary:"ngu\u1ed3n"},style:{primary:"ki\u1ec3u"},text:{primary:"v\u0103n b\u1ea3n"},value:{primary:"gi\u00e1 tr\u1ecb"}},expressions:{characters:{primary:"k\u00fd t\u1ef1"},children:{primary:"con"},closest:{primary:"g\u1ea7n nh\u1ea5t"},empty:{primary:"l\u00e0m-r\u1ed7ng"},"ends with":{primary:"k\u1ebft th\u00fac b\u1eb1ng"},event:{primary:"s\u1ef1 ki\u1ec7n"},exclusive:{primary:"lo\u1ea1i tr\u1eeb"},first:{primary:"\u0111\u1ea7u ti\u00ean"},"ignoring case":{primary:"kh\u00f4ng ph\u00e2n bi\u1ec7t hoa th\u01b0\u1eddng"},inclusive:{primary:"bao g\u1ed3m"},it:{primary:"n\u00f3"},its:{primary:"c\u1ee7a n\u00f3"},"joined by":{primary:"n\u1ed1i b\u1edfi"},last:{primary:"cu\u1ed1i c\u00f9ng"},"mapped to":{primary:"\u00e1nh x\u1ea1 th\u00e0nh"},me:{primary:"t\u00f4i"},my:{primary:"c\u1ee7a t\u00f4i"},next:{primary:"ti\u1ebfp theo"},parent:{primary:"cha"},previous:{primary:"tr\u01b0\u1edbc \u0111\u00f3"},random:{primary:"ng\u1eabu nhi\u00ean"},result:{primary:"k\u1ebft qu\u1ea3"},"sorted by":{primary:"s\u1eafp x\u1ebfp theo"},"split by":{primary:"t\u00e1ch b\u1edfi"},"starts with":{primary:"b\u1eaft \u0111\u1ea7u b\u1eb1ng"},target:{primary:"m\u1ee5c ti\u00eau"}}});_u("zh",{events:{blur:{primary:"\u5931\u7126"},change:{primary:"\u6539\u53d8"},click:{primary:"\u70b9\u51fb"},dblclick:{primary:"\u53cc\u51fb"},focus:{primary:"\u805a\u7126"},input:{primary:"\u8f93\u5165"},keydown:{primary:"\u6309\u952e\u6309\u4e0b"},keypress:{primary:"keypress"},keyup:{primary:"\u677e\u952e"},load:{primary:"\u52a0\u8f7d"},mousedown:{primary:"mousedown"},mouseenter:{primary:"mouseenter"},mouseleave:{primary:"mouseleave"},mousemove:{primary:"\u9f20\u6807\u79fb\u52a8"},mouseout:{primary:"\u9f20\u6807\u79fb\u51fa"},mouseover:{primary:"\u9f20\u6807\u79fb\u5165"},mouseup:{primary:"mouseup"},reset:{primary:"\u91cd\u7f6e"},resize:{primary:"\u8c03\u6574\u5927\u5c0f"},scroll:{primary:"\u6eda\u52a8"},submit:{primary:"\u63d0\u4ea4"},touchcancel:{primary:"touchcancel"},touchend:{primary:"touchend"},touchmove:{primary:"\u89e6\u6478\u79fb\u52a8"},touchstart:{primary:"\u89e6\u6478\u5f00\u59cb"},unload:{primary:"\u5378\u8f7d"}},logical:{and:{primary:"\u548c"},bind:{primary:"\u7ed1\u5b9a"},changes:{primary:"\u6539\u53d8\u65f6"},contains:{primary:"\u5305\u542b"},else:{primary:"\u5426\u5219"},end:{primary:"\u7ed3\u675f"},equals:{primary:"\u7b49\u4e8e"},exists:{primary:"\u5b58\u5728"},has:{primary:"\u6709"},have:{primary:"\u6709"},includes:{primary:"\u5305\u62ec"},is:{primary:"\u662f"},live:{primary:"\u5b9e\u65f6"},matches:{primary:"\u5339\u914d"},not:{primary:"\u975e"},or:{primary:"\u6216"},otherwise:{primary:"\u8981\u4e0d\u7136"},then:{primary:"\u90a3\u4e48"},when:{primary:"\u5f53"},where:{primary:"\u54ea\u91cc"}},temporal:{h:{primary:"\u65f6"},hour:{primary:"\u5c0f\u65f6"},hours:{primary:"\u5c0f\u65f6"},millisecond:{primary:"\u6beb\u79d2"},milliseconds:{primary:"\u6beb\u79d2"},min:{primary:"\u5206"},minute:{primary:"\u5206\u949f"},minutes:{primary:"\u5206\u949f"},ms:{primary:"\u6beb\u79d2"},s:{primary:"\u79d2"},second:{primary:"\u79d2"},seconds:{primary:"\u79d2"},times:{primary:"\u6b21"}},values:{body:{primary:"\u4e3b\u4f53"},detail:{primary:"\u8be6\u60c5"},document:{primary:"\u6587\u6863"},element:{primary:"\u5143\u7d20"},event:{primary:"\u4e8b\u4ef6"},false:{primary:"\u5047"},it:{primary:"\u5b83"},its:{primary:"\u5b83\u7684"},me:{primary:"\u6211"},my:{primary:"\u6211\u7684"},myself:{primary:"\u6211\u81ea\u5df1"},null:{primary:"\u7a7a"},result:{primary:"\u7ed3\u679c"},target:{primary:"\u76ee\u6807"},true:{primary:"\u771f"},undefined:{primary:"\u672a\u5b9a\u4e49"},value:{primary:"\u503c"},window:{primary:"\u7a97\u53e3"},you:{primary:"\u4f60"},your:{primary:"\u4f60\u7684"},yourself:{primary:"\u4f60\u81ea\u5df1"}},attributes:{attribute:{primary:"\u5c5e\u6027"},attributes:{primary:"\u5c5e\u6027\u96c6"},class:{primary:"\u7c7b"},classes:{primary:"\u7c7b\u522b"},properties:{primary:"\u7279\u6027\u96c6"},property:{primary:"\u7279\u6027"},style:{primary:"\u6837\u5f0f"},styles:{primary:"\u6837\u5f0f\u96c6"}},expressions:{at:{primary:"\u5728"},characters:{primary:"\u5b57\u7b26"},children:{primary:"\u5b50\u7ea7"},closest:{primary:"\u6700\u8fd1\u7684"},empty:{primary:"\u7a7a\u7684"},"ends with":{primary:"\u4ee5\u7ed3\u5c3e"},exclusive:{primary:"\u6392\u9664"},first:{primary:"\u7b2c\u4e00\u4e2a"},"ignoring case":{primary:"\u5ffd\u7565\u5927\u5c0f\u5199"},inclusive:{primary:"\u5305\u542b"},"joined by":{primary:"\u7528_\u8fde\u63a5"},last:{primary:"\u6700\u540e\u4e00\u4e2a"},"mapped to":{primary:"\u6620\u5c04\u4e3a"},next:{primary:"\u4e0b\u4e00\u4e2a"},no:{primary:"\u6ca1\u6709"},parent:{primary:"\u7236\u7ea7"},prev:{primary:"\u4e0a\u4e2a"},previous:{primary:"\u4e0a\u4e00\u4e2a"},random:{primary:"\u968f\u673a"},some:{primary:"\u4e00\u4e9b"},"sorted by":{primary:"\u6309_\u6392\u5e8f"},"split by":{primary:"\u6309_\u5206\u5272"},"starts with":{primary:"\u4ee5\u5f00\u5934"},within:{primary:"\u4e4b\u5185"}}}),Rt();var Pg={en:async()=>{const{englishTokenizer:e}=await Promise.resolve().then(()=>(Qn(),Gn)),{englishProfile:t}=await Promise.resolve().then(()=>(Zt(),Ut)),{buildEnglishPatterns:r}=await Promise.resolve().then(()=>(Cd(),Ed));return{tokenizer:e,profile:t,buildPatterns:r}},es:async()=>{const{spanishTokenizer:e}=await Promise.resolve().then(()=>(ts(),Qo)),{spanishProfile:t}=await Promise.resolve().then(()=>(Qt(),Yt));return{tokenizer:e,profile:t}},ja:async()=>{const{japaneseTokenizer:e}=await Promise.resolve().then(()=>(uo(),lo)),{japaneseProfile:t}=await Promise.resolve().then(()=>(fr(),yr));return{tokenizer:e,profile:t}},ar:async()=>{const{arabicTokenizer:e}=await Promise.resolve().then(()=>(Io(),qo)),{arabicProfile:t}=await Promise.resolve().then(()=>(It(),Nt));return{tokenizer:e,profile:t}},ko:async()=>{const{koreanTokenizer:e}=await Promise.resolve().then(()=>(jo(),zo)),{koreanProfile:t}=await Promise.resolve().then(()=>(kr(),hr));return{tokenizer:e,profile:t}},zh:async()=>{const{chineseTokenizer:e}=await Promise.resolve().then(()=>(js(),ks)),{chineseProfile:t}=await Promise.resolve().then(()=>(ti(),Jr));return{tokenizer:e,profile:t}},tr:async()=>{const{turkishTokenizer:e}=await Promise.resolve().then(()=>(gs(),us)),{turkishProfile:t}=await Promise.resolve().then(()=>(Hr(),Dr));return{tokenizer:e,profile:t}},pt:async()=>{const{portugueseTokenizer:e}=await Promise.resolve().then(()=>(Fs(),Ns)),{portugueseProfile:t}=await Promise.resolve().then(()=>(Lr(),jr));return{tokenizer:e,profile:t}},fr:async()=>{const{frenchTokenizer:e}=await Promise.resolve().then(()=>(sl(),tl)),{frenchProfile:t}=await Promise.resolve().then(()=>(tr(),Jt));return{tokenizer:e,profile:t}},de:async()=>{const{germanTokenizer:e}=await Promise.resolve().then(()=>(bl(),hl)),{germanProfile:t}=await Promise.resolve().then(()=>(Ht(),Dt));return{tokenizer:e,profile:t}},id:async()=>{const{indonesianTokenizer:e}=await Promise.resolve().then(()=>(jl(),xl)),{indonesianProfile:t}=await Promise.resolve().then(()=>(mr(),lr));return{tokenizer:e,profile:t}},qu:async()=>{const{quechuaTokenizer:e}=await Promise.resolve().then(()=>(Bl(),Nl)),{quechuaProfile:t}=await Promise.resolve().then(()=>(_r(),Cr));return{tokenizer:e,profile:t}},sw:async()=>{const{swahiliTokenizer:e}=await Promise.resolve().then(()=>(Xl(),Dl)),{swahiliProfile:t}=await Promise.resolve().then(()=>(Rr(),Mr));return{tokenizer:e,profile:t}},bn:async()=>{const{bengaliTokenizer:e}=await Promise.resolve().then(()=>(zm(),fm)),{bengaliProfile:t}=await Promise.resolve().then(()=>(Bt(),Kt));return{tokenizer:e,profile:t}},hi:async()=>{const{hindiTokenizer:e}=await Promise.resolve().then(()=>(pm(),om)),{hindiProfile:t}=await Promise.resolve().then(()=>(sr(),nr));return{tokenizer:e,profile:t}},it:async()=>{const{italianTokenizer:e}=await Promise.resolve().then(()=>(pp(),sp)),{italianProfile:t}=await Promise.resolve().then(()=>(ur(),cr));return{tokenizer:e,profile:t}},ms:async()=>{const{malayTokenizer:e}=await Promise.resolve().then(()=>(Wm(),jm)),{malayProfile:t}=await Promise.resolve().then(()=>(br(),zr));return{tokenizer:e,profile:t}},pl:async()=>{const{polishTokenizer:e}=await Promise.resolve().then(()=>(Lp(),Sp)),{polishProfile:t}=await Promise.resolve().then(()=>(Sr(),xr));return{tokenizer:e,profile:t}},ru:async()=>{const{russianTokenizer:e}=await Promise.resolve().then(()=>(Np(),Mp)),{russianProfile:t}=await Promise.resolve().then(()=>(qr(),Wr));return{tokenizer:e,profile:t}},th:async()=>{const{thaiTokenizer:e}=await Promise.resolve().then(()=>(Sm(),wm)),{thaiProfile:t}=await Promise.resolve().then(()=>(Ir(),Nr));return{tokenizer:e,profile:t}},tl:async()=>{const{tagalogTokenizer:e}=await Promise.resolve().then(()=>(Vm(),Nm)),{tagalogProfile:t}=await Promise.resolve().then(()=>(Br(),Kr));return{tokenizer:e,profile:t}},uk:async()=>{const{ukrainianTokenizer:e}=await Promise.resolve().then(()=>(Zp(),Dp)),{ukrainianProfile:t}=await Promise.resolve().then(()=>(Zr(),Ur));return{tokenizer:e,profile:t}},vi:async()=>{const{vietnameseTokenizer:e}=await Promise.resolve().then(()=>(xp(),fp)),{vietnameseProfile:t}=await Promise.resolve().then(()=>(Qr(),Yr));return{tokenizer:e,profile:t}},he:async()=>{const{hebrewTokenizer:e}=await Promise.resolve().then(()=>(Jp(),Yp)),{hebrewProfile:t}=await Promise.resolve().then(()=>(ar(),rr));return{tokenizer:e,profile:t}}},_g=Object.keys(Pg);async function Wg(e,t={}){const{url:r,module:i,skipIfRegistered:a=!0}=t;if(a&&At(e))return{code:e,loaded:!1};try{let t;if(i)t=i;else if(r)t=await async function(e,t){try{const e=await fetch(t);if(!e.ok)throw Error(`Failed to fetch ${t}: ${e.status} ${e.statusText}`);const r=await e.text(),i=new Blob([r],{type:"application/javascript"}),a=URL.createObjectURL(i);try{const e=await(import(a));if(!e.tokenizer||!e.profile)throw Error("Invalid language module: missing tokenizer or profile");return e}finally{URL.revokeObjectURL(a)}}catch(r){throw Error(`Failed to load language '${e}' from ${t}: ${r instanceof Error?r.message:r+""}`)}}(e,r);else{const r=Pg[e];if(!r)throw Error(`Unknown language: ${e}. Supported: ${_g.join(", ")}`);t=await r()}return function(e,t){Et(e,t.tokenizer,t.profile),t.patterns?Lt(e,t.patterns):t.buildPatterns&&Lt(e,t.buildPatterns())}(e,t),{code:e,loaded:!0}}catch(t){return{code:e,loaded:!1,error:t instanceof Error?t.message:t+""}}}async function Ag(e,t={}){return Promise.all(e.map(e=>Wg(e,t)))}function qg(e){return e in Pg}function Mg(){return _g.filter(At)}function Og(){return _g.filter(e=>!At(e))}Jc(),hi(),Zm(),wt();var Rg=[...Q.roles.find(e=>"patient"===e.role)?.expectedTypes??[]];wt();var Ng=[...J.roles.find(e=>"patient"===e.role)?.expectedTypes??[]];wt();var $g=[...D.roles.find(e=>"patient"===e.role)?.expectedTypes??[]];function Ig(e){return e.map(e=>e.extraction?.scope?e:{...e,template:{...e.template,tokens:[...e.template.tokens,{type:"group",optional:!0,tokens:[{type:"literal",value:"on"},{type:"role",role:"scope",optional:!0,expectedTypes:["selector","reference"]}]}]},extraction:{...e.extraction,scope:{marker:"on"}}})}wt();var Kg=[...pe.roles.find(e=>"source"===e.role)?.expectedTypes??[]];var Vg=["selector","reference","expression","property-path"];function Bg(e){const t=_t(e)?.roleMarkers?.style;if(!t?.primary)return null;const r={type:"literal",value:t.primary,...t.alternatives?.length?{alternatives:t.alternatives}:{}},i={type:"role",role:"style",expectedTypes:["expression"]};return{token:{type:"group",optional:!0,tokens:"after"===t.position?[i,r]:[r,i]},extraction:{marker:t.primary,...t.alternatives?.length?{markerAlternatives:t.alternatives}:{}}}}function Dg(e,t,r,i,a,n,o,s){const l=Bg(t);return{id:e,language:t,command:"fetch",priority:105,template:{format:`${r} ${i} {source} ${a} {responseType}`,tokens:[{type:"literal",value:r,...n?{alternatives:n}:{}},{type:"group",optional:!0,tokens:[{type:"literal",value:i,...o?{alternatives:o}:{}}]},{type:"role",role:"source",expectedTypes:["literal","expression"]},...l?[l.token]:[],{type:"group",optional:!0,tokens:[{type:"literal",value:a,...s?{alternatives:s}:{}},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]}]},extraction:{source:{marker:i,...o?{markerAlternatives:o}:{}},...l?{style:l.extraction}:{},responseType:{marker:a,...s?{markerAlternatives:s}:{}}}}}function Fg(e,t,r,i,a,n,o,s){const l=Bg(t),p=[{type:"role",role:"responseType",expectedTypes:["literal","expression"]}];o&&p.push({type:"literal",value:o,...s?{alternatives:s}:{}});return{id:e,language:t,command:"fetch",priority:105,template:{format:`{source} ${i} ${r}`,tokens:[{type:"role",role:"source",expectedTypes:["literal","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:i,...n?{alternatives:n}:{}}]},...l?[l.token]:[],{type:"literal",value:r,...a?{alternatives:a}:{}},{type:"group",optional:!0,tokens:p}]},extraction:{source:{marker:i,...n?{markerAlternatives:n}:{}},...l?{style:l.extraction}:{},responseType:o?{marker:o,...s?{markerAlternatives:s}:{}}:{}}}}function Hg(e){const t=_t(e)?.keywords?.pick,r=t?.primary;if(!r||"pick"===r.toLowerCase())return{type:"literal",value:"pick"};return{type:"literal",value:r,alternatives:[...t?.alternatives??[],"pick"]}}jd(),Rt(),ud(),Rt();var Ug=new Set(["character","characters","item","items"]),Gg=e=>{if(Ug.has(e))return{type:"expression",raw:e};const t=Number(e);return Mu(""===e||Number.isNaN(t)?e:t)};function Zg(e,t){const r=[Hg(e)];return t.objectMarkers?.length&&r.push({type:"group",optional:!0,tokens:[{type:"literal",value:t.objectMarkers[0],...t.objectMarkers.length>1?{alternatives:t.objectMarkers.slice(1)}:{}}]}),r.push({type:"role",role:"method",expectedTypes:["literal","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression"]},{type:"literal",value:t.srcMarker,...t.srcAlternatives?.length?{alternatives:t.srcAlternatives}:{}},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}),{id:`pick-${e}-variant`,language:e,command:"pick",priority:110,template:{format:`pick {method} {patient} ${t.srcMarker} {source}`,tokens:r},extraction:{method:{position:1,transform:Gg},patient:{position:2},source:{marker:t.srcMarker,...t.srcAlternatives?.length?{markerAlternatives:t.srcAlternatives}:{}}}}}var Yg={ar:{srcMarker:"\u0645\u0646"},de:{srcMarker:"von",srcAlternatives:["aus"]},es:{srcMarker:"de"},fr:{srcMarker:"de"},he:{srcMarker:"of",srcAlternatives:["\u05e9\u05dc","\u05de"],objectMarkers:["\u05d0\u05ea"]},id:{srcMarker:"dari"},it:{srcMarker:"di",srcAlternatives:["da"]},ms:{srcMarker:"daripada",srcAlternatives:["dari"]},pl:{srcMarker:"z"},pt:{srcMarker:"de"},ru:{srcMarker:"\u0438\u0437"},sw:{srcMarker:"ya",srcAlternatives:["kutoka"]},th:{srcMarker:"\u0e02\u0e2d\u0e07",srcAlternatives:["\u0e08\u0e32\u0e01"]},tl:{srcMarker:"ng",srcAlternatives:["mula"]},uk:{srcMarker:"\u0437"},vi:{srcMarker:"c\u1ee7a",srcAlternatives:["t\u1eeb"]},zh:{srcMarker:"\u7684",objectMarkers:["\u628a"]}};function Xg(e,t){return{id:`pick-${e}-variant-sov`,language:e,command:"pick",priority:110,template:{format:`{source} ${t.genitive} {method} {patient} ${t.patientMarker} pick`,tokens:[{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:t.genitive},{type:"role",role:"method",expectedTypes:["literal","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:t.patientMarker}]},Hg(e)]},extraction:{source:{position:0},method:{position:2,transform:Gg},patient:{position:3}}}}var Qg={bn:{genitive:"\u09b0",patientMarker:"\u0995\u09c7"},hi:{genitive:"\u0915\u093e",patientMarker:"\u0915\u094b"},ja:{genitive:"\u306e",patientMarker:"\u3092"},ko:{genitive:"\uc758",patientMarker:"\ub97c"},qu:{genitive:"pa",patientMarker:"ta"},tr:{genitive:"nin",patientMarker:"i"}};qc(),Oc();var Jg=[{id:"repeat-en-until-event-from",language:"en",command:"repeat",priority:120,template:{format:"repeat until event {event} from {source}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"from"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]}]},extraction:{event:{marker:"event"},source:{marker:"from"},loopType:{default:{type:"literal",value:"until-event"}}}},{id:"repeat-en-until-event",language:"en",command:"repeat",priority:110,template:{format:"repeat until event {event}",tokens:[{type:"literal",value:"repeat"},{type:"literal",value:"until"},{type:"literal",value:"event"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{marker:"event"},loopType:{default:{type:"literal",value:"until-event"}}}}];Rc();var ek=[{id:"for-en-basic",language:"en",command:"for",priority:100,template:{format:"for {patient} in {source}",tokens:[{type:"literal",value:"for"},{type:"role",role:"patient",expectedTypes:["expression","reference"]},{type:"literal",value:"in"},{type:"role",role:"source",expectedTypes:["selector","expression","reference"]}]},extraction:{patient:{position:1},source:{marker:"in"}}},{id:"if-en-basic",language:"en",command:"if",priority:100,template:{format:"if {condition}",tokens:[{type:"literal",value:"if"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}},{id:"unless-en-basic",language:"en",command:"unless",priority:100,template:{format:"unless {condition}",tokens:[{type:"literal",value:"unless"},{type:"role",role:"condition",expectedTypes:["expression","reference","selector"]}]},extraction:{condition:{position:1}}}],tk=[{id:"temporal-en-in",language:"en",command:"wait",priority:95,template:{format:"in {duration}",tokens:[{type:"literal",value:"in"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}},{id:"temporal-en-after",language:"en",command:"wait",priority:95,template:{format:"after {duration}",tokens:[{type:"literal",value:"after"},{type:"role",role:"duration",expectedTypes:["literal","expression"]}]},extraction:{duration:{position:1}}}],rk=[...jc,...Cc,...Jg,...Wc,...ek,...tk];Ac(),wt(),Rt();var ik=[Nc,function(e){return[]},ui,Gm,function(e){switch(e){case"bn":return[{id:"add-bn-full",language:"bn",command:"add",priority:100,template:{format:"{patient} \u0995\u09c7 \u09af\u09cb\u0997 \u0995\u09b0\u09c1\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u09af\u09cb\u0997"},{type:"literal",value:"\u0995\u09b0\u09c1\u09a8"}]},extraction:{patient:{position:0}}},{id:"add-bn-simple",language:"bn",command:"add",priority:90,template:{format:"\u09af\u09cb\u0997 {patient}",tokens:[{type:"literal",value:"\u09af\u09cb\u0997"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"add-bn-with-dest",language:"bn",command:"add",priority:95,template:{format:"{destination} \u098f {patient} \u0995\u09c7 \u09af\u09cb\u0997 \u0995\u09b0\u09c1\u09a8",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u098f",alternatives:["\u09a4\u09c7"]},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u09af\u09cb\u0997"},{type:"literal",value:"\u0995\u09b0\u09c1\u09a8"}]},extraction:{destination:{position:0},patient:{position:2}}}];case"hi":return[{id:"add-hi-full",language:"hi",command:"add",priority:100,template:{format:"{patient} \u0915\u094b {destination} \u092e\u0947\u0902 \u091c\u094b\u0921\u093c\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"role",role:"destination"},{type:"literal",value:"\u092e\u0947\u0902"},{type:"literal",value:"\u091c\u094b\u0921\u093c\u0947\u0902",alternatives:["\u091c\u094b\u0921\u093c"]}]},extraction:{patient:{position:0},destination:{marker:"\u092e\u0947\u0902",position:3}}},{id:"add-hi-simple",language:"hi",command:"add",priority:90,template:{format:"{patient} \u091c\u094b\u0921\u093c\u0947\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u091c\u094b\u0921\u093c\u0947\u0902",alternatives:["\u091c\u094b\u0921\u093c"]}]},extraction:{patient:{position:0},destination:{default:{type:"reference",value:"me"}}}},{id:"add-hi-bare",language:"hi",command:"add",priority:80,template:{format:"\u091c\u094b\u0921\u093c\u0947\u0902 {patient}",tokens:[{type:"literal",value:"\u091c\u094b\u0921\u093c\u0947\u0902",alternatives:["\u091c\u094b\u0921\u093c"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"it":return[{id:"add-it-full",language:"it",command:"add",priority:100,template:{format:"aggiungere {patient} a {target}",tokens:[{type:"literal",value:"aggiungere",alternatives:["aggiungi","add"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"a",alternatives:["su","in"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"a",markerAlternatives:["su","in"],default:{type:"reference",value:"me"}}}},{id:"add-it-simple",language:"it",command:"add",priority:90,template:{format:"aggiungere {patient}",tokens:[{type:"literal",value:"aggiungere",alternatives:["aggiungi","add"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"pl":return[{id:"add-pl-full",language:"pl",command:"add",priority:100,template:{format:"dodaj {patient} do {destination}",tokens:[{type:"literal",value:"dodaj"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"do",alternatives:["na","w"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"do",markerAlternatives:["na","w"],default:{type:"reference",value:"me"}}}},{id:"add-pl-simple",language:"pl",command:"add",priority:90,template:{format:"dodaj {patient}",tokens:[{type:"literal",value:"dodaj"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"qu":return[{id:"add-qu-sov",language:"qu",command:"add",priority:100,template:{format:"{patient} ta yapay",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"yapay",alternatives:["yapaykuy"]}]},extraction:{patient:{position:0}}},{id:"add-qu-simple",language:"qu",command:"add",priority:90,template:{format:"yapay {patient}",tokens:[{type:"literal",value:"yapay",alternatives:["yapaykuy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"add-qu-patient-first",language:"qu",command:"add",priority:96,template:{format:"{patient} ta {destination} man yapay",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"literal",value:"yapay",alternatives:["yapaykuy"]}]},extraction:{patient:{position:0},destination:{position:2}}},{id:"add-qu-with-dest",language:"qu",command:"add",priority:95,template:{format:"{destination} man {patient} ta yapay",tokens:[{type:"role",role:"destination"},{type:"literal",value:"man"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"yapay",alternatives:["yapaykuy"]}]},extraction:{destination:{position:0},patient:{position:2}}}];case"ru":return[{id:"add-ru-full",language:"ru",command:"add",priority:100,template:{format:"\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c {patient} \u043a {destination}",tokens:[{type:"literal",value:"\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c",alternatives:["\u0434\u043e\u0431\u0430\u0432\u044c"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043a",alternatives:["\u043d\u0430","\u0432"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u043a",markerAlternatives:["\u043d\u0430","\u0432"],default:{type:"reference",value:"me"}}}},{id:"add-ru-simple",language:"ru",command:"add",priority:90,template:{format:"\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c {patient}",tokens:[{type:"literal",value:"\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c",alternatives:["\u0434\u043e\u0431\u0430\u0432\u044c"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"th":default:return[];case"uk":return[{id:"add-uk-full",language:"uk",command:"add",priority:100,template:{format:"\u0434\u043e\u0434\u0430\u0442\u0438 {patient} \u0434\u043e {destination}",tokens:[{type:"literal",value:"\u0434\u043e\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043e\u0434\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0434\u043e",alternatives:["\u043d\u0430","\u0432"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"\u0434\u043e",markerAlternatives:["\u043d\u0430","\u0432"],default:{type:"reference",value:"me"}}}},{id:"add-uk-simple",language:"uk",command:"add",priority:90,template:{format:"\u0434\u043e\u0434\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0434\u043e\u0434\u0430\u0442\u0438",alternatives:["\u0434\u043e\u0434\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"vi":return[{id:"add-vi-full",language:"vi",command:"add",priority:100,template:{format:"th\u00eam {patient} v\u00e0o {target}",tokens:[{type:"literal",value:"th\u00eam",alternatives:["b\u1ed5 sung"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"v\u00e0o",alternatives:["cho"]},{type:"role",role:"destination"}]}]},extraction:{patient:{position:1},destination:{marker:"v\u00e0o",markerAlternatives:["cho"],default:{type:"reference",value:"me"}}}},{id:"add-vi-simple",language:"vi",command:"add",priority:90,template:{format:"th\u00eam {patient}",tokens:[{type:"literal",value:"th\u00eam",alternatives:["b\u1ed5 sung"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"zh":return[{id:"add-zh-full",language:"zh",command:"add",priority:100,template:{format:"\u7ed9 {destination} \u6dfb\u52a0 {patient}",tokens:[{type:"literal",value:"\u7ed9",alternatives:["\u70ba","\u4e3a"]},{type:"role",role:"destination"},{type:"literal",value:"\u6dfb\u52a0",alternatives:["\u52a0","\u589e\u52a0","\u52a0\u4e0a"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"add-zh-simple",language:"zh",command:"add",priority:90,template:{format:"\u6dfb\u52a0 {patient}",tokens:[{type:"literal",value:"\u6dfb\u52a0",alternatives:["\u52a0","\u589e\u52a0"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"add-zh-ba",language:"zh",command:"add",priority:95,template:{format:"\u628a {patient} \u6dfb\u52a0\u5230 {destination}",tokens:[{type:"literal",value:"\u628a"},{type:"role",role:"patient"},{type:"literal",value:"\u6dfb\u52a0\u5230",alternatives:["\u52a0\u5230","\u589e\u52a0\u5230"]},{type:"role",role:"destination"}]},extraction:{patient:{position:1},destination:{marker:"\u6dfb\u52a0\u5230",markerAlternatives:["\u52a0\u5230","\u589e\u52a0\u5230"]}}}]}},function(e){switch(e){case"bn":return[{id:"remove-bn-simple",language:"bn",command:"remove",priority:90,template:{format:"\u09b8\u09b0\u09be\u09a8 {patient}",tokens:[{type:"literal",value:"\u09b8\u09b0\u09be\u09a8",alternatives:["\u09ae\u09c1\u099b\u09c1\u09a8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"remove-bn-with-source",language:"bn",command:"remove",priority:95,template:{format:"{source} \u09a5\u09c7\u0995\u09c7 {patient} \u0995\u09c7 \u09b8\u09b0\u09be\u09a8",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09a5\u09c7\u0995\u09c7"},{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u09b8\u09b0\u09be\u09a8",alternatives:["\u09ae\u09c1\u099b\u09c1\u09a8"]}]},extraction:{source:{position:0},patient:{position:2}}}];case"hi":return[{id:"remove-hi-full",language:"hi",command:"remove",priority:100,template:{format:"{patient} \u0915\u094b {source} \u0938\u0947 \u0939\u091f\u093e\u090f\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u0939\u091f\u093e\u090f\u0902",alternatives:["\u0939\u091f\u093e","\u092e\u093f\u091f\u093e\u090f\u0902"]}]},extraction:{patient:{position:0},source:{marker:"\u0938\u0947",position:3}}},{id:"remove-hi-simple",language:"hi",command:"remove",priority:90,template:{format:"{patient} \u0939\u091f\u093e\u090f\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0939\u091f\u093e\u090f\u0902",alternatives:["\u0939\u091f\u093e","\u092e\u093f\u091f\u093e\u090f\u0902"]}]},extraction:{patient:{position:0},source:{default:{type:"reference",value:"me"}}}},{id:"remove-hi-bare",language:"hi",command:"remove",priority:80,template:{format:"\u0939\u091f\u093e\u090f\u0902 {patient}",tokens:[{type:"literal",value:"\u0939\u091f\u093e\u090f\u0902",alternatives:["\u0939\u091f\u093e","\u092e\u093f\u091f\u093e\u090f\u0902"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"it":return[{id:"remove-it-full",language:"it",command:"remove",priority:100,template:{format:"rimuovere {patient} da {source}",tokens:[{type:"literal",value:"rimuovere",alternatives:["rimuovi","eliminare","togliere","remove"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"da",markerAlternatives:["di"],default:{type:"reference",value:"me"}}}},{id:"remove-it-simple",language:"it",command:"remove",priority:90,template:{format:"rimuovere {patient}",tokens:[{type:"literal",value:"rimuovere",alternatives:["rimuovi","eliminare","togliere","remove"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"pl":return[{id:"remove-pl-full",language:"pl",command:"remove",priority:100,template:{format:"usu\u0144 {patient} z {source}",tokens:[{type:"literal",value:"usu\u0144",alternatives:["usun","wyczy\u015b\u0107","wyczysc"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["od","ze"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"z",markerAlternatives:["od","ze"],default:{type:"reference",value:"me"}}}},{id:"remove-pl-simple",language:"pl",command:"remove",priority:90,template:{format:"usu\u0144 {patient}",tokens:[{type:"literal",value:"usu\u0144",alternatives:["usun","wyczy\u015b\u0107","wyczysc"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"qu":return[{id:"remove-qu-sov",language:"qu",command:"remove",priority:100,template:{format:"{patient} ta qichuy",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]}]},extraction:{patient:{position:0}}},{id:"remove-qu-simple",language:"qu",command:"remove",priority:90,template:{format:"qichuy {patient}",tokens:[{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"remove-qu-patient-first",language:"qu",command:"remove",priority:96,template:{format:"{patient} ta {source} manta qichuy",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"role",role:"source"},{type:"literal",value:"manta"},{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]}]},extraction:{patient:{position:0},source:{position:2}}},{id:"remove-qu-with-source",language:"qu",command:"remove",priority:95,template:{format:"{source} manta {patient} ta qichuy",tokens:[{type:"role",role:"source"},{type:"literal",value:"manta"},{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"qichuy",alternatives:["hurquy","anchuchiy"]}]},extraction:{source:{position:0},patient:{position:2}}}];case"ru":return[{id:"remove-ru-full",language:"ru",command:"remove",priority:100,template:{format:"\u0443\u0434\u0430\u043b\u0438\u0442\u044c {patient} \u0438\u0437 {source}",tokens:[{type:"literal",value:"\u0443\u0434\u0430\u043b\u0438\u0442\u044c",alternatives:["\u0443\u0434\u0430\u043b\u0438","\u0443\u0431\u0440\u0430\u0442\u044c","\u0443\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0438\u0437",alternatives:["\u043e\u0442","\u0441"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0438\u0437",markerAlternatives:["\u043e\u0442","\u0441"],default:{type:"reference",value:"me"}}}},{id:"remove-ru-simple",language:"ru",command:"remove",priority:90,template:{format:"\u0443\u0434\u0430\u043b\u0438\u0442\u044c {patient}",tokens:[{type:"literal",value:"\u0443\u0434\u0430\u043b\u0438\u0442\u044c",alternatives:["\u0443\u0434\u0430\u043b\u0438","\u0443\u0431\u0440\u0430\u0442\u044c","\u0443\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"th":return[{id:"remove-th-simple",language:"th",command:"remove",priority:90,template:{format:"\u0e25\u0e1a {patient}",tokens:[{type:"literal",value:"\u0e25\u0e1a",alternatives:["\u0e25\u0e1a\u0e2d\u0e2d\u0e01"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"remove-th-with-source",language:"th",command:"remove",priority:95,template:{format:"\u0e25\u0e1a {patient} \u0e08\u0e32\u0e01 {source}",tokens:[{type:"literal",value:"\u0e25\u0e1a",alternatives:["\u0e25\u0e1a\u0e2d\u0e2d\u0e01"]},{type:"role",role:"patient"},{type:"literal",value:"\u0e08\u0e32\u0e01"},{type:"role",role:"source"}]},extraction:{patient:{position:1},source:{marker:"\u0e08\u0e32\u0e01",position:3}}}];case"uk":return[{id:"remove-uk-full",language:"uk",command:"remove",priority:100,template:{format:"\u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438 {patient} \u0437 {source}",tokens:[{type:"literal",value:"\u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043b\u0438","\u043f\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043f\u0440\u0438\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0437",markerAlternatives:["\u0432\u0456\u0434","\u0456\u0437"],default:{type:"reference",value:"me"}}}},{id:"remove-uk-simple",language:"uk",command:"remove",priority:90,template:{format:"\u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438",alternatives:["\u0432\u0438\u0434\u0430\u043b\u0438","\u043f\u0440\u0438\u0431\u0440\u0430\u0442\u0438","\u043f\u0440\u0438\u0431\u0435\u0440\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"vi":return[{id:"remove-vi-full",language:"vi",command:"remove",priority:100,template:{format:"x\u00f3a {patient} kh\u1ecfi {target}",tokens:[{type:"literal",value:"x\u00f3a",alternatives:["g\u1ee1 b\u1ecf","lo\u1ea1i b\u1ecf","b\u1ecf"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"kh\u1ecfi",alternatives:["t\u1eeb"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"kh\u1ecfi",markerAlternatives:["t\u1eeb"],default:{type:"reference",value:"me"}}}},{id:"remove-vi-simple",language:"vi",command:"remove",priority:90,template:{format:"x\u00f3a {patient}",tokens:[{type:"literal",value:"x\u00f3a",alternatives:["g\u1ee1 b\u1ecf","lo\u1ea1i b\u1ecf","b\u1ecf"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},source:{default:{type:"reference",value:"me"}}}}];case"zh":return[{id:"remove-zh-full",language:"zh",command:"remove",priority:100,template:{format:"\u4ece {destination} \u5220\u9664 {patient}",tokens:[{type:"literal",value:"\u4ece",alternatives:["\u5f9e"]},{type:"role",role:"destination"},{type:"literal",value:"\u5220\u9664",alternatives:["\u522a\u9664","\u79fb\u9664","\u53bb\u6389"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"remove-zh-simple",language:"zh",command:"remove",priority:90,template:{format:"\u5220\u9664 {patient}",tokens:[{type:"literal",value:"\u5220\u9664",alternatives:["\u522a\u9664","\u79fb\u9664","\u53bb\u6389"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},destination:{default:{type:"reference",value:"me"}}}},{id:"remove-zh-ba",language:"zh",command:"remove",priority:95,template:{format:"\u628a {patient} \u4ece {destination} \u5220\u9664",tokens:[{type:"literal",value:"\u628a"},{type:"role",role:"patient"},{type:"literal",value:"\u4ece",alternatives:["\u5f9e"]},{type:"role",role:"destination"},{type:"literal",value:"\u5220\u9664",alternatives:["\u522a\u9664","\u79fb\u9664"]}]},extraction:{patient:{position:1},destination:{position:3}}}];default:return[]}},function(e){switch(e){case"bn":return[{id:"show-bn-full",language:"bn",command:"show",priority:100,template:{format:"{patient} \u0995\u09c7 \u09a6\u09c7\u0996\u09be\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u09a6\u09c7\u0996\u09be\u09a8",alternatives:["\u09a6\u09c7\u0996\u09be\u0993"]}]},extraction:{patient:{position:0}}},{id:"show-bn-simple",language:"bn",command:"show",priority:90,template:{format:"\u09a6\u09c7\u0996\u09be\u09a8 {patient}",tokens:[{type:"literal",value:"\u09a6\u09c7\u0996\u09be\u09a8",alternatives:["\u09a6\u09c7\u0996\u09be\u0993"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"de":return[{id:"show-de-full",language:"de",command:"show",priority:100,template:{format:"zeige {patient}",tokens:[{type:"literal",value:"zeige",alternatives:["zeigen","anzeigen","show"]},{type:"role",role:"patient",expectedTypes:Rg},{type:"group",optional:!0,tokens:[{type:"literal",value:"mit"},{type:"role",role:"style",expectedTypes:["expression","selector"]}]}]},extraction:{patient:{position:1},style:{marker:"mit"}}}];case"fr":return[{id:"show-fr-full",language:"fr",command:"show",priority:100,template:{format:"afficher {patient}",tokens:[{type:"literal",value:"afficher",alternatives:["montrer","pr\u00e9senter","show"]},{type:"role",role:"patient",expectedTypes:["selector","reference"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"avec"},{type:"role",role:"style",expectedTypes:["expression","selector"]}]}]},extraction:{patient:{position:1},style:{marker:"avec"}}}];case"hi":return[{id:"show-hi-full",language:"hi",command:"show",priority:100,template:{format:"{patient} \u0915\u094b \u0926\u093f\u0916\u093e\u090f\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"literal",value:"\u0926\u093f\u0916\u093e\u090f\u0902",alternatives:["\u0926\u093f\u0916\u093e"]}]},extraction:{patient:{position:0}}},{id:"show-hi-simple",language:"hi",command:"show",priority:90,template:{format:"\u0926\u093f\u0916\u093e\u090f\u0902 {patient}",tokens:[{type:"literal",value:"\u0926\u093f\u0916\u093e\u090f\u0902",alternatives:["\u0926\u093f\u0916\u093e"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"show-hi-bare",language:"hi",command:"show",priority:80,template:{format:"\u0926\u093f\u0916\u093e\u090f\u0902",tokens:[{type:"literal",value:"\u0926\u093f\u0916\u093e\u090f\u0902",alternatives:["\u0926\u093f\u0916\u093e"]}]},extraction:{patient:{default:{type:"reference",value:"me"}}}}];case"it":return[{id:"show-it-full",language:"it",command:"show",priority:100,template:{format:"mostrare {patient} con {style}",tokens:[{type:"literal",value:"mostrare",alternatives:["mostra","visualizzare","show"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"con"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"con"}}},{id:"show-it-simple",language:"it",command:"show",priority:90,template:{format:"mostrare {patient}",tokens:[{type:"literal",value:"mostrare",alternatives:["mostra","visualizzare","show"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"pl":return[{id:"show-pl-full",language:"pl",command:"show",priority:100,template:{format:"poka\u017c {patient} z {style}",tokens:[{type:"literal",value:"poka\u017c",alternatives:["pokaz","wy\u015bwietl","wyswietl"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["ze","jako"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"z",markerAlternatives:["ze","jako"]}}},{id:"show-pl-simple",language:"pl",command:"show",priority:90,template:{format:"poka\u017c {patient}",tokens:[{type:"literal",value:"poka\u017c",alternatives:["pokaz","wy\u015bwietl","wyswietl"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"ru":return[{id:"show-ru-full",language:"ru",command:"show",priority:100,template:{format:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c {patient} \u0441 {style}",tokens:[{type:"literal",value:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c",alternatives:["\u043f\u043e\u043a\u0430\u0436\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0441",alternatives:["\u0441\u043e","\u043a\u0430\u043a"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0441",markerAlternatives:["\u0441\u043e","\u043a\u0430\u043a"]}}},{id:"show-ru-simple",language:"ru",command:"show",priority:90,template:{format:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c {patient}",tokens:[{type:"literal",value:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c",alternatives:["\u043f\u043e\u043a\u0430\u0436\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"th":return[{id:"show-th-simple",language:"th",command:"show",priority:100,template:{format:"\u0e41\u0e2a\u0e14\u0e07 {patient}",tokens:[{type:"literal",value:"\u0e41\u0e2a\u0e14\u0e07"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0e14\u0e49\u0e27\u0e22"},{type:"role",role:"style",expectedTypes:["expression","selector"]}]}]},extraction:{patient:{position:1},style:{marker:"\u0e14\u0e49\u0e27\u0e22"}}}];case"uk":return[{id:"show-uk-full",language:"uk",command:"show",priority:100,template:{format:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 {patient} \u0437 {style}",tokens:[{type:"literal",value:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043f\u043e\u043a\u0430\u0436\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0456\u0437","\u044f\u043a"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0437",markerAlternatives:["\u0456\u0437","\u044f\u043a"]}}},{id:"show-uk-simple",language:"uk",command:"show",priority:90,template:{format:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438",alternatives:["\u043f\u043e\u043a\u0430\u0436\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"vi":return[{id:"show-vi-full",language:"vi",command:"show",priority:100,template:{format:"hi\u1ec3n th\u1ecb {patient} v\u1edbi {effect}",tokens:[{type:"literal",value:"hi\u1ec3n th\u1ecb",alternatives:["hi\u1ec7n"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"v\u1edbi"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"v\u1edbi"}}},{id:"show-vi-simple",language:"vi",command:"show",priority:90,template:{format:"hi\u1ec3n th\u1ecb {patient}",tokens:[{type:"literal",value:"hi\u1ec3n th\u1ecb",alternatives:["hi\u1ec7n"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"zh":return[{id:"show-zh-full",language:"zh",command:"show",priority:100,template:{format:"\u663e\u793a {patient}",tokens:[{type:"literal",value:"\u663e\u793a",alternatives:["\u986f\u793a","\u5c55\u793a","\u5448\u73b0","\u5448\u73fe"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"show-zh-ba",language:"zh",command:"show",priority:95,template:{format:"\u628a {patient} \u663e\u793a",tokens:[{type:"literal",value:"\u628a"},{type:"role",role:"patient"},{type:"literal",value:"\u663e\u793a",alternatives:["\u986f\u793a","\u5c55\u793a"]}]},extraction:{patient:{position:1}}},{id:"show-zh-with-\u7ed9",language:"zh",command:"show",priority:90,template:{format:"\u7ed9 {destination} \u663e\u793a {patient}",tokens:[{type:"literal",value:"\u7ed9",alternatives:["\u7d66"]},{type:"role",role:"destination"},{type:"literal",value:"\u663e\u793a",alternatives:["\u986f\u793a"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}}];default:return[]}},function(e){switch(e){case"bn":return[{id:"hide-bn-full",language:"bn",command:"hide",priority:100,template:{format:"{patient} \u0995\u09c7 \u09b2\u09c1\u0995\u09be\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u09b2\u09c1\u0995\u09be\u09a8",alternatives:["\u09b2\u09c1\u0995\u09be\u0993"]}]},extraction:{patient:{position:0}}},{id:"hide-bn-simple",language:"bn",command:"hide",priority:90,template:{format:"\u09b2\u09c1\u0995\u09be\u09a8 {patient}",tokens:[{type:"literal",value:"\u09b2\u09c1\u0995\u09be\u09a8",alternatives:["\u09b2\u09c1\u0995\u09be\u0993"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"de":return[{id:"hide-de-full",language:"de",command:"hide",priority:100,template:{format:"verstecke {patient}",tokens:[{type:"literal",value:"verstecke",alternatives:["verstecken","verberge","verbergen","hide"]},{type:"role",role:"patient",expectedTypes:Ng},{type:"group",optional:!0,tokens:[{type:"literal",value:"mit"},{type:"role",role:"style",expectedTypes:["expression","selector"]}]}]},extraction:{patient:{position:1},style:{marker:"mit"}}}];case"hi":return[{id:"hide-hi-full",language:"hi",command:"hide",priority:100,template:{format:"{patient} \u0915\u094b \u091b\u093f\u092a\u093e\u090f\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"literal",value:"\u091b\u093f\u092a\u093e\u090f\u0902",alternatives:["\u091b\u093f\u092a\u093e"]}]},extraction:{patient:{position:0}}},{id:"hide-hi-simple",language:"hi",command:"hide",priority:90,template:{format:"\u091b\u093f\u092a\u093e\u090f\u0902 {patient}",tokens:[{type:"literal",value:"\u091b\u093f\u092a\u093e\u090f\u0902",alternatives:["\u091b\u093f\u092a\u093e"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"hide-hi-bare",language:"hi",command:"hide",priority:80,template:{format:"\u091b\u093f\u092a\u093e\u090f\u0902",tokens:[{type:"literal",value:"\u091b\u093f\u092a\u093e\u090f\u0902",alternatives:["\u091b\u093f\u092a\u093e"]}]},extraction:{patient:{default:{type:"reference",value:"me"}}}}];case"it":return[{id:"hide-it-full",language:"it",command:"hide",priority:100,template:{format:"nascondere {patient} con {style}",tokens:[{type:"literal",value:"nascondere",alternatives:["nascondi","hide"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"con"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"con"}}},{id:"hide-it-simple",language:"it",command:"hide",priority:90,template:{format:"nascondere {patient}",tokens:[{type:"literal",value:"nascondere",alternatives:["nascondi","hide"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"pl":return[{id:"hide-pl-full",language:"pl",command:"hide",priority:100,template:{format:"ukryj {patient} z {style}",tokens:[{type:"literal",value:"ukryj",alternatives:["schowaj","zas\u0142o\u0144","zaslon"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["ze","jako"]},{type:"role",role:"style",expectedTypes:["literal"]}]}]},extraction:{patient:{position:1},style:{marker:"z",markerAlternatives:["ze","jako"]}}},{id:"hide-pl-simple",language:"pl",command:"hide",priority:90,template:{format:"ukryj {patient}",tokens:[{type:"literal",value:"ukryj",alternatives:["schowaj","zas\u0142o\u0144","zaslon"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"ru":return[{id:"hide-ru-full",language:"ru",command:"hide",priority:100,template:{format:"\u0441\u043a\u0440\u044b\u0442\u044c {patient} \u0441 {style}",tokens:[{type:"literal",value:"\u0441\u043a\u0440\u044b\u0442\u044c",alternatives:["\u0441\u043a\u0440\u043e\u0439","\u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c","\u0441\u043f\u0440\u044f\u0447\u044c"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0441",alternatives:["\u0441\u043e","\u043a\u0430\u043a"]},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"\u0441",markerAlternatives:["\u0441\u043e","\u043a\u0430\u043a"]}}},{id:"hide-ru-simple",language:"ru",command:"hide",priority:90,template:{format:"\u0441\u043a\u0440\u044b\u0442\u044c {patient}",tokens:[{type:"literal",value:"\u0441\u043a\u0440\u044b\u0442\u044c",alternatives:["\u0441\u043a\u0440\u043e\u0439","\u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c","\u0441\u043f\u0440\u044f\u0447\u044c"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"th":return[{id:"hide-th-simple",language:"th",command:"hide",priority:100,template:{format:"\u0e0b\u0e48\u0e2d\u0e19 {patient}",tokens:[{type:"literal",value:"\u0e0b\u0e48\u0e2d\u0e19"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0e14\u0e49\u0e27\u0e22"},{type:"role",role:"style",expectedTypes:["expression","selector"]}]}]},extraction:{patient:{position:1},style:{marker:"\u0e14\u0e49\u0e27\u0e22"}}}];case"uk":return[{id:"hide-uk-full",language:"uk",command:"hide",priority:100,template:{format:"\u0441\u0445\u043e\u0432\u0430\u0442\u0438 {patient} \u0437 {style}",tokens:[{type:"literal",value:"\u0441\u0445\u043e\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043e\u0432\u0430\u0439","\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438","\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0456\u0437","\u044f\u043a"]},{type:"role",role:"style",expectedTypes:["literal"]}]}]},extraction:{patient:{position:1},style:{marker:"\u0437",markerAlternatives:["\u0456\u0437","\u044f\u043a"]}}},{id:"hide-uk-simple",language:"uk",command:"hide",priority:90,template:{format:"\u0441\u0445\u043e\u0432\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0441\u0445\u043e\u0432\u0430\u0442\u0438",alternatives:["\u0441\u0445\u043e\u0432\u0430\u0439","\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0442\u0438","\u043f\u0440\u0438\u0445\u043e\u0432\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"vi":return[{id:"hide-vi-full",language:"vi",command:"hide",priority:100,template:{format:"\u1ea9n {patient} v\u1edbi {effect}",tokens:[{type:"literal",value:"\u1ea9n",alternatives:["che","gi\u1ea5u"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"v\u1edbi"},{type:"role",role:"style"}]}]},extraction:{patient:{position:1},style:{marker:"v\u1edbi"}}},{id:"hide-vi-simple",language:"vi",command:"hide",priority:90,template:{format:"\u1ea9n {patient}",tokens:[{type:"literal",value:"\u1ea9n",alternatives:["che","gi\u1ea5u"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"zh":return[{id:"hide-zh-full",language:"zh",command:"hide",priority:100,template:{format:"\u9690\u85cf {patient}",tokens:[{type:"literal",value:"\u9690\u85cf",alternatives:["\u96b1\u85cf","\u85cf\u8d77","\u85cf"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"hide-zh-ba",language:"zh",command:"hide",priority:95,template:{format:"\u628a {patient} \u9690\u85cf",tokens:[{type:"literal",value:"\u628a"},{type:"role",role:"patient"},{type:"literal",value:"\u9690\u85cf",alternatives:["\u96b1\u85cf","\u85cf\u8d77"]}]},extraction:{patient:{position:1}}},{id:"hide-zh-from",language:"zh",command:"hide",priority:90,template:{format:"\u4ece {destination} \u9690\u85cf {patient}",tokens:[{type:"literal",value:"\u4ece",alternatives:["\u5f9e"]},{type:"role",role:"destination"},{type:"literal",value:"\u9690\u85cf",alternatives:["\u96b1\u85cf"]},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:3}}}];default:return[]}},function(e){switch(e){case"bn":return Ig([{id:"set-bn-full",language:"bn",command:"set",priority:100,template:{format:"{destination} \u0995\u09c7 {patient} \u09a4\u09c7 \u09b8\u09c7\u099f",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u0995\u09c7"},{type:"role",role:"patient"},{type:"literal",value:"\u09a4\u09c7",alternatives:["\u098f"]},{type:"literal",value:"\u09b8\u09c7\u099f",alternatives:["\u09a8\u09bf\u09b0\u09cd\u09a7\u09be\u09b0\u09a3"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0995\u09b0\u09c1\u09a8"}]}]},extraction:{destination:{position:0},patient:{marker:"\u09a4\u09c7",position:2}}},{id:"set-bn-simple",language:"bn",command:"set",priority:90,template:{format:"\u09b8\u09c7\u099f {destination} {patient}",tokens:[{type:"literal",value:"\u09b8\u09c7\u099f",alternatives:["\u09a8\u09bf\u09b0\u09cd\u09a7\u09be\u09b0\u09a3"]},{type:"role",role:"destination"},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:2}}}]);case"de":return Ig([{id:"set-de-full",language:"de",command:"set",priority:100,template:{format:"setze {destination} auf {patient}",tokens:[{type:"literal",value:"setze",alternatives:["set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"auf",alternatives:["zu","an"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-de-festlegen-auf",language:"de",command:"set",priority:99,template:{format:"festlegen auf {destination} {patient}",tokens:[{type:"literal",value:"festlegen",alternatives:["einstellen"]},{type:"literal",value:"auf",alternatives:["an"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-de-equals",language:"de",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:0},patient:{position:2}}}]);case"es":return Ig([{id:"set-es-full",language:"es",command:"set",priority:100,template:{format:"establecer {destination} a {patient}",tokens:[{type:"literal",value:"establecer",alternatives:["fijar","definir","poner","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"a",alternatives:["en","como"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-es-prep-first",language:"es",command:"set",priority:95,template:{format:"establecer en {destination} {patient}",tokens:[{type:"literal",value:"establecer",alternatives:["fijar","definir","poner","set"]},{type:"literal",value:"en",alternatives:["a"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-es-equals",language:"es",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]);case"fr":return Ig([{id:"set-fr-full",language:"fr",command:"set",priority:100,template:{format:"d\u00e9finir {destination} \u00e0 {patient}",tokens:[{type:"literal",value:"d\u00e9finir",alternatives:["definir","fixer","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\u00e0",alternatives:["a","sur","comme"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-fr-sur-direct",language:"fr",command:"set",priority:98,template:{format:"d\u00e9finir sur {destination} {patient}",tokens:[{type:"literal",value:"d\u00e9finir",alternatives:["definir","mettre","fixer"]},{type:"literal",value:"sur",alternatives:["\u00e0","en"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-fr-equals",language:"fr",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:0},patient:{position:2}}}]);case"he":return Ig([{id:"set-he-full",language:"he",command:"set",priority:100,template:{format:"\u05e7\u05d1\u05e2 \u05d0\u05ea {destination} \u05e2\u05dc {patient}",tokens:[{type:"literal",value:"\u05e7\u05d1\u05e2",alternatives:["\u05d4\u05d2\u05d3\u05e8"]},{type:"literal",value:"\u05d0\u05ea"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\u05e2\u05dc",alternatives:["\u05d1","\u05d0\u05dc","\u05dc","\u05db"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{marker:"\u05d0\u05ea"},patient:{marker:"\u05e2\u05dc",markerAlternatives:["\u05d1","\u05d0\u05dc","\u05dc","\u05db"]}}}]);case"hi":return Ig([{id:"set-hi-full",language:"hi",command:"set",priority:100,template:{format:"{destination} \u0915\u094b {patient} \u0938\u0947\u091f \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"destination"},{type:"literal",value:"\u0915\u094b"},{type:"role",role:"patient"},{type:"literal",value:"\u0938\u0947\u091f",alternatives:["\u0928\u093f\u0930\u094d\u0927\u093e\u0930\u093f\u0924"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094b"]}]}]},extraction:{destination:{position:0},patient:{marker:"\u0915\u094b",position:2}}},{id:"set-hi-simple",language:"hi",command:"set",priority:90,template:{format:"\u0938\u0947\u091f {destination} {patient}",tokens:[{type:"literal",value:"\u0938\u0947\u091f",alternatives:["\u0928\u093f\u0930\u094d\u0927\u093e\u0930\u093f\u0924"]},{type:"role",role:"destination"},{type:"role",role:"patient"}]},extraction:{destination:{position:1},patient:{position:2}}}]);case"id":return Ig([{id:"set-id-full",language:"id",command:"set",priority:100,template:{format:"atur {destination} ke {patient}",tokens:[{type:"literal",value:"atur",alternatives:["tetapkan","setel","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"ke",alternatives:["menjadi","jadi","pada"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-id-pada-direct",language:"id",command:"set",priority:98,template:{format:"atur pada {destination} {patient}",tokens:[{type:"literal",value:"atur",alternatives:["tetapkan","setel"]},{type:"literal",value:"pada",alternatives:["ke","di"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-id-equals",language:"id",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:0},patient:{position:2}}}]);case"ms":return Ig([{id:"set-ms-full",language:"ms",command:"set",priority:100,template:{format:"tetapkan {destination} ke {patient}",tokens:[{type:"literal",value:"tetapkan",alternatives:["setkan","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"ke",alternatives:["kepada","menjadi","jadi"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:1},patient:{position:3}}}]);case"it":return Ig([{id:"set-it-full",language:"it",command:"set",priority:100,template:{format:"impostare {destination} a {patient}",tokens:[{type:"literal",value:"impostare",alternatives:["imposta","set","definire"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"a",alternatives:["su","come","in"]},{type:"role",role:"patient"}]}]},extraction:{destination:{position:1},patient:{marker:"a",markerAlternatives:["su","come","in"]}}},{id:"set-it-simple",language:"it",command:"set",priority:90,template:{format:"impostare {destination}",tokens:[{type:"literal",value:"impostare",alternatives:["imposta","set"]},{type:"role",role:"destination"}]},extraction:{destination:{position:1}}}]);case"pl":return Ig([{id:"set-pl-full",language:"pl",command:"set",priority:100,template:{format:"ustaw {destination} na {patient}",tokens:[{type:"literal",value:"ustaw",alternatives:["okre\u015bl","okresl","przypisz"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"na",alternatives:["do","jako"]},{type:"role",role:"patient"}]}]},extraction:{destination:{position:1},patient:{marker:"na",markerAlternatives:["do","jako"]}}},{id:"set-pl-simple",language:"pl",command:"set",priority:90,template:{format:"ustaw {destination}",tokens:[{type:"literal",value:"ustaw",alternatives:["okre\u015bl","okresl"]},{type:"role",role:"destination"}]},extraction:{destination:{position:1}}}]);case"pt":return Ig([{id:"set-pt-full",language:"pt",command:"set",priority:100,template:{format:"definir {destination} para {patient}",tokens:[{type:"literal",value:"definir",alternatives:["estabelecer","set"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"para",alternatives:["como","a","em"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:1},patient:{position:3}}},{id:"set-pt-em-direct",language:"pt",command:"set",priority:98,template:{format:"definir em {destination} {patient}",tokens:[{type:"literal",value:"definir",alternatives:["estabelecer"]},{type:"literal",value:"em",alternatives:["para","a"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:2},patient:{position:3}}},{id:"set-pt-equals",language:"pt",command:"set",priority:95,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:0},patient:{position:2}}}]);case"qu":return Ig([{id:"set-qu-oblique-source",language:"qu",command:"set",priority:105,template:{format:"{destination} ta {source} manta {patient} man churanay",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"ta"},{type:"role",role:"source",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"manta"},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]},{type:"literal",value:"man"},{type:"literal",value:"churanay",alternatives:["kamaykuy"]}]},extraction:{destination:{position:0},source:{position:2},patient:{position:4}}}]);case"ru":return Ig([{id:"set-ru-full",language:"ru",command:"set",priority:100,template:{format:"\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c {destination} \u0432 {patient}",tokens:[{type:"literal",value:"\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c",alternatives:["\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044c","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u043d\u0430","\u043a\u0430\u043a"]},{type:"role",role:"patient"}]}]},extraction:{destination:{position:1},patient:{marker:"\u0432",markerAlternatives:["\u043d\u0430","\u043a\u0430\u043a"]}}},{id:"set-ru-simple",language:"ru",command:"set",priority:90,template:{format:"\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c {destination}",tokens:[{type:"literal",value:"\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c",alternatives:["\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u044c","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"destination"}]},extraction:{destination:{position:1}}}]);case"sw":return Ig([{id:"set-sw-kwa",language:"sw",command:"set",priority:100,template:{format:"seti {destination} kwa {patient}",tokens:[{type:"literal",value:"seti",alternatives:["weka thamani"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"kwa",alternatives:["kwenye"]},{type:"role",role:"patient",expectedTypes:$g}]},extraction:{destination:{position:1},patient:{marker:"kwa",markerAlternatives:["kwenye"]}}}]);case"th":return Ig([{id:"set-th-simple",language:"th",command:"set",priority:100,template:{format:"\u0e15\u0e31\u0e49\u0e07 {destination} \u0e43\u0e19 {patient}",tokens:[{type:"literal",value:"\u0e15\u0e31\u0e49\u0e07",alternatives:["\u0e01\u0e33\u0e2b\u0e19\u0e14","\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0e43\u0e19",alternatives:["\u0e40\u0e1b\u0e47\u0e19"]},{type:"role",role:"patient"}]}]},extraction:{destination:{position:1},patient:{marker:"\u0e43\u0e19",markerAlternatives:["\u0e40\u0e1b\u0e47\u0e19"]}}}]);case"uk":return Ig([{id:"set-uk-full",language:"uk",command:"set",priority:100,template:{format:"\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 {destination} \u0432 {patient}",tokens:[{type:"literal",value:"\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0432",alternatives:["\u043d\u0430","\u044f\u043a"]},{type:"role",role:"patient"}]}]},extraction:{destination:{position:1},patient:{marker:"\u0432",markerAlternatives:["\u043d\u0430","\u044f\u043a"]}}},{id:"set-uk-simple",language:"uk",command:"set",priority:90,template:{format:"\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 {destination}",tokens:[{type:"literal",value:"\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438",alternatives:["\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438","\u0437\u0430\u0434\u0430\u0442\u0438","\u0437\u0430\u0434\u0430\u0439"]},{type:"role",role:"destination"}]},extraction:{destination:{position:1}}}]);case"vi":return Ig([{id:"set-vi-vao",language:"vi",command:"set",priority:101,template:{format:"g\u00e1n {destination} v\u00e0o {patient}",tokens:[{type:"literal",value:"g\u00e1n",alternatives:["thi\u1ebft l\u1eadp","\u0111\u1eb7t gi\u00e1 tr\u1ecb"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"v\u00e0o",alternatives:["cho","\u0111\u1ebfn"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference","selector"]}]},extraction:{destination:{position:1},patient:{marker:"v\u00e0o",markerAlternatives:["cho","\u0111\u1ebfn"]}}},{id:"set-vi-full",language:"vi",command:"set",priority:100,template:{format:"g\u00e1n {destination} th\u00e0nh {patient}",tokens:[{type:"literal",value:"g\u00e1n",alternatives:["thi\u1ebft l\u1eadp","\u0111\u1eb7t gi\u00e1 tr\u1ecb"]},{type:"role",role:"patient"},{type:"literal",value:"th\u00e0nh",alternatives:["b\u1eb1ng","l\u00e0"]},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{marker:"th\u00e0nh",markerAlternatives:["b\u1eb1ng","l\u00e0"]}}},{id:"set-vi-simple",language:"vi",command:"set",priority:90,template:{format:"\u0111\u1eb7t {destination} l\u00e0 {patient}",tokens:[{type:"literal",value:"\u0111\u1eb7t"},{type:"role",role:"patient"},{type:"literal",value:"l\u00e0"},{type:"role",role:"goal"}]},extraction:{patient:{position:1},goal:{marker:"l\u00e0"}}}]);case"zh":return Ig([{id:"set-zh-full",language:"zh",command:"set",priority:100,template:{format:"\u8bbe\u7f6e {destination} \u5230 {patient}",tokens:[{type:"literal",value:"\u8bbe\u7f6e",alternatives:["\u8a2d\u7f6e","\u8bbe\u5b9a","\u8a2d\u5b9a"]},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\u5230",alternatives:["\u4e3a","\u70ba","\u6210"]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"\u5230",markerAlternatives:["\u4e3a","\u70ba","\u6210"]}}},{id:"set-zh-ba",language:"zh",command:"set",priority:95,template:{format:"\u628a {destination} \u8bbe\u7f6e \u5230 {patient}",tokens:[{type:"literal",value:"\u628a"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"\u8bbe\u7f6e",alternatives:["\u8a2d\u7f6e","\u8bbe\u5b9a","\u8a2d\u5b9a","\u8bbe\u7f6e\u4e3a","\u8a2d\u7f6e\u70ba","\u8bbe\u5b9a\u4e3a","\u8a2d\u5b9a\u70ba"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5230",alternatives:["\u4e3a","\u70ba","\u6210"]}]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:1},patient:{marker:"\u5230",markerAlternatives:["\u4e3a","\u70ba","\u6210"]}}},{id:"set-zh-vba",language:"zh",command:"set",priority:96,template:{format:"\u8bbe\u7f6e \u628a {destination} \u5230 {patient}",tokens:[{type:"literal",value:"\u8bbe\u7f6e",alternatives:["\u8a2d\u7f6e","\u8bbe\u5b9a","\u8a2d\u5b9a"]},{type:"literal",value:"\u628a"},{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5230",alternatives:["\u4e3a","\u70ba","\u6210"]}]},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:2},patient:{marker:"\u5230",markerAlternatives:["\u4e3a","\u70ba","\u6210"]}}},{id:"set-zh-simple",language:"zh",command:"set",priority:90,template:{format:"{destination} = {patient}",tokens:[{type:"role",role:"destination",expectedTypes:["property-path","selector","reference","expression"]},{type:"literal",value:"="},{type:"role",role:"patient",expectedTypes:["literal","expression","reference"]}]},extraction:{destination:{position:0},patient:{position:2}}}]);default:return[]}},function(e){switch(e){case"bn":return[{id:"get-bn-full",language:"bn",command:"get",priority:100,template:{format:"{source} \u09a5\u09c7\u0995\u09c7 \u09aa\u09be\u09a8",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u09a5\u09c7\u0995\u09c7"},{type:"literal",value:"\u09aa\u09be\u09a8"}]},extraction:{source:{position:0}}},{id:"get-bn-simple",language:"bn",command:"get",priority:90,template:{format:"\u09aa\u09be\u09a8 {source}",tokens:[{type:"literal",value:"\u09aa\u09be\u09a8"},{type:"role",role:"source"}]},extraction:{source:{position:1}}}];case"de":return[{id:"get-de-full",language:"de",command:"get",priority:100,template:{format:"hole {source}",tokens:[{type:"literal",value:"hole",alternatives:["holen","get","bekomme","bekommen"]},{type:"role",role:"source",expectedTypes:Kg}]},extraction:{source:{position:1}}}];case"zh":return[{id:"get-zh-ba",language:"zh",command:"get",priority:105,template:{format:"\u83b7\u53d6 \u628a {source}",tokens:[{type:"literal",value:"\u83b7\u53d6",alternatives:["\u83b7\u5f97","\u53d6\u5f97"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u628a",alternatives:["\u4ece","\u7531"]}]},{type:"role",role:"source",expectedTypes:Kg}]},extraction:{source:{marker:"\u628a",markerAlternatives:["\u4ece","\u7531"]}}}];case"hi":return[{id:"get-hi-full",language:"hi",command:"get",priority:100,template:{format:"{source} \u0938\u0947 \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0915\u0930\u0947\u0902",tokens:[{type:"role",role:"source"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u092a\u094d\u0930\u093e\u092a\u094d\u0924",alternatives:["\u092a\u093e\u090f\u0902"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0915\u0930\u0947\u0902",alternatives:["\u0915\u0930\u094b"]}]}]},extraction:{source:{position:0}}},{id:"get-hi-simple",language:"hi",command:"get",priority:90,template:{format:"\u092a\u094d\u0930\u093e\u092a\u094d\u0924 {source}",tokens:[{type:"literal",value:"\u092a\u094d\u0930\u093e\u092a\u094d\u0924",alternatives:["\u092a\u093e\u090f\u0902"]},{type:"role",role:"source"}]},extraction:{source:{position:1}}}];case"it":return[{id:"get-it-full",language:"it",command:"get",priority:100,template:{format:"ottenere {patient} da {source}",tokens:[{type:"literal",value:"ottenere",alternatives:["ottieni","get"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"da",alternatives:["di"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"da",markerAlternatives:["di"]}}},{id:"get-it-simple",language:"it",command:"get",priority:90,template:{format:"ottenere {patient}",tokens:[{type:"literal",value:"ottenere",alternatives:["ottieni","get"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"pl":return[{id:"get-pl-full",language:"pl",command:"get",priority:100,template:{format:"uzyskaj {patient} z {source}",tokens:[{type:"literal",value:"uzyskaj"},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"z",alternatives:["od","ze"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"z",markerAlternatives:["od","ze"]}}},{id:"get-pl-simple",language:"pl",command:"get",priority:90,template:{format:"uzyskaj {patient}",tokens:[{type:"literal",value:"uzyskaj"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"ru":return[{id:"get-ru-full",language:"ru",command:"get",priority:100,template:{format:"\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c {patient} \u0438\u0437 {source}",tokens:[{type:"literal",value:"\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c",alternatives:["\u043f\u043e\u043b\u0443\u0447\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0438\u0437",alternatives:["\u043e\u0442","\u0441"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0438\u0437",markerAlternatives:["\u043e\u0442","\u0441"]}}},{id:"get-ru-simple",language:"ru",command:"get",priority:90,template:{format:"\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c {patient}",tokens:[{type:"literal",value:"\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c",alternatives:["\u043f\u043e\u043b\u0443\u0447\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"th":return[{id:"get-th-simple",language:"th",command:"get",priority:100,template:{format:"\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32 {source}",tokens:[{type:"literal",value:"\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32"},{type:"role",role:"source"}]},extraction:{source:{position:1}}}];case"uk":return[{id:"get-uk-full",language:"uk",command:"get",priority:100,template:{format:"\u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 {patient} \u0437 {source}",tokens:[{type:"literal",value:"\u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438",alternatives:["\u043e\u0442\u0440\u0438\u043c\u0430\u0439"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0437",alternatives:["\u0432\u0456\u0434","\u0456\u0437"]},{type:"role",role:"source"}]}]},extraction:{patient:{position:1},source:{marker:"\u0437",markerAlternatives:["\u0432\u0456\u0434","\u0456\u0437"]}}},{id:"get-uk-simple",language:"uk",command:"get",priority:90,template:{format:"\u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438",alternatives:["\u043e\u0442\u0440\u0438\u043c\u0430\u0439"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"vi":return[{id:"get-vi-full",language:"vi",command:"get",priority:92,template:{format:"l\u1ea5y gi\u00e1 tr\u1ecb c\u1ee7a {target}",tokens:[{type:"literal",value:"l\u1ea5y gi\u00e1 tr\u1ecb",alternatives:["nh\u1eadn"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"c\u1ee7a"}]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"get-vi-simple",language:"vi",command:"get",priority:90,template:{format:"l\u1ea5y gi\u00e1 tr\u1ecb {target}",tokens:[{type:"literal",value:"l\u1ea5y gi\u00e1 tr\u1ecb",alternatives:["nh\u1eadn"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];default:return[]}},function(e){switch(e){case"bn":return[{id:"increment-bn-full",language:"bn",command:"increment",priority:100,template:{format:"{patient} \u0995\u09c7 \u09ac\u09c3\u09a6\u09cd\u09a7\u09bf \u0995\u09b0\u09c1\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u09ac\u09c3\u09a6\u09cd\u09a7\u09bf",alternatives:["\u09ac\u09be\u09a1\u09bc\u09be\u09a8"]},{type:"literal",value:"\u0995\u09b0\u09c1\u09a8"}]},extraction:{patient:{position:0}}},{id:"increment-bn-with-quantity",language:"bn",command:"increment",priority:95,template:{format:"{patient} \u0995\u09c7 {quantity} \u09a6\u09bf\u09af\u09bc\u09c7 \u09ac\u09c3\u09a6\u09cd\u09a7\u09bf \u0995\u09b0\u09c1\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"role",role:"quantity"},{type:"literal",value:"\u09a6\u09bf\u09af\u09bc\u09c7"},{type:"literal",value:"\u09ac\u09c3\u09a6\u09cd\u09a7\u09bf",alternatives:["\u09ac\u09be\u09a1\u09bc\u09be\u09a8"]},{type:"literal",value:"\u0995\u09b0\u09c1\u09a8"}]},extraction:{patient:{position:0},quantity:{marker:"\u09a6\u09bf\u09af\u09bc\u09c7",position:2}}},{id:"increment-bn-simple",language:"bn",command:"increment",priority:90,template:{format:"\u09ac\u09c3\u09a6\u09cd\u09a7\u09bf {patient}",tokens:[{type:"literal",value:"\u09ac\u09c3\u09a6\u09cd\u09a7\u09bf",alternatives:["\u09ac\u09be\u09a1\u09bc\u09be\u09a8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"de":return function(){const e=["erhoehe","erh\u00f6hen","inkrementiere","inkrementieren","increment"];return[{id:"increment-de-with-quantity",language:"de",command:"increment",priority:105,template:{format:"erh\u00f6he {patient} um {quantity}",tokens:[{type:"literal",value:"erh\u00f6he",alternatives:e},{type:"role",role:"patient",expectedTypes:Vg},{type:"literal",value:"um"},{type:"role",role:"quantity"}]},extraction:{patient:{position:1},quantity:{marker:"um",position:3}}},{id:"increment-de-full",language:"de",command:"increment",priority:100,template:{format:"erh\u00f6he {patient}",tokens:[{type:"literal",value:"erh\u00f6he",alternatives:e},{type:"role",role:"patient",expectedTypes:Vg}]},extraction:{patient:{position:1}}}]}();case"hi":return[{id:"increment-hi-full",language:"hi",command:"increment",priority:100,template:{format:"{patient} \u0915\u094b \u092c\u0922\u093c\u093e\u090f\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"literal",value:"\u092c\u0922\u093c\u093e\u090f\u0902",alternatives:["\u092c\u0922\u093c\u093e"]}]},extraction:{patient:{position:0}}},{id:"increment-hi-with-quantity",language:"hi",command:"increment",priority:95,template:{format:"{patient} \u0915\u094b {quantity} \u0938\u0947 \u092c\u0922\u093c\u093e\u090f\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"role",role:"quantity"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u092c\u0922\u093c\u093e\u090f\u0902",alternatives:["\u092c\u0922\u093c\u093e"]}]},extraction:{patient:{position:0},quantity:{marker:"\u0938\u0947",position:2}}},{id:"increment-hi-simple",language:"hi",command:"increment",priority:90,template:{format:"\u092c\u0922\u093c\u093e\u090f\u0902 {patient}",tokens:[{type:"literal",value:"\u092c\u0922\u093c\u093e\u090f\u0902",alternatives:["\u092c\u0922\u093c\u093e"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"it":return[{id:"increment-it-full",language:"it",command:"increment",priority:100,template:{format:"incrementare {patient} di {quantity}",tokens:[{type:"literal",value:"incrementare",alternatives:["incrementa","aumentare","increment"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"di",alternatives:["per"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"di",markerAlternatives:["per"],default:{type:"literal",value:1}}}},{id:"increment-it-simple",language:"it",command:"increment",priority:90,template:{format:"incrementare {patient}",tokens:[{type:"literal",value:"incrementare",alternatives:["incrementa","aumentare","increment"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}];case"pl":return[{id:"increment-pl-full",language:"pl",command:"increment",priority:100,template:{format:"zwi\u0119ksz {patient} o {quantity}",tokens:[{type:"literal",value:"zwi\u0119ksz",alternatives:["zwieksz","podnie\u015b","podnies"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"o"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"o",default:{type:"literal",value:1}}}},{id:"increment-pl-simple",language:"pl",command:"increment",priority:90,template:{format:"zwi\u0119ksz {patient}",tokens:[{type:"literal",value:"zwi\u0119ksz",alternatives:["zwieksz","podnie\u015b","podnies"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}];case"ru":return[{id:"increment-ru-full",language:"ru",command:"increment",priority:100,template:{format:"\u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c {patient} \u043d\u0430 {quantity}",tokens:[{type:"literal",value:"\u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c",alternatives:["\u0443\u0432\u0435\u043b\u0438\u0447\u044c"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043d\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043d\u0430",default:{type:"literal",value:1}}}},{id:"increment-ru-simple",language:"ru",command:"increment",priority:90,template:{format:"\u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c {patient}",tokens:[{type:"literal",value:"\u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c",alternatives:["\u0443\u0432\u0435\u043b\u0438\u0447\u044c"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}];case"th":return[{id:"increment-th-simple",language:"th",command:"increment",priority:90,template:{format:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e48\u0e32 {patient}",tokens:[{type:"literal",value:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e48\u0e32"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"increment-th-with-quantity",language:"th",command:"increment",priority:95,template:{format:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e48\u0e32 {patient} \u0e14\u0e49\u0e27\u0e22 {quantity}",tokens:[{type:"literal",value:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e04\u0e48\u0e32"},{type:"role",role:"patient"},{type:"literal",value:"\u0e14\u0e49\u0e27\u0e22"},{type:"role",role:"quantity"}]},extraction:{patient:{position:1},quantity:{marker:"\u0e14\u0e49\u0e27\u0e22",position:3}}}];case"uk":return[{id:"increment-uk-full",language:"uk",command:"increment",priority:100,template:{format:"\u0437\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438 {patient} \u043d\u0430 {quantity}",tokens:[{type:"literal",value:"\u0437\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043b\u044c\u0448"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043d\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043d\u0430",default:{type:"literal",value:1}}}},{id:"increment-uk-simple",language:"uk",command:"increment",priority:90,template:{format:"\u0437\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0437\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438",alternatives:["\u0437\u0431\u0456\u043b\u044c\u0448"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}];case"qu":return[{id:"increment-qu-sov",language:"qu",command:"increment",priority:100,template:{format:"{patient} ta yapachiy",tokens:[{type:"role",role:"patient"},{type:"literal",value:"ta"},{type:"literal",value:"yapachiy"}]},extraction:{patient:{position:0},quantity:{default:{type:"literal",value:1}}}},{id:"increment-qu-simple",language:"qu",command:"increment",priority:90,template:{format:"yapachiy {patient}",tokens:[{type:"literal",value:"yapachiy"},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}];case"vi":return[{id:"increment-vi-full",language:"vi",command:"increment",priority:100,template:{format:"t\u0103ng {target} th\u00eam {amount}",tokens:[{type:"literal",value:"t\u0103ng",alternatives:["t\u0103ng l\u00ean"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"th\u00eam",alternatives:["l\u00ean"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"th\u00eam",markerAlternatives:["l\u00ean"],default:{type:"literal",value:1}}}},{id:"increment-vi-simple",language:"vi",command:"increment",priority:90,template:{format:"t\u0103ng {target}",tokens:[{type:"literal",value:"t\u0103ng",alternatives:["t\u0103ng l\u00ean"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}];case"zh":return[{id:"increment-zh-full",language:"zh",command:"increment",priority:100,template:{format:"\u589e\u52a0 {patient}",tokens:[{type:"literal",value:"\u589e\u52a0",alternatives:["\u9012\u589e","\u52a0","\u589e","increment"]},{type:"role",role:"patient",expectedTypes:Vg}]},extraction:{patient:{position:1}}}];default:return[]}},function(e){switch(e){case"bn":return[{id:"decrement-bn-full",language:"bn",command:"decrement",priority:100,template:{format:"{patient} \u0995\u09c7 \u09b9\u09cd\u09b0\u09be\u09b8 \u0995\u09b0\u09c1\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"literal",value:"\u09b9\u09cd\u09b0\u09be\u09b8",alternatives:["\u0995\u09ae\u09be\u09a8"]},{type:"literal",value:"\u0995\u09b0\u09c1\u09a8"}]},extraction:{patient:{position:0}}},{id:"decrement-bn-with-quantity",language:"bn",command:"decrement",priority:95,template:{format:"{patient} \u0995\u09c7 {quantity} \u09a6\u09bf\u09af\u09bc\u09c7 \u09b9\u09cd\u09b0\u09be\u09b8 \u0995\u09b0\u09c1\u09a8",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0995\u09c7"},{type:"role",role:"quantity"},{type:"literal",value:"\u09a6\u09bf\u09af\u09bc\u09c7"},{type:"literal",value:"\u09b9\u09cd\u09b0\u09be\u09b8",alternatives:["\u0995\u09ae\u09be\u09a8"]},{type:"literal",value:"\u0995\u09b0\u09c1\u09a8"}]},extraction:{patient:{position:0},quantity:{marker:"\u09a6\u09bf\u09af\u09bc\u09c7",position:2}}},{id:"decrement-bn-simple",language:"bn",command:"decrement",priority:90,template:{format:"\u09b9\u09cd\u09b0\u09be\u09b8 {patient}",tokens:[{type:"literal",value:"\u09b9\u09cd\u09b0\u09be\u09b8",alternatives:["\u0995\u09ae\u09be\u09a8"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"de":return function(){const e=["verringern","dekrementiere","dekrementieren","reduziere","decrement"];return[{id:"decrement-de-with-quantity",language:"de",command:"decrement",priority:105,template:{format:"verringere {patient} um {quantity}",tokens:[{type:"literal",value:"verringere",alternatives:e},{type:"role",role:"patient",expectedTypes:Vg},{type:"literal",value:"um"},{type:"role",role:"quantity"}]},extraction:{patient:{position:1},quantity:{marker:"um",position:3}}},{id:"decrement-de-full",language:"de",command:"decrement",priority:100,template:{format:"verringere {patient}",tokens:[{type:"literal",value:"verringere",alternatives:e},{type:"role",role:"patient",expectedTypes:Vg}]},extraction:{patient:{position:1}}}]}();case"hi":return[{id:"decrement-hi-full",language:"hi",command:"decrement",priority:100,template:{format:"{patient} \u0915\u094b \u0918\u091f\u093e\u090f\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"literal",value:"\u0918\u091f\u093e\u090f\u0902",alternatives:["\u0918\u091f\u093e"]}]},extraction:{patient:{position:0}}},{id:"decrement-hi-with-quantity",language:"hi",command:"decrement",priority:95,template:{format:"{patient} \u0915\u094b {quantity} \u0938\u0947 \u0918\u091f\u093e\u090f\u0902",tokens:[{type:"role",role:"patient"},{type:"literal",value:"\u0915\u094b"},{type:"role",role:"quantity"},{type:"literal",value:"\u0938\u0947"},{type:"literal",value:"\u0918\u091f\u093e\u090f\u0902",alternatives:["\u0918\u091f\u093e"]}]},extraction:{patient:{position:0},quantity:{marker:"\u0938\u0947",position:2}}},{id:"decrement-hi-simple",language:"hi",command:"decrement",priority:90,template:{format:"\u0918\u091f\u093e\u090f\u0902 {patient}",tokens:[{type:"literal",value:"\u0918\u091f\u093e\u090f\u0902",alternatives:["\u0918\u091f\u093e"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}}];case"it":return[{id:"decrement-it-full",language:"it",command:"decrement",priority:100,template:{format:"decrementare {patient} di {quantity}",tokens:[{type:"literal",value:"decrementare",alternatives:["decrementa","diminuire","decrement"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"di",alternatives:["per"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"di",markerAlternatives:["per"],default:{type:"literal",value:"1"}}}},{id:"decrement-it-simple",language:"it",command:"decrement",priority:90,template:{format:"decrementare {patient}",tokens:[{type:"literal",value:"decrementare",alternatives:["decrementa","diminuire","decrement"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}];case"pl":return[{id:"decrement-pl-full",language:"pl",command:"decrement",priority:100,template:{format:"zmniejsz {patient} o {quantity}",tokens:[{type:"literal",value:"zmniejsz",alternatives:["obni\u017c","obniz"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"o"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"o",default:{type:"literal",value:1}}}},{id:"decrement-pl-simple",language:"pl",command:"decrement",priority:90,template:{format:"zmniejsz {patient}",tokens:[{type:"literal",value:"zmniejsz",alternatives:["obni\u017c","obniz"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}];case"ru":return[{id:"decrement-ru-full",language:"ru",command:"decrement",priority:100,template:{format:"\u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c {patient} \u043d\u0430 {quantity}",tokens:[{type:"literal",value:"\u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c",alternatives:["\u0443\u043c\u0435\u043d\u044c\u0448\u0438"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043d\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043d\u0430",default:{type:"literal",value:1}}}},{id:"decrement-ru-simple",language:"ru",command:"decrement",priority:90,template:{format:"\u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c {patient}",tokens:[{type:"literal",value:"\u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c",alternatives:["\u0443\u043c\u0435\u043d\u044c\u0448\u0438"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}];case"th":return[{id:"decrement-th-simple",language:"th",command:"decrement",priority:90,template:{format:"\u0e25\u0e14\u0e04\u0e48\u0e32 {patient}",tokens:[{type:"literal",value:"\u0e25\u0e14\u0e04\u0e48\u0e32"},{type:"role",role:"patient"}]},extraction:{patient:{position:1}}},{id:"decrement-th-with-quantity",language:"th",command:"decrement",priority:95,template:{format:"\u0e25\u0e14\u0e04\u0e48\u0e32 {patient} \u0e14\u0e49\u0e27\u0e22 {quantity}",tokens:[{type:"literal",value:"\u0e25\u0e14\u0e04\u0e48\u0e32"},{type:"role",role:"patient"},{type:"literal",value:"\u0e14\u0e49\u0e27\u0e22"},{type:"role",role:"quantity"}]},extraction:{patient:{position:1},quantity:{marker:"\u0e14\u0e49\u0e27\u0e22",position:3}}}];case"uk":return[{id:"decrement-uk-full",language:"uk",command:"decrement",priority:100,template:{format:"\u0437\u043c\u0435\u043d\u0448\u0438\u0442\u0438 {patient} \u043d\u0430 {quantity}",tokens:[{type:"literal",value:"\u0437\u043c\u0435\u043d\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043c\u0435\u043d\u0448"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u043d\u0430"},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u043d\u0430",default:{type:"literal",value:1}}}},{id:"decrement-uk-simple",language:"uk",command:"decrement",priority:90,template:{format:"\u0437\u043c\u0435\u043d\u0448\u0438\u0442\u0438 {patient}",tokens:[{type:"literal",value:"\u0437\u043c\u0435\u043d\u0448\u0438\u0442\u0438",alternatives:["\u0437\u043c\u0435\u043d\u0448"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:1}}}}];case"vi":return[{id:"decrement-vi-full",language:"vi",command:"decrement",priority:100,template:{format:"gi\u1ea3m {target} \u0111i {amount}",tokens:[{type:"literal",value:"gi\u1ea3m",alternatives:["gi\u1ea3m \u0111i"]},{type:"role",role:"patient"},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u0111i",alternatives:["xu\u1ed1ng"]},{type:"role",role:"quantity"}]}]},extraction:{patient:{position:1},quantity:{marker:"\u0111i",markerAlternatives:["xu\u1ed1ng"],default:{type:"literal",value:"1"}}}},{id:"decrement-vi-simple",language:"vi",command:"decrement",priority:90,template:{format:"gi\u1ea3m {target}",tokens:[{type:"literal",value:"gi\u1ea3m",alternatives:["gi\u1ea3m \u0111i"]},{type:"role",role:"patient"}]},extraction:{patient:{position:1},quantity:{default:{type:"literal",value:"1"}}}}];case"zh":return[{id:"decrement-zh-full",language:"zh",command:"decrement",priority:100,template:{format:"\u51cf\u5c11 {patient}",tokens:[{type:"literal",value:"\u51cf\u5c11",alternatives:["\u9012\u51cf","\u51cf","\u964d\u4f4e","decrement"]},{type:"role",role:"patient",expectedTypes:Vg}]},extraction:{patient:{position:1}}}];default:return[]}},fd,function(e){switch(e){case"zh":return function(){const e=Bg("zh");return[{id:"fetch-zh-ba",language:"zh",command:"fetch",priority:105,template:{format:"\u6293\u53d6 \u628a {source} \u7684 {responseType}",tokens:[{type:"literal",value:"\u6293\u53d6",alternatives:["\u53d6"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u628a",alternatives:["\u4ece","\u7531"]}]},{type:"role",role:"source",expectedTypes:["literal","expression"]},...e?[e.token]:[],{type:"group",optional:!0,tokens:[{type:"literal",value:"\u7684",alternatives:["\u4f5c\u4e3a","\u5f53\u4f5c"]},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]}]},extraction:{source:{marker:"\u628a",markerAlternatives:["\u4ece","\u7531"]},...e?{style:e.extraction}:{},responseType:{marker:"\u7684",markerAlternatives:["\u4f5c\u4e3a","\u5f53\u4f5c"]}}}]}();case"ms":return function(){const e=Bg("ms");return[{id:"fetch-ms",language:"ms",command:"fetch",priority:105,template:{format:"ambil_dari dari {source} sebagai {responseType}",tokens:[{type:"literal",value:"ambil_dari",alternatives:["muat","ambil"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"dari"}]},{type:"role",role:"source",expectedTypes:["literal","expression"]},...e?[e.token]:[],{type:"group",optional:!0,tokens:[{type:"literal",value:"sebagai",alternatives:["sbg"]},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]}]},extraction:{source:{marker:"dari"},...e?{style:e.extraction}:{},responseType:{marker:"sebagai",markerAlternatives:["sbg"]}}}]}();case"fr":return function(){const e=Bg("fr");return[{id:"fetch-fr",language:"fr",command:"fetch",priority:105,template:{format:"chercher de {source} comme {responseType}",tokens:[{type:"literal",value:"chercher",alternatives:["r\u00e9cup\u00e9rer"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"de"}]},{type:"role",role:"source",expectedTypes:["literal","expression"]},...e?[e.token]:[],{type:"group",optional:!0,tokens:[{type:"literal",value:"comme"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]}]},extraction:{source:{marker:"de"},responseType:{marker:"comme"},...e?{style:e.extraction}:{}}}]}();case"pt":return function(){const e=Bg("pt");return[{id:"fetch-pt",language:"pt",command:"fetch",priority:105,template:{format:"buscar de {source} como {responseType}",tokens:[{type:"literal",value:"buscar"},{type:"group",optional:!0,tokens:[{type:"literal",value:"de"}]},{type:"role",role:"source",expectedTypes:["literal","expression"]},...e?[e.token]:[],{type:"group",optional:!0,tokens:[{type:"literal",value:"como"},{type:"role",role:"responseType",expectedTypes:["literal","expression"]}]}]},extraction:{source:{marker:"de"},responseType:{marker:"como"},...e?{style:e.extraction}:{}}}]}();case"es":return[Dg("fetch-es","es","buscar","de","como")];case"pl":return[Dg("fetch-pl","pl","pobierz","z","jako")];case"id":return[Dg("fetch-id","id","muat","dari","sebagai",["ambil"])];case"sw":return[Dg("fetch-sw","sw","leta","kutoka","kuwa",void 0,void 0,["kama"])];case"he":return[Dg("fetch-he","he","\u05d4\u05d1\u05d0","\u05de","\u05db",["\u05d8\u05e2\u05df"],["\u05d0\u05ea"])];case"de":return[Dg("fetch-de","de","abrufen","von","als",["laden"])];case"ru":return[Dg("fetch-ru","ru","\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c","\u0438\u0437","\u043a\u0430\u043a",["\u0437\u0430\u0433\u0440\u0443\u0437\u0438"])];case"uk":return[Dg("fetch-uk","uk","\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438","\u0437","\u044f\u043a",["\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436"])];case"it":return[Dg("fetch-it","it","recuperare","da","come")];case"vi":return[Dg("fetch-vi","vi","t\u1ea3i","t\u1eeb","nh\u01b0")];case"th":return[Dg("fetch-th","th","\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25","\u0e08\u0e32\u0e01","\u0e40\u0e1b\u0e47\u0e19")];case"ar":return[Dg("fetch-ar","ar","\u0627\u062d\u0636\u0631","\u0645\u0646","\u0643\u0640",["\u062c\u0644\u0628"])];case"tl":return[Dg("fetch-tl","tl","kuhanin_mula","mula_sa","bilang",["kunin_mula"])];case"ja":return[Fg("fetch-ja-sov","ja","\u30d5\u30a7\u30c3\u30c1","\u3092")];case"ko":return[Fg("fetch-ko-sov","ko","\ud328\uce58","\uc744",["\uac00\uc838\uc624\uae30"],["\ub97c"],"\ub85c",["\uc73c\ub85c"])];case"tr":return[Fg("fetch-tr-sov","tr","getir","i",void 0,["\u0131","u","\u00fc","yi","y\u0131","yu","y\u00fc"],"olarak")];case"hi":return[Fg("fetch-hi-sov","hi","\u0932\u093e\u090f\u0902","\u0915\u094b")];case"qu":return[Fg("fetch-qu-sov","qu","apamuy","ta",["taripakaramuy"],void 0,"hina")];case"bn":return[Fg("fetch-bn-sov","bn","\u0986\u09a8\u09c1\u09a8","\u0995\u09c7")];default:return[]}},dd,function(e){return"en"===e?[{id:"append-en-full",language:"en",command:"append",priority:100,template:{format:"append {patient} to {destination}",tokens:[{type:"literal",value:"append"},{type:"role",role:"patient",expectedTypes:["literal","selector","expression"]},{type:"literal",value:"to"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{marker:"to"}}}]:[]},function(e){return"en"===e?[{id:"prepend-en-full",language:"en",command:"prepend",priority:100,template:{format:"prepend {patient} to {destination}",tokens:[{type:"literal",value:"prepend"},{type:"role",role:"patient",expectedTypes:["literal","selector","expression"]},{type:"literal",value:"to"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]},extraction:{patient:{position:1},destination:{marker:"to"}}}]:[]},function(e){switch(e){case"en":return[{id:"trigger-en-full",language:"en",command:"trigger",priority:100,template:{format:"trigger {event} on {destination}",tokens:[{type:"literal",value:"trigger"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"on"},{type:"role",role:"destination",expectedTypes:["selector","reference"]}]}]},extraction:{event:{position:1},destination:{marker:"on",default:{type:"reference",value:"me"}}}},{id:"trigger-en-simple",language:"en",command:"trigger",priority:90,template:{format:"trigger {event}",tokens:[{type:"literal",value:"trigger"},{type:"role",role:"event",expectedTypes:["literal","expression"]}]},extraction:{event:{position:1},destination:{default:{type:"reference",value:"me"}}}}];case"zh":return[{id:"trigger-zh-ba",language:"zh",command:"trigger",priority:105,template:{format:"\u89e6\u53d1 \u628a {event} \u5728 {destination}",tokens:[{type:"literal",value:"\u89e6\u53d1",alternatives:["\u89f8\u767c"]},{type:"literal",value:"\u628a"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5728",alternatives:["\u5230","\u4e8e"]},{type:"role",role:"destination",expectedTypes:["selector","reference","expression"]}]}]},extraction:{event:{position:2},destination:{marker:"\u5728",markerAlternatives:["\u5230","\u4e8e"],default:{type:"reference",value:"me"}}}}];case"he":return[{id:"trigger-he-et",language:"he",command:"trigger",priority:105,template:{format:"\u05d4\u05e4\u05e2\u05dc \u05d0\u05ea {event} \u05e2\u05dc {destination}",tokens:[{type:"literal",value:"\u05d4\u05e4\u05e2\u05dc",alternatives:["\u05e9\u05d2\u05e8"]},{type:"literal",value:"\u05d0\u05ea"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u05e2\u05dc",alternatives:["\u05dc","\u05d0\u05dc"]},{type:"role",role:"destination",expectedTypes:["selector","reference","expression"]}]}]},extraction:{event:{position:2},destination:{marker:"\u05e2\u05dc",markerAlternatives:["\u05dc","\u05d0\u05dc"],default:{type:"reference",value:"me"}}}}];case"qu":return[{id:"trigger-qu-event-first-verb-final",language:"qu",command:"trigger",priority:105,template:{format:"{event} ta [{destination} man] trigger",tokens:[{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"literal",value:"ta"},{type:"group",optional:!0,tokens:[{type:"role",role:"destination",expectedTypes:["selector","reference","expression"]},{type:"literal",value:"man"}]},{type:"literal",value:"trigger"}]},extraction:{destination:{default:{type:"reference",value:"me"}}}}];default:return[]}},function(e){switch(e){case"zh":return[{id:"send-zh-ba",language:"zh",command:"send",priority:105,template:{format:"\u53d1\u9001 \u628a {event} \u5230 {destination}",tokens:[{type:"literal",value:"\u53d1\u9001",alternatives:["\u767c\u9001","\u4f20\u9001","\u50b3\u9001"]},{type:"literal",value:"\u628a"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u5230",alternatives:["\u7ed9","\u7d66","\u5411"]},{type:"role",role:"destination",expectedTypes:["selector","reference","expression"]}]}]},extraction:{event:{position:2},destination:{marker:"\u5230",markerAlternatives:["\u7ed9","\u7d66","\u5411"],default:{type:"reference",value:"me"}}}}];case"he":return[{id:"send-he-et",language:"he",command:"send",priority:105,template:{format:"\u05e9\u05dc\u05d7 \u05d0\u05ea {event} \u05e2\u05dc {destination}",tokens:[{type:"literal",value:"\u05e9\u05dc\u05d7"},{type:"literal",value:"\u05d0\u05ea"},{type:"role",role:"event",expectedTypes:["literal","expression"]},{type:"group",optional:!0,tokens:[{type:"literal",value:"\u05e2\u05dc",alternatives:["\u05dc","\u05d0\u05dc"]},{type:"role",role:"destination",expectedTypes:["selector","reference","expression"]}]}]},extraction:{event:{position:2},destination:{marker:"\u05e2\u05dc",markerAlternatives:["\u05dc","\u05d0\u05dc"],default:{type:"reference",value:"me"}}}}];default:return[]}},function(e){const t=Yg[e];if(t)return[Zg(e,t)];const r=Qg[e];return r?[Xg(e,r)]:[]},function(e){return[]}],ak=new Map;function nk(e){const t=ik.flatMap(t=>t(e));return"en"===e&&t.push(...rk),t.push(...function(e){const t=ak.get(e);if(t)return t;const r=_t(e);if(!r)return[];const i=gc(r);return ak.set(e,i),i}(e)),t.map(sk)}var ok=new Set(["on.source"]);function sk(e){const t=ct(e.command);if(!t)return e;let r;for(const i of t.roles){if(i.required||!i.default)continue;if(ok.has(`${e.command}.${i.role}`))continue;const t=e.extraction?.[i.role];void 0===t?.default&&void 0===t?.value&&(r??(r={...e.extraction}),r[i.role]={...t,default:i.default})}return r?{...e,extraction:r}:e}var lk=["en","ja","ar","es","ko","zh","tr","pt","fr","de","id","qu","sw","it","vi","pl","ru","uk","hi","bn","th","ms","tl","he"];var pk=new Map,mk=null;function ck(){if(null===mk){const e=[];for(const t of lk)e.push(...nk(t));mk=e}return mk}function dk(e){if(pk.has(e))return pk.get(e);const t=nk(e);return pk.set(e,t),t}function uk(e,t){return dk(e).filter(e=>e.command===t).sort((e,t)=>t.priority-e.priority)}function yk(){const e=new Set(ck().map(e=>e.language));return Array.from(e)}function vk(){const e=new Set(ck().map(e=>e.command));return Array.from(e)}function fk(e){return ck().find(t=>t.id===e)}function hk(){const e={},t={},r=ck();for(const i of r)e[i.language]=(e[i.language]||0)+1,t[i.command]=(t[i.command]||0)+1;return{totalPatterns:r.length,byLanguage:e,byCommand:t}}Jc(),hi(),Zm(),Zm(),Rt(),gt=function(e){return nk(e.code)},$n(),Vn(),xi(),Rt();var gk="3.3.0";function kk(e,t){const r=t??Object.keys(Cu),i={};for(const t of r){const r=Cu[t]?.keywords[e];r&&(i[t]=r)}return i}function zk(e,t){const r=Cu[e]?.roleMarkers??{};return t?r[t]:r}It(),Bt(),ti(),Zt(),tr(),Ht(),ar(),sr(),mr(),ur(),fr(),kr(),br(),Sr(),Lr(),_r(),qr(),Qt(),Rr(),Ir(),Br(),Hr(),Zr(),Qr(),wt(),Ac(),nt(),wt();var wk=new Map(Object.entries(at));function bk(e){return wk.get(e)}function xk(e,t){wk.set(e,t)}function Tk(e){return"literal"===e.type&&"string"==typeof e.value||"selector"===e.type||"reference"===e.type?e.value:void 0}function Sk(e,t){if(null==e)return!1;if("expression"===e.type&&function(e){if(!e.startsWith("(")||!e.endsWith(")"))return!1;let t=0;for(let r=0;e.length>r;r++)if("("===e[r])t++;else if(")"===e[r]&&0===--t)return r===e.length-1;return!1}(e.raw)&&t.some(e=>"selector"===e||"reference"===e))return!0;for(const r of t)switch(r){case"selector":if("selector"===e.type)return!0;const t=Tk(e);if(t&&(t.startsWith(".")||t.startsWith("#")||t.startsWith("[")))return!0;break;case"literal":if("literal"===e.type)return!0;if("property-path"===e.type)return!0;break;case"reference":if("reference"===e.type)return!0;if("property-path"===e.type)return!0;const r=Tk(e);if(r&&["me","you","it","my","its","result","event","target"].includes(r.toLowerCase()))return!0;break;case"expression":if("expression"===e.type)return!0;if("property-path"===e.type)return!0}return!1}function jk(e){const t=[],r=[],i=[];let a=0;const n=bk(e.action);if(!n)return r.push({code:"UNKNOWN_ROLE",message:`No schema found for action '${e.action}'. Skipping validation.`,severity:"warning"}),{valid:!0,errors:t,warnings:r,confidenceAdjustment:-.1,suggestions:i};const o=new Map;for(const t of e.arguments)t.role&&o.set(t.role,t);for(const e of n.roles){const n=o.get(e.role);!e.required||n?n&&!Sk(n,e.expectedTypes)&&(r.push({code:"INVALID_TYPE",message:`Role '${e.role}' expected ${e.expectedTypes.join(" or ")}, got ${n.type}.`,role:e.role,expected:e.expectedTypes,actual:n,severity:"warning"}),a-=.1):e.default?r.push({code:"MISSING_REQUIRED_ROLE",message:`Role '${e.role}' not provided, using default.`,role:e.role,severity:"warning"}):(t.push({code:"MISSING_REQUIRED_ROLE",message:`Required role '${e.role}' (${e.description}) is missing.`,role:e.role,expected:e.expectedTypes,severity:"error"}),i.push(`Add ${e.description.toLowerCase()} to the command.`),a-=.2)}for(const t of e.arguments)if(t.role){n.roles.some(e=>e.role===t.role)||(r.push({code:"UNKNOWN_ROLE",message:`Role '${t.role}' is not recognized for command '${e.action}'.`,role:t.role,severity:"warning"}),a-=.05)}return n.roles.filter(e=>e.required&&!e.default).every(e=>o.has(e.role))&&0===t.length&&(a+=.1),{valid:0===t.length,errors:t,warnings:r,confidenceAdjustment:Math.max(-1,Math.min(1,a)),suggestions:i}}function Ek(e){const t=jk(e);return{...e,confidence:Math.max(0,Math.min(1,e.confidence+t.confidenceAdjustment)),validation:t}}function Lk(e){switch(e){case"preposition":return"preposition";case"postposition":case"particle":case"case-suffix":return"postposition";default:return"none"}}function Ck(e,t,r){const i={form:t.primary,role:e,position:Lk(r),required:t.required??!1};return t.alternatives&&(i.alternatives=t.alternatives),i}function Pk(e){const t=[];for(const[r,i]of Object.entries(e.roleMarkers))i&&t.push(Ck(r,i,e.markingStrategy));return{code:e.code,name:e.nativeName,wordOrder:e.wordOrder,adpositionType:Lk(e.markingStrategy),morphology:e.morphology,direction:e.direction,markers:t,canonicalOrder:e.canonicalOrder}}function _k(e){if(!e||"object"!=typeof e)return!1;return"string"==typeof e.code&&"string"==typeof e.name&&"string"==typeof e.wordOrder&&"string"==typeof e.markingStrategy&&"string"==typeof e.morphology&&"object"==typeof e.keywords&&Array.isArray(e.canonicalOrder)}var Wk={accessibility:!0,performance:!0,schema:!0,strict:!1},Ak=new Set(["scroll","mousemove","touchmove","resize","input","keydown","keyup","keypress"]),qk=new Set(["scroll","mousemove","touchmove","resize"]);function Mk(e,t){const r=[];if("event-handler"===e.kind){const i=e.roles.get("event");if(i&&"literal"===i.type){const e=(i.value+"").toLowerCase();"mouseenter"!==e&&"mouseover"!==e&&"hover"!==e||r.push({code:"HOVER_ONLY_INTERACTION",severity:"warning",message:`Hover-only interaction detected (${e}). Not accessible to keyboard or touch users.`,suggestion:"Add keyboard equivalent (focus) or use a click-based interaction.",location:{input:t,role:"event"}})}}return r}function Ok(e,t){const r=[];if("event-handler"===e.kind){const i=e.roles.get("event");if(i&&"literal"===i.type){const e=(i.value+"").toLowerCase();if(Ak.has(e)){const i=qk.has(e)?"warning":"info";r.push({code:"HIGH_FREQUENCY_TRIGGER",severity:i,message:`High-frequency event '${e}' may cause performance issues.`,suggestion:qk.has(e)?`Consider using 'on ${e} throttled:100ms' to limit execution frequency.`:"Consider debouncing or throttling this handler.",location:{input:t,role:"event"}})}}}return r}function Rk(e,t){const r=[];if("command"!==e.kind)return r;const i=bk(e.action);if(!i)return r;const a=Array.isArray(i.roles)?i.roles:[],n=new Set;for(const i of a)i&&"object"==typeof i&&"role"in i&&(n.add(i.role),i.required&&!e.roles.has(i.role)&&r.push({code:"MISSING_REQUIRED_ROLE",severity:"error",message:`Command '${e.action}' requires '${i.role}' but it was not provided.`,suggestion:i.description,location:{input:t}}));return e.roles.forEach((i,a)=>{n.has(a)||r.push({code:"INVALID_ROLE_FOR_COMMAND",severity:"warning",message:`Role '${a}' is not typically used with '${e.action}' command.`,location:{input:t,role:a}})}),r}function Nk(e){if("event-handler"===e.kind){return e.body??[]}return[]}function $k(e,t={}){const r=[],i=new Map;for(const t of e)if("event-handler"===t.kind){const e=t.roles.get("event"),r=t.roles.get("source"),a=`${"literal"===e?.type?e.value:"unknown"}:${"selector"===r?.type?r.value:"self"}`;i.has(a)||i.set(a,[]);const n=Nk(t);i.get(a).push({handler:t,commands:n})}return i.forEach((e,t)=>{if(e.length>1){const i=[],a=[];for(const{commands:t}of e)for(const e of t){i.push(e.action);const t=e.roles.get("patient");a.push("selector"===t?.type?t.value:"unknown")}const n=i.includes("toggle"),o=i.includes("show"),s=i.includes("hide");if(n&&(o||s)){a.filter((e,t)=>("toggle"===i[t]||"show"===i[t]||"hide"===i[t])&&a.some((r,i)=>t!==i&&e===r)).length>0&&r.push({code:"CONFLICTING_ACTIONS",severity:"warning",message:`Conflicting actions on '${t}': ${[...new Set(i)].join(", ")} may interfere with each other.`,suggestion:"Consider using a single toggle or conditional logic."})}i.some(e=>["fetch","wait","send"].includes(e))&&e.length>1&&r.push({code:"POTENTIAL_RACE_CONDITION",severity:"info",message:`Multiple handlers on '${t}' include async operations. Consider sequencing.`,suggestion:'Use "then" to chain operations or add loading states.'})}}),r}function Ik(e,t="en",r={}){const i={...Wk,...r},a=[];let n=null;try{n=ug(e,t)}catch{}if(!n)return{valid:!1,warnings:[{code:"UNREACHABLE_BEHAVIOR",severity:"error",message:"Could not parse input to semantic representation.",location:{input:e}}],node:null};i.accessibility&&a.push(...Mk(n,e)),i.performance&&a.push(...Ok(n,e)),i.schema&&a.push(...Rk(n,e));const o=a.some(e=>"error"===e.severity),s=a.some(e=>"warning"===e.severity);return{valid:i.strict?!o&&!s:!o,warnings:a,node:n}}function Kk(e,t="en",r={}){const i=[],a=[];for(const n of e){const e=Ik(n,t,r);i.push(...e.warnings),e.node&&a.push(e.node)}i.push(...$k(a,r));const n=i.some(e=>"error"===e.severity),o={...Wk,...r},s=i.some(e=>"warning"===e.severity);return{valid:o.strict?!n&&!s:!n,warnings:i,node:a[0]??null}}var Vk=!1,Bk={};function Dk(e={}){Vk=!0,Bk=e}function Fk(){Vk=!1}function Hk(){return Vk}function Uk(){return{...Bk}}function Gk(e,t,r){if(!Vk)return;if(!r)return void console.warn("[hyperfixi] Parse failed: "+e);const i=Ik(e,t,Bk);for(const e of i.warnings){console["error"===e.severity?"error":"warning"===e.severity?"warn":"info"](`${"error"===e.severity?"\u274c":"warning"===e.severity?"\u26a0\ufe0f":"\u2139\ufe0f"} [hyperfixi:${e.code}] ${e.message}`,e.suggestion?"\n \ud83d\udca1 "+e.suggestion:"",e.location?.input?"\n \ud83d\udccd "+e.location.input:"")}}function Zk(e){const t={};return"number"==typeof e.start&&(t.start=e.start),"number"==typeof e.end&&(t.end=e.end),"number"==typeof e.line&&(t.line=e.line),"number"==typeof e.column&&(t.column=e.column),t}function Yk(e){if(!e)return{type:"literal",value:null};switch(e.type){case"eventHandler":return function(e){const t=e.event??"click",r=e.commands??e.body??[],i=r.map(e=>Yk(e)),a=function(e){const t=e.eventModifiers;return{...e.once||t?.once?{once:!0}:{},...e.debounce||t?.debounce?{debounce:e.debounce??t?.debounce}:{},...e.throttle||t?.throttle?{throttle:e.throttle??t?.throttle}:{},...e.prevent||t?.prevent?{prevent:!0}:{},...e.stop||t?.stop?{stop:!0}:{},...e.capture||t?.capture?{capture:!0}:{},...e.passive||t?.passive?{passive:!0}:{},...e.from||t?.from?{from:e.from??t?.from}:e.selector?{from:e.selector}:{}}}(e);return{type:"event",event:t,modifiers:a,body:i,...Zk(e)}}(e);case"command":return function(e){const t=e.name;if("if"===t||"unless"===t)return function(e){const t=e.args??[];let r=t[0]?Yk(t[0]):{type:"literal",value:!0};const i=Qk(t[1]),a=t[2]?Qk(t[2]):void 0;"unless"===e.name&&(r={type:"unary",operator:"not",operand:r});return{type:"if",condition:r,thenBranch:i,...a?{elseBranch:a}:{},...Zk(e)}}(e);if("repeat"===t)return function(e){const t=e.modifiers??{},r=Xk(t.loopType);if(void 0===r)return function(e){const t=e.args??[];if(0===t.length)return{type:"repeat",body:[],...Zk(e)};const r=t[0],i=t[t.length-1];switch(r?.name??r?.value??"forever"){case"times":return{type:"repeat",count:t[1]?Yk(t[1]):void 0,body:Qk(i),...Zk(e)};case"for":return{type:"foreach",itemName:t[1]?.value??"item",collection:t[2]?Yk(t[2]):{type:"identifier",value:"[]"},body:Qk(i),...Zk(e)};case"while":return{type:"while",condition:t[1]?Yk(t[1]):{type:"literal",value:!0},body:Qk(i),...Zk(e)};case"until":return{type:"while",condition:{type:"unary",operator:"not",operand:t[1]?Yk(t[1]):{type:"literal",value:!1}},body:Qk(i),...Zk(e)};default:return{type:"repeat",body:Qk(i),...Zk(e)}}}(e);const[i,a]=e.args??[],n=Qk(i),o=Xk(t.index),s={...o?{indexName:o}:{},...a?{elseBody:Qk(a)}:{},...Zk(e)},l=e=>e?Yk(e):void 0;switch(r){case"for":return{type:"foreach",itemName:Xk(t.for)??"it",collection:l(t.in)??{type:"literal",value:null},body:n,...s};case"times":return{type:"repeat",count:l(t.times),body:n,...s};case"while":case"until":{const e=l(t[r])??{type:"literal",value:"until"===r};return{type:"while",condition:"until"===r?{type:"unary",operator:"not",operand:e}:e,...!0===t.bottomTested?.value?{bottomTested:!0}:{},body:n,...s}}case"until-event":{const r=Xk(t.event);if(!r)return{type:"error",message:"'repeat until event' has no event name",...Zk(e)};const i=l(t.from);return{type:"repeat",untilEvent:r,...i?{untilEventTarget:i}:{},body:n,...s}}default:return{type:"repeat",body:n,...s}}}(e);const r=(e.args??[]).map(e=>Yk(e)),i=e.target?Yk(e.target):void 0,a=e.modifiers?function(e){const t={};for(const[r,i]of Object.entries(e))t[r]=Yk(i);return t}(e.modifiers):void 0,n=e.semanticRoles,o=n?function(e){const t={};for(const[r,i]of Object.entries(e))t[r]=Yk(i);return t}(n):void 0;return{type:"command",name:t,args:r,...i?{target:i}:{},...a&&Object.keys(a).length>0?{modifiers:a}:{},...o&&Object.keys(o).length>0?{roles:o}:{},...Zk(e)}}(e);case"CommandSequence":return function(e){const t=e.commands??[];return 1===t.length?Yk(t[0]):{type:"event",event:"click",body:t.map(e=>Yk(e)),...Zk(e)}}(e);case"block":return function(e){const t=e.commands??[];return 1===t.length?Yk(t[0]):{type:"event",event:"click",body:t.map(e=>Yk(e)),...Zk(e)}}(e);case"if":return function(e){const t=e.condition?Yk(e.condition):{type:"literal",value:!0},r=(e.thenBranch??[]).map(e=>Yk(e)),i=e.elseBranch?e.elseBranch.map(e=>Yk(e)):void 0;return{type:"if",condition:t,thenBranch:r,...i?{elseBranch:i}:{},...Zk(e)}}(e);case"literal":case"string":case"timeExpression":return{type:"literal",value:e.value,...Zk(e)};case"selector":case"htmlSelector":return{type:"selector",value:e.value??e.selector??"",...Zk(e)};case"contextReference":return{type:"identifier",value:e.name??e.contextType??"",...Zk(e)};case"identifier":return"element"===e.scope||"local"===e.scope||"global"===e.scope?{type:"variable",name:e.name??"",scope:e.scope,...Zk(e)}:{type:"identifier",value:e.name??e.value??"",name:e.name??"",...Zk(e)};case"propertyAccess":return function(e){const t=e.object?Yk(e.object):{type:"identifier",value:"me"};return{type:"possessive",object:t,property:e.property??"",...Zk(e)}}(e);case"possessiveExpression":return function(e){const t=e.object?Yk(e.object):{type:"identifier",value:"me"},r="string"==typeof e.property?e.property:e.property?.name??e.property?.value??"";return{type:"possessive",object:t,property:r,...Zk(e)}}(e);case"propertyOfExpression":return{type:"possessive",object:Yk(e.target),property:e.property?.name??"",...Zk(e)};case"memberExpression":return function(e){const t=e.object?Yk(e.object):{type:"identifier",value:"me"},r="string"==typeof e.property?e.property:e.property?Yk(e.property):{type:"literal",value:""};return{type:"member",object:t,property:r,computed:e.computed??!1,...Zk(e)}}(e);case"binaryExpression":return function(e){return{type:"binary",operator:e.operator??"",left:Yk(e.left),right:Yk(e.right),...Zk(e)}}(e);case"callExpression":return function(e){const t="string"==typeof e.callee?{type:"identifier",value:e.callee,name:e.callee}:Yk(e.callee),r=(e.arguments??e.args??[]).map(e=>Yk(e));return{type:"call",callee:t,args:r,...Zk(e)}}(e);case"unaryExpression":return{type:"unary",operator:e.operator,operand:Yk(e.operand),...Zk(e)};case"typeCheckExpression":return{type:"typeCheck",value:Yk(e.value),typeName:e.typeName+"",nullOk:!1!==e.nullOk,negated:!0===e.negated,...Zk(e)};case"templateLiteral":return{type:"literal",value:e.raw??e.value??"",...Zk(e)};case"variable":return{type:"variable",name:e.name??"",scope:e.scope??"local",...Zk(e)};case"arrayLiteral":return{type:"array",elements:(e.elements??[]).map(e=>Yk(e)),...Zk(e)};case"attributeAccess":return{type:"possessive",object:{type:"identifier",value:"me"},property:"@"+e.attributeName,...Zk(e)};case"positional":return{type:"positional",position:e.position,...e.target?{target:Yk(e.target)}:{},...Zk(e)};case"positionalExpression":return{type:"positional",position:e.operator,...e.argument?{target:Yk(e.argument)}:{},...Zk(e)};default:return{type:"literal",value:e.value??null,...Zk(e)}}}function Xk(e){const t=e?.value??e?.name;return"string"==typeof t?t:void 0}function Qk(e){return e?"block"===e.type?(e.commands??[]).map(e=>Yk(e)):[Yk(e)]:[]}function Jk(){return[..._g]}function ez(e,t){return Uf(e,t)}export{Eu as ASTBuilder,bi as CssSelectorExtractor,Pd as DEFAULT_CONFIDENCE_THRESHOLD,ji as EventModifierExtractor,_d as HIGH_CONFIDENCE_THRESHOLD,n as IdentifierExtractor,Cu as KNOWN_PROFILES,_g as LAZY_LOAD_LANGUAGES,a as NumberExtractor,vi as OperatorExtractor,Iv as PatternMatcher,fi as PunctuationExtractor,_g as SUPPORTED_LANGUAGES,h as SchemaErrorCodes,jg as SemanticCache,cg as SemanticParserImpl,sh as SemanticRendererImpl,i as StringLiteralExtractor,t as TokenStreamImpl,Li as UrlExtractor,gk as VERSION,Wi as VariableRefExtractor,K as addSchema,Ik as analyze,Kk as analyzeAll,$k as analyzeMultiple,oe as appendSchema,Ot as arabicProfile,Wo as arabicTokenizer,$t as bengaliProfile,Lu as buildAST,gu as buildFromAstShape,Hf as calculateTranslationConfidence,qg as canLoadLanguage,yg as canParse,Mk as checkAccessibility,Ok as checkPerformance,Rk as checkSchema,Xr as chineseProfile,hs as chineseTokenizer,at as commandSchemas,tu as convertExpression,Xd as convertLiteral,eu as convertPropertyPath,Jd as convertReference,Qd as convertSelector,Zd as convertValue,Ku as createCommandNode,Du as createCompoundNode,Fu as createConditionalNode,Vu as createEventHandler,Mu as createLiteral,Hu as createLoopNode,Iu as createPropertyPath,Nu as createReference,qu as createSelector,Lg as createSemanticCache,ne as decrementSchema,Gk as devModeAnalyze,Fk as disableDevMode,Dk as enableDevMode,Ft as englishProfile,Hn as englishTokenizer,$m as eventNameTranslations,ie as fetchSchema,pg as fillSchemaDefaults,Ph as findNameCollisions,_h as findTranslationCollisions,A as formatValidationResults,Xt as frenchProfile,gg as fromExplicit,Yk as fromSemanticAST,zc as generateAllPatterns,yc as generatePattern,hc as generatePatternVariants,kc as generatePatternsForCommand,gc as generatePatternsForLanguage,vc as generateSimplePattern,Vt as germanProfile,bg as getAllTranslations,xg as getAllTranslationsWithStatus,wu as getCommandMapper,vg as getCommandType,wi as getDefaultExtractors,ut as getDefinedSchemas,Uk as getDevModeConfig,Gm as getEventHandlerPatternsForLanguage,Fm as getEventLocalizationDenylist,Tc as getGeneratorSummary,In as getHyperscriptExtractors,kk as getKeywordTranslations,Wu as getLexicon,Mg as getLoadedLanguages,fk as getPatternById,hk as getPatternStats,dk as getPatternsForLanguage,uk as getPatternsForLanguageAndCommand,ui as getPutPatternsForLanguage,Wt as getRegisteredLanguages,Au as getRegisteredLexicons,xu as getRegisteredMappers,zk as getRoleMarkers,fg as getSOVEventMarkers,ct as getSchema,ku as getSchemaMapper,dt as getSchemasByCategory,vk as getSupportedCommands,Jk as getSupportedLanguages,yk as getSupportedPatternLanguages,Hv as getSupportedTokenizerLanguages,Nc as getTogglePatternsForLanguage,Dv as getTokenizer,Og as getUnloadedLanguages,q as getValidationStats,bk as getValidatorSchema,er as hebrewProfile,J as hideSchema,ir as hindiProfile,ae as incrementSchema,or as indonesianProfile,Hk as isDevModeEnabled,o as isExplicitSyntax,At as isLanguageRegistered,Uv as isLanguageSupported,_k as isUnifiedProfile,pr as italianProfile,dr as japaneseProfile,oo as japaneseTokenizer,vr as koreanProfile,go as koreanTokenizer,Wg as loadLanguage,Ag as loadLanguages,Hm as localizeEventName,gr as malayProfile,Lk as markingStrategyToAdpositionType,Bv as matchBest,Vv as matchPattern,vh as nameCollision,Bm as normalizeEventName,ee as onSchema,ug as parse,zg as parseAny,qh as parseExplicit,ez as parseSemantic,Uf as parseWithConfidence,Kv as patternMatcher,wr as polishProfile,Tr as portugueseProfile,se as prependSchema,B as putSchema,Er as quechuaProfile,bu as registerCommandMapper,_u as registerLexicon,xk as registerSchema,Gv as registerTokenizer,V as removeSchema,Wh as render,mh as renderExplicit,zu as resolveCommandMapper,wg as roundTrip,Pr as russianProfile,wk as schemaRegistry,Eg as semanticCache,dg as semanticParser,lh as semanticRenderer,D as setSchema,Q as showSchema,Gt as spanishProfile,Yo as spanishTokenizer,Ar as swahiliProfile,$r as tagalogProfile,Or as thaiProfile,hg as toExplicit,Ck as toGrammaticalMarker,Pk as toI18nProfile,I as toggleSchema,Fv as tokenize,kg as translate,te as triggerSchema,_t as tryGetProfile,Vr as turkishProfile,cs as turkishTokenizer,Fr as ukrainianProfile,W as validateAllSchemas,Ek as validateAndAdjustConfidence,_ as validateCommandSchema,Sc as validateLanguageKeywords,jk as validateSemanticResult,Tg as validateTranslation,Gr as vietnameseProfile,re as waitSchema,Cg as withCache};
2
+ //# sourceMappingURL=index-BwXDEK0m.js.map