jsoniq-26e46968.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import{g as a}from"./index-fe76da25.js";function $(r,p){for(var n=0;n<p.length;n++){const e=p[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i={exports:{}};(function(r,p){ace.define("ace/snippets/jsoniq.snippets",["require","exports","module"],function(n,e,t){t.exports=`snippet for
  2. for $\${1:item} in \${2:expr}
  3. snippet return
  4. return \${1:expr}
  5. snippet import
  6. import module namespace \${1:ns} = "\${2:http://www.example.com/}";
  7. snippet some
  8. some $\${1:varname} in \${2:expr} satisfies \${3:expr}
  9. snippet every
  10. every $\${1:varname} in \${2:expr} satisfies \${3:expr}
  11. snippet if
  12. if(\${1:true}) then \${2:expr} else \${3:true}
  13. snippet switch
  14. switch(\${1:"foo"})
  15. case \${2:"foo"}
  16. return \${3:true}
  17. default return \${4:false}
  18. snippet try
  19. try { \${1:expr} } catch \${2:*} { \${3:expr} }
  20. snippet tumbling
  21. for tumbling window $\${1:varname} in \${2:expr}
  22. start at $\${3:start} when \${4:expr}
  23. end at $\${5:end} when \${6:expr}
  24. return \${7:expr}
  25. snippet sliding
  26. for sliding window $\${1:varname} in \${2:expr}
  27. start at $\${3:start} when \${4:expr}
  28. end at $\${5:end} when \${6:expr}
  29. return \${7:expr}
  30. snippet let
  31. let $\${1:varname} := \${2:expr}
  32. snippet group
  33. group by $\${1:varname} := \${2:expr}
  34. snippet order
  35. order by \${1:expr} \${2:descending}
  36. snippet stable
  37. stable order by \${1:expr}
  38. snippet count
  39. count $\${1:varname}
  40. snippet ordered
  41. ordered { \${1:expr} }
  42. snippet unordered
  43. unordered { \${1:expr} }
  44. snippet treat
  45. treat as \${1:expr}
  46. snippet castable
  47. castable as \${1:atomicType}
  48. snippet cast
  49. cast as \${1:atomicType}
  50. snippet typeswitch
  51. typeswitch(\${1:expr})
  52. case \${2:type} return \${3:expr}
  53. default return \${4:expr}
  54. snippet var
  55. declare variable $\${1:varname} := \${2:expr};
  56. snippet fn
  57. declare function \${1:ns}:\${2:name}(){
  58. \${3:expr}
  59. };
  60. snippet module
  61. module namespace \${1:ns} = "\${2:http://www.example.com}";
  62. `}),ace.define("ace/snippets/jsoniq",["require","exports","module","ace/snippets/jsoniq.snippets"],function(n,e,t){e.snippetText=n("./jsoniq.snippets"),e.scope="jsoniq"}),function(){ace.require(["ace/snippets/jsoniq"],function(n){r&&(r.exports=n)})}()})(i);var o=i.exports;const c=a(o),x=$({__proto__:null,default:c},[o]);export{x as j};