@qikbar/qikbar 0.0.18 → 0.0.20
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.
- package/dist/qikbar.es.js +1 -0
- package/dist/qikbar.umd.js +1 -1
- package/package.json +1 -1
package/dist/qikbar.es.js
CHANGED
package/dist/qikbar.umd.js
CHANGED
|
@@ -110,4 +110,4 @@ From `+e.stack}}class On extends Lr{constructor(e,r){super(new Error(e),r),this.
|
|
|
110
110
|
`)}function Nd(t){return $(t).replace(/<script.*?<\/script>|<!--.*?-->|<style.*?<\/style>|<.*?>/g,"")}var Ad=Object.freeze({__proto__:null,escape:Fn,escape_once:Fd,newline_to_br:Md,strip_html:Nd});const wt={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,cache:void 0,extname:"",fs:Td,dynamicPartials:!0,jsTruthy:!1,trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:Cd};function qd(t){if(t.hasOwnProperty("root")&&(t.hasOwnProperty("partials")||(t.partials=t.root),t.hasOwnProperty("layouts")||(t.layouts=t.root)),t.hasOwnProperty("cache")){let e;typeof t.cache=="number"?e=t.cache>0?new Ys(t.cache):void 0:typeof t.cache=="object"?e=t.cache:e=t.cache?new Ys(1024):void 0,t.cache=e}return t=Object.assign(Object.assign(Object.assign({},wt),t.jekyllInclude?{dynamicPartials:!1}:{}),t),!t.fs.dirname&&t.relativeReference&&(console.warn("[LiquidJS] `fs.dirname` is required for relativeReference, set relativeReference to `false` to suppress this warning, or provide implementation for `fs.dirname`"),t.relativeReference=!1),t.root=Ar(t.root),t.partials=Ar(t.partials),t.layouts=Ar(t.layouts),t.outputEscape=t.outputEscape&&Id(t.outputEscape),t}function Id(t){return t==="escape"?Fn:t==="json"?Zs:(pe(be(t),"`outputEscape` need to be of type string or function"),t)}function Ar(t){let e=[];return Se(t)&&(e=t),We(t)&&(e=[t]),e}function Vd(t,e,r,n=t.length){let i=r,s=e,a;for(;i[t[s]]&&s<n;)i=i[t[s++]],i.end&&(a=i);return!a||a.needBoundary&&X[t.charCodeAt(s)]&_n?-1:s}function Ud(t,e){let r=!1;for(let n=0;n<t.length;n++){const i=t[n];Jd(i)&&(!r&&i.trimLeft&&$d(t[n-1],e.greedy),Et(i)&&(i.name==="raw"?r=!0:i.name==="endraw"&&(r=!1)),!r&&i.trimRight&&Bd(t[n+1],e.greedy))}}function $d(t,e){if(!t||!Nn(t))return;const r=e?Pr:Ms;for(;X[t.input.charCodeAt(t.end-1-t.trimRight)]&r;)t.trimRight++}function Bd(t,e){if(!t||!Nn(t))return;const r=e?Pr:Ms;for(;X[t.input.charCodeAt(t.begin+t.trimLeft)]&r;)t.trimLeft++;t.input.charAt(t.begin+t.trimLeft)===`
|
|
111
111
|
`&&t.trimLeft++}class me{constructor(e,r=wt.operators,n){this.input=e,this.file=n,this.p=0,this.rawBeginAt=-1,this.N=e.length,this.opTrie=Vc(r)}readExpression(){return new md(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){const e=this.readOperator();if(e){yield e;continue}const r=this.readValue();if(r){yield r;continue}return}}readOperator(){this.skipBlank();const e=Vd(this.input,this.p,this.opTrie);if(e!==-1)return new sd(this.input,this.p,this.p=e,this.file)}readFilters(){const e=[];for(;;){const r=this.readFilter();if(!r)return e;e.push(r)}}readFilter(){if(this.skipBlank(),this.end())return null;pe(this.peek()==="|",()=>`unexpected token at ${this.snapshot()}`),this.p++;const e=this.p,r=this.readIdentifier();if(!r.size())return null;const n=[];if(this.skipBlank(),this.peek()===":")do{++this.p;const i=this.readFilterArg();i&&n.push(i),this.skipBlank(),pe(this.end()||this.peek()===","||this.peek()==="|",()=>`unexpected character ${this.snapshot()}`)}while(this.peek()===",");return new ad(r.getText(),n,this.input,e,this.p,this.file)}readFilterArg(){const e=this.readValue();if(!e)return;if(this.skipBlank(),this.peek()!==":")return e;++this.p;const r=this.readValue();return[e.getText(),r]}readTopLevelTokens(e=wt){const r=[];for(;this.p<this.N;){const n=this.readTopLevelToken(e);r.push(n)}return Ud(r,e),r}readTopLevelToken(e){const{tagDelimiterLeft:r,outputDelimiterLeft:n}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(r)?this.readTagToken(e):this.match(n)?this.readOutputToken(e):this.readHTMLToken([r,n])}readHTMLToken(e){const r=this.p;for(;this.p<this.N&&!e.some(n=>this.match(n));)++this.p;return new zs(this.input,r,this.p,this.file)}readTagToken(e=wt){const{file:r,input:n}=this,i=this.p;if(this.readToDelimiter(e.tagDelimiterRight)===-1)throw this.mkError(`tag ${this.snapshot(i)} not closed`,i);const s=new Qs(n,i,this.p,e,r);return s.name==="raw"&&(this.rawBeginAt=i),s}readToDelimiter(e){for(;this.p<this.N;){if(this.peekType()&Fs){this.readQuoted();continue}if(++this.p,this.rmatch(e))return this.p}return-1}readOutputToken(e=wt){const{file:r,input:n}=this,{outputDelimiterRight:i}=e,s=this.p;if(this.readToDelimiter(i)===-1)throw this.mkError(`output ${this.snapshot(s)} not closed`,s);return new td(n,s,this.p,e,r)}readEndrawOrRawContent(e){const{tagDelimiterLeft:r,tagDelimiterRight:n}=e,i=this.p;let s=this.readTo(r)-r.length;for(;this.p<this.N;){if(this.readIdentifier().getText()!=="endraw"){s=this.readTo(r)-r.length;continue}for(;this.p<=this.N;){if(this.rmatch(n)){const a=this.p;return i===s?(this.rawBeginAt=-1,new Qs(this.input,i,a,e,this.file)):(this.p=s,new zs(this.input,i,s,this.file))}if(this.rmatch(r))break;this.p++}}throw this.mkError(`raw ${this.snapshot(this.rawBeginAt)} not closed`,i)}readLiquidTagTokens(e=wt){const r=[];for(;this.p<this.N;){const n=this.readLiquidTagToken(e);n.name&&r.push(n)}return r}readLiquidTagToken(e){const{file:r,input:n}=this,i=this.p;let s=this.N;return this.readToDelimiter(`
|
|
112
112
|
`)!==-1&&(s=this.p),new cd(n,i,s,e,r)}mkError(e,r){return new On(e,new Mr(this.input,r,this.N,this.file))}snapshot(e=this.p){return JSON.stringify(kc(this.input.slice(e),16))}readWord(){return console.warn("Tokenizer#readWord() will be removed, use #readIdentifier instead"),this.readIdentifier()}readIdentifier(){this.skipBlank();const e=this.p;for(;this.peekType()&_n;)++this.p;return new Mr(this.input,e,this.p,this.file)}readTagName(){return this.skipBlank(),this.input[this.p]==="#"?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){const r=[];for(;;){const n=this.readHash(e);if(!n)return r;r.push(n)}}readHash(e){this.skipBlank(),this.peek()===","&&++this.p;const r=this.p,n=this.readIdentifier();if(!n.size())return;let i;this.skipBlank();const s=e?"=":":";return this.peek()===s&&(++this.p,i=this.readValue()),new od(this.input,r,this.p,n,i,this.file)}remaining(){return this.input.slice(this.p)}advance(e=1){this.p+=e}end(){return this.p>=this.N}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return-1}readValue(){const e=this.readQuoted()||this.readRange();if(e)return e;if(this.peek()==="["){this.p++;const s=this.readQuoted();return!s||this.peek()!=="]"?void 0:(this.p++,new Ks(s,[],this.p))}const r=this.readIdentifier();if(!r.size())return;let n=r.isNumber(!0);const i=[];for(;;)if(this.peek()==="["){n=!1,this.p++;const s=this.readValue()||new Mr(this.input,this.p,this.p,this.file);this.readTo("]"),i.push(s)}else if(this.peek()==="."&&this.peek(1)!=="."){this.p++;const s=this.readIdentifier();if(!s.size())break;s.isNumber()||(n=!1),i.push(s)}else break;return!i.length&&qs.hasOwnProperty(r.content)?new nd(this.input,r.begin,r.end,this.file):n?new rd(r,i[0]):new Ks(r,i,this.p)}readRange(){this.skipBlank();const e=this.p;if(this.peek()!=="(")return;++this.p;const r=this.readValueOrThrow();this.p+=2;const n=this.readValueOrThrow();return++this.p,new ud(this.input,e,this.p,r,n,this.file)}readValueOrThrow(){const e=this.readValue();return pe(e,()=>`unexpected token ${this.snapshot()}, value expected`),e}readQuoted(){this.skipBlank();const e=this.p;if(!(this.peekType()&Fs))return;++this.p;let r=!1;for(;this.p<this.N&&(++this.p,!(this.input[this.p-1]===this.input[e]&&!r));)r?r=!1:this.input[this.p-1]==="\\"&&(r=!0);return new ld(this.input,e,this.p,this.file)}*readFileNameTemplate(e){const{outputDelimiterLeft:r}=e,n=[","," ",r],i=new Set(n);for(;this.p<this.N&&!i.has(this.peek());)yield this.match(r)?this.readOutputToken(e):this.readHTMLToken(n)}match(e){for(let r=0;r<e.length;r++)if(e[r]!==this.input[this.p+r])return!1;return!0}rmatch(e){for(let r=0;r<e.length;r++)if(e[e.length-1-r]!==this.input[this.p-1-r])return!1;return!0}peekType(e=0){return X[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.input[this.p+e]}skipBlank(){for(;this.peekType()⪻)++this.p}}class Hd{constructor(e,r){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=r}on(e,r){return this.handlers[e]=r,this}trigger(e,r){const n=this.handlers[e];return n?(n.call(this,r),!0):!1}start(){this.trigger("start");let e;for(;!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e)||Et(e)&&this.trigger(`tag:${e.name}`,e))continue;const r=this.parseToken(e,this.tokens);this.trigger("template",r)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}}class Mn{constructor(e){this.token=e}}class ae extends Mn{constructor(e,r,n){super(e),this.name=e.name,this.liquid=n}}class Lt{constructor(e,r){this.hash={};const n=new me(e,{});for(const i of n.readHashes(r))this.hash[i.name.content]=i.value}*render(e){const r={};for(const n of Object.keys(this.hash))r[n]=this.hash[n]===void 0?!0:yield ve(this.hash[n],e);return r}}function Qd(t){return class extends ae{constructor(e,r,n){super(e,r,n),be(t.parse)&&t.parse.call(this,e,r)}*render(e,r){const n=yield new Lt(this.token.args).render(e);return yield t.render.call(this,e,r,n)}}}function zd(t){return Se(t)}class Js{constructor(e,r,n,i){this.name=e,this.handler=be(r)?r:be(r==null?void 0:r.handler)?r.handler:Ls,this.raw=!be(r)&&!!(r!=null&&r.raw),this.args=n,this.liquid=i}*render(e,r){const n=[];for(const i of this.args)zd(i)?n.push([i[0],yield ve(i[1],r)]):n.push(yield ve(i,r));return this.handler.apply({context:r,liquid:this.liquid},[e,...n])}}class Ze{constructor(e,r){this.filters=[];const n=new me(e,r.options.operators);this.initial=n.readExpression(),this.filters=n.readFilters().map(({name:i,args:s})=>new Js(i,this.getFilter(r,i),s,r))}*value(e,r){r=r||e.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let n=yield this.initial.evaluate(e,r);for(const i of this.filters)n=yield i.render(n,e);return n}getFilter(e,r){const n=e.filters[r];return pe(n||!e.options.strictFilters,()=>`undefined filter: ${r}`),n}}class Wd extends Mn{constructor(e,r){var n;super(e),this.value=new Ze(e.content,r);const i=this.value.filters,s=r.options.outputEscape;!(!((n=i[i.length-1])===null||n===void 0)&&n.raw)&&s&&i.push(new Js(toString.call(s),s,[],r))}*render(e,r){const n=yield this.value.value(e,!1);r.write(n)}}class Kd extends Mn{constructor(e){super(e),this.str=e.getContent()}*render(e,r){r.write(this.str)}}var Ct;(function(t){t.Partials="partials",t.Layouts="layouts",t.Root="root"})(Ct||(Ct={}));class Yd{constructor(e){if(this.options=e,e.relativeReference){const r=e.fs.sep;pe(r,"`fs.sep` is required for relative reference");const n=new RegExp(["."+r,".."+r,"./","../"].map(i=>xc(i)).join("|"));this.shouldLoadRelative=i=>n.test(i)}else this.shouldLoadRelative=r=>!1;this.contains=this.options.fs.contains||(()=>!0)}*lookup(e,r,n,i){const{fs:s}=this.options,a=this.options[r];for(const l of this.candidates(e,a,i,r!==Ct.Root))if(n?s.existsSync(l):yield s.exists(l))return l;throw this.lookupError(e,a)}*candidates(e,r,n,i){const{fs:s,extname:a}=this.options;if(this.shouldLoadRelative(e)&&n){const l=s.resolve(this.dirname(n),e,a);for(const o of r)if(!i||this.contains(o,l)){yield l;break}}for(const l of r){const o=s.resolve(l,e,a);(!i||this.contains(l,o))&&(yield o)}if(s.fallback!==void 0){const l=s.fallback(e);l!==void 0&&(yield l)}}dirname(e){const r=this.options.fs;return pe(r.dirname,"`fs.dirname` is required for relative reference"),r.dirname(e)}lookupError(e,r){const n=new Error("ENOENT");return n.message=`ENOENT: Failed to lookup "${e}" in "${r}"`,n.code="ENOENT",n}}class Gd{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new Yd(this.liquid.options)}parse(e,r){const i=new me(e,this.liquid.options.operators,r).readTopLevelTokens(this.liquid.options);return this.parseTokens(i)}parseTokens(e){let r;const n=[];for(;r=e.shift();)n.push(this.parseToken(r,e));return n}parseToken(e,r){try{if(Et(e)){const n=this.liquid.tags[e.name];return pe(n,`tag "${e.name}" not found`),new n(e,r,this.liquid)}return Xd(e)?new Wd(e,this.liquid):new Kd(e)}catch(n){throw new Dc(n,e)}}parseStream(e){return new Hd(e,(r,n)=>this.parseToken(r,n))}*_parseFileCached(e,r,n=Ct.Root,i){const s=this.cache,a=this.loader.shouldLoadRelative(e)?i+","+e:n+":"+e,l=yield s.read(a);if(l)return l;const o=this._parseFile(e,r,n,i),u=r?yield o:it(o);s.write(a,u);try{return yield u}catch(c){throw s.remove(a),c}}*_parseFile(e,r,n=Ct.Root,i){const s=yield this.loader.lookup(e,n,r,i);return this.liquid.parse(r?this.fs.readFileSync(s):yield this.fs.readFile(s),s)}}const Zd=/[\da-fA-F]/,Xs=/[0-7]/,ea={b:"\b",f:"\f",n:`
|
|
113
|
-
`,r:"\r",t:" ",v:"\v"};function ta(t){const e=t.charCodeAt(0);return e>=97?e-87:e>=65?e-55:e-48}function ra(t){let e="";for(let r=1;r<t.length-1;r++){if(t[r]!=="\\"){e+=t[r];continue}if(ea[t[r+1]]!==void 0)e+=ea[t[++r]];else if(t[r+1]==="u"){let n=0,i=r+2;for(;i<=r+5&&Zd.test(t[i]);)n=n*16+ta(t[i++]);r=i-1,e+=String.fromCharCode(n)}else if(!Xs.test(t[r+1]))e+=t[++r];else{let n=r+1,i=0;for(;n<=r+3&&Xs.test(t[n]);)i=i*8+ta(t[n++]);r=n-1,e+=String.fromCharCode(i)}}return e}var ee;(function(t){t[t.Number=1]="Number",t[t.Literal=2]="Literal",t[t.Tag=4]="Tag",t[t.Output=8]="Output",t[t.HTML=16]="HTML",t[t.Filter=32]="Filter",t[t.Hash=64]="Hash",t[t.PropertyAccess=128]="PropertyAccess",t[t.Word=256]="Word",t[t.Range=512]="Range",t[t.Quoted=1024]="Quoted",t[t.Operator=2048]="Operator",t[t.Delimited=12]="Delimited"})(ee||(ee={}));function Jd(t){return!!(Fe(t)&ee.Delimited)}function na(t){return Fe(t)===ee.Operator}function Nn(t){return Fe(t)===ee.HTML}function Xd(t){return Fe(t)===ee.Output}function Et(t){return Fe(t)===ee.Tag}function ia(t){return Fe(t)===ee.Quoted}function eh(t){return Fe(t)===ee.Literal}function th(t){return Fe(t)===ee.Number}function rh(t){return Fe(t)===ee.PropertyAccess}function nh(t){return Fe(t)===ee.Word}function ih(t){return Fe(t)===ee.Range}function Fe(t){return t?t.kind:-1}class Pt{constructor(e={},r=wt,n={}){var i,s;this.scopes=[{}],this.registers={},this.sync=!!n.sync,this.opts=r,this.globals=(i=n.globals)!==null&&i!==void 0?i:r.globals,this.environments=e,this.strictVariables=(s=n.strictVariables)!==null&&s!==void 0?s:this.opts.strictVariables}getRegister(e){return this.registers[e]=this.registers[e]||{}}setRegister(e,r){return this.registers[e]=r}saveRegister(...e){return e.map(r=>[r,this.getRegister(r)])}restoreRegister(e){return e.forEach(([r,n])=>this.setRegister(r,n))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,r)=>Fr(e,r),{})}get(e){return st(this._get(e))}*_get(e){const r=this.findScope(e[0]);return yield this._getFromScope(r,e)}getFromScope(e,r){return st(this._getFromScope(e,r))}*_getFromScope(e,r){We(r)&&(r=r.split("."));for(let n=0;n<r.length;n++)if(e=yield sh(e,r[n],this.opts.ownPropertyOnly),Ke(e)&&this.strictVariables)throw new Pc(r.slice(0,n+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}findScope(e){for(let r=this.scopes.length-1;r>=0;r--){const n=this.scopes[r];if(e in n)return n}return e in this.environments?this.environments:this.globals}}function sh(t,e,r){if(t=_s(t),Ke(t))return t;if(Se(t)&&e<0)return t[t.length+ +e];const n=ah(t,e,r);return n===void 0&&t instanceof vt?t.liquidMethodMissing(e):be(n)?n.call(t):e==="size"?uh(t):e==="first"?oh(t):e==="last"?lh(t):n}function ah(t,e,r){if(!(r&&!Object.hasOwnProperty.call(t,e)&&!(t instanceof vt)))return t[e]}function oh(t){return Se(t)?t[0]:t.first}function lh(t){return Se(t)?t[t.length-1]:t.last}function uh(t){if(t.hasOwnProperty("size")||t.size!==void 0)return t.size;if(Se(t)||We(t))return t.length;if(typeof t=="object")return Object.keys(t).length}var St;(function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"})(St||(St={}));const ch=Oe(Math.abs),dh=Oe(Math.max),hh=Oe(Math.min),fh=Oe(Math.ceil),ph=Oe((t,e,r=!1)=>r?Math.floor(t/e):t/e),mh=Oe(Math.floor),gh=Oe((t,e)=>t-e),yh=Oe((t,e)=>t%e),vh=Oe((t,e)=>t*e);function bh(t,e=0){t=B(t),e=B(e);const r=Math.pow(10,e);return Math.round(t*r)/r}function wh(t,e){return t=B(t),e=B(e),Number(t)+Number(e)}var Ch=Object.freeze({__proto__:null,abs:ch,at_least:dh,at_most:hh,ceil:fh,divided_by:ph,floor:mh,minus:gh,modulo:yh,times:vh,round:bh,plus:wh}),Eh=Object.freeze({__proto__:null,url_decode:t=>$(t).split("+").map(decodeURIComponent).join(" "),url_encode:t=>$(t).split(" ").map(encodeURIComponent).join("+")});const Sh=Oe((t,e)=>Ge(t).join(e===void 0?" ":e)),Rh=Oe(t=>Se(t)?Sn(t):""),xh=Oe(t=>Se(t)?t[0]:""),Oh=Oe(t=>[...Ge(t)].reverse());function*_h(t,e){const r=[];for(const n of Ge(B(t)))r.push([n,e?yield this.context._getFromScope(n,$(e).split(".")):n]);return r.sort((n,i)=>{const s=n[1],a=i[1];return s<a?-1:s>a?1:0}).map(n=>n[0])}function Th(t,e){t=B(t);const r=$(e),n=e===void 0?Ps:(i,s)=>Ps(i[r],s[r]);return[...Ge(t)].sort(n)}const kh=t=>t&&t.length||0;function*Dh(t,e){const r=[];for(const n of Ge(B(t)))r.push(yield this.context._getFromScope(n,$(e).split(".")));return r}function Lh(t){return t=B(t),Ge(t).filter(e=>!Ke(B(e)))}function Ph(t,e=[]){return t=B(t),e=Ge(e).map(r=>B(r)),Ge(t).concat(e)}function jh(t,e,r=1){return t=B(t),Ke(t)?[]:(Se(t)||(t=$(t)),e=e<0?t.length+e:e,t.slice(e,e+r))}function*Fh(t,e,r){const n=[];t=Ge(B(t));for(const i of t)n.push(yield this.context._getFromScope(i,$(e).split(".")));return t.filter((i,s)=>r===void 0?bt(n[s],this.context):_e(r)?r.equals(n[s]):n[s]===r)}function Mh(t){t=B(t);const e={};return(t||[]).filter(r=>Os.call(e,String(r))?!1:(e[String(r)]=!0,!0))}var Nh=Object.freeze({__proto__:null,join:Sh,last:Rh,first:xh,reverse:Oh,sort:_h,sort_natural:Th,size:kh,map:Dh,compact:Lh,concat:Ph,slice:jh,where:Fh,uniq:Mh});const Ah="%A, %B %-e, %Y at %-l:%M %P %z";function qh(t,e,r){const n=this.context.opts;let i;return t=B(t),e=B(e),Ke(e)?e=Ah:e=$(e),t==="now"||t==="today"?i=new Date:kr(t)?i=new Date(t*1e3):We(t)?/^\d+$/.test(t)?i=new Date(+t*1e3):n.preserveTimezones?i=at.createDateFixedToTimezone(t):i=new Date(t):i=t,Ih(i)?(r!==void 0?i=new at(i,sa(i,r)):n.timezoneOffset!==void 0&&(i=new at(i,sa(i,n.timezoneOffset))),Gc(i,e)):t}function Ih(t){return(t instanceof Date||t instanceof at)&&!isNaN(t.getTime())}function sa(t,e){if(kr(e))return e;const r=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),n=new Date(t.toLocaleString("en-US",{timeZone:e}));return(r.getTime()-n.getTime())/6e4}var Vh=Object.freeze({__proto__:null,date:qh});function Uh(t,e){return pe(arguments.length===2,"append expect 2 arguments"),$(t)+$(e)}function $h(t,e){return pe(arguments.length===2,"prepend expect 2 arguments"),$(e)+$(t)}function Bh(t,e){return e?(e=xn($(e)),$(t).replace(new RegExp(`^[${e}]+`,"g"),"")):$(t).replace(/^\s+/,"")}function Hh(t){return $(t).toLowerCase()}function Qh(t){return $(t).toUpperCase()}function zh(t,e){return $(t).split(String(e)).join("")}function Wh(t,e){return $(t).replace(String(e),"")}function Kh(t,e){const r=$(t),n=String(e),i=r.lastIndexOf(n);return i===-1?r:r.substring(0,i)+r.substring(i+n.length+1)}function Yh(t,e){return e?(e=xn($(e)),$(t).replace(new RegExp(`[${e}]+$`,"g"),"")):$(t).replace(/\s+$/,"")}function Gh(t,e){const r=$(t).split(String(e));for(;r.length&&r[r.length-1]==="";)r.pop();return r}function Zh(t,e){return e?(e=xn($(e)),$(t).replace(new RegExp(`^[${e}]+`,"g"),"").replace(new RegExp(`[${e}]+$`,"g"),"")):$(t).trim()}function Jh(t){return $(t).replace(/\n/g,"")}function Xh(t){return t=$(t),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function ef(t,e,r){return $(t).split(String(e)).join(r)}function tf(t,e,r){return $(t).replace(String(e),r)}function rf(t,e,r){const n=$(t),i=String(e),s=n.lastIndexOf(i);if(s===-1)return n;const a=String(r);return n.substring(0,s)+a+n.substring(s+i.length)}function nf(t,e=50,r="..."){return t=$(t),t.length<=e?t:t.substring(0,e-r.length)+r}function sf(t,e=15,r="..."){const n=$(t).split(/\s+/);e<=0&&(e=1);let i=n.slice(0,e).join(" ");return n.length>=e&&(i+=r),i}var af=Object.freeze({__proto__:null,append:Uh,prepend:$h,lstrip:Bh,downcase:Hh,upcase:Qh,remove:zh,remove_first:Wh,remove_last:Kh,rstrip:Yh,split:Gh,strip:Zh,strip_newlines:Jh,capitalize:Xh,replace:ef,replace_first:tf,replace_last:rf,truncate:nf,truncatewords:sf});const of=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ad),Ch),Eh),Nh),Vh),af),{json:Zs,raw:Dd,default:kd});class lf extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,n.options.operators);this.key=i.readIdentifier().content,i.skipBlank(),pe(i.peek()==="=",()=>`illegal token ${e.getText()}`),i.advance(),this.value=new Ze(i.remaining(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}}const aa=["offset","limit","reversed"];class uf extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators),s=i.readIdentifier(),a=i.readIdentifier(),l=i.readValue();if(!s.size()||a.content!=="in"||!l)throw new Error(`illegal tag: ${e.getText()}`);this.variable=s.content,this.collection=l,this.hash=new Lt(i.remaining()),this.templates=[],this.elseTemplates=[];let o;const u=this.liquid.parser.parseStream(r).on("start",()=>o=this.templates).on("tag:else",()=>o=this.elseTemplates).on("tag:endfor",()=>u.stop()).on("template",c=>o.push(c)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});u.start()}*render(e,r){const n=this.liquid.renderer;let i=kn(yield ve(this.collection,e));if(!i.length){yield n.renderTemplates(this.elseTemplates,e,r);return}const s="continue-"+this.variable+"-"+this.collection.getText();e.push({continue:e.getRegister(s)});const a=yield this.hash.render(e);e.pop(),i=(this.liquid.options.orderedFilterParameters?Object.keys(a).filter(u=>aa.includes(u)):aa.filter(u=>a[u]!==void 0)).reduce((u,c)=>c==="offset"?df(u,a.offset):c==="limit"?hf(u,a.limit):cf(u),i),e.setRegister(s,(a.offset||0)+i.length);const o={forloop:new Tn(i.length,this.collection.getText(),this.variable)};e.push(o);for(const u of i){if(o[this.variable]=u,yield n.renderTemplates(this.templates,e,r),r.break){r.break=!1;break}r.continue=!1,o.forloop.next()}e.pop()}}function cf(t){return[...t].reverse()}function df(t,e){return t.slice(e)}function hf(t,e){return t.slice(0,e)}class ff extends ae{constructor(e,r,n){super(e,r,n),this.templates=[];const i=new me(e.args,this.liquid.options.operators);for(this.variable=pf(i),pe(this.variable,()=>`${e.args} not valid identifier`);r.length;){const s=r.shift();if(Et(s)&&s.name==="endcapture")return;this.templates.push(n.parser.parseToken(s,r))}throw new Error(`tag ${e.getText()} not closed`)}*render(e){const n=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=n}}function pf(t){const e=t.readIdentifier().content;if(e)return e;const r=t.readQuoted();if(r)return Pn(r)}class mf extends ae{constructor(e,r,n){super(e,r,n),this.branches=[],this.elseTemplates=[],this.value=new Ze(e.args,this.liquid),this.elseTemplates=[];let i=[];const s=this.liquid.parser.parseStream(r).on("tag:when",a=>{i=[];const l=new me(a.args,this.liquid.options.operators),o=[];for(;!l.end();)o.push(l.readValueOrThrow()),l.readTo(",");this.branches.push({values:o,templates:i})}).on("tag:else",()=>i=this.elseTemplates).on("tag:endcase",()=>s.stop()).on("template",a=>i.push(a)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});s.start()}*render(e,r){const n=this.liquid.renderer,i=B(yield this.value.value(e,e.opts.lenientIf));let s=!1;for(const a of this.branches)for(const l of a.values){const o=yield ve(l,e,e.opts.lenientIf);if(i===o){yield n.renderTemplates(a.templates,e,r),s=!0;break}}s||(yield n.renderTemplates(this.elseTemplates,e,r))}}class gf extends ae{constructor(e,r,n){for(super(e,r,n);r.length;){const i=r.shift();if(Et(i)&&i.name==="endcomment")return}throw new Error(`tag ${e.getText()} not closed`)}render(){}}class yf extends ae{constructor(e,r,n){super(e,r,n);const i=e.args,s=new me(i,this.liquid.options.operators);for(this.file=An(s,this.liquid),this.currentFile=e.file;!s.end();){s.skipBlank();const a=s.p,l=s.readIdentifier();if((l.content==="with"||l.content==="for")&&(s.skipBlank(),s.peek()!==":")){const o=s.readValue();if(o){const u=s.p,c=s.readIdentifier();let f;c.content==="as"?f=s.readIdentifier():s.p=u,this[l.content]={value:o,alias:f&&f.content},s.skipBlank(),s.peek()===","&&s.advance();continue}}s.p=a;break}this.hash=new Lt(s.remaining())}*render(e,r){const{liquid:n,hash:i}=this,s=yield qn(this.file,e,n);pe(s,()=>`illegal filename "${s}"`);const a=new Pt({},e.opts,{sync:e.sync,globals:e.globals,strictVariables:e.strictVariables}),l=a.bottom();if(Fr(l,yield i.render(e)),this.with){const{value:o,alias:u}=this.with;l[u||s]=yield ve(o,e)}if(this.for){const{value:o,alias:u}=this.for,c=kn(yield ve(o,e));l.forloop=new Tn(c.length,o.getText(),u);for(const f of c){l[u]=f;const d=yield n._parsePartialFile(s,a.sync,this.currentFile);yield n.renderer.renderTemplates(d,a,r),l.forloop.next()}}else{const o=yield n._parsePartialFile(s,a.sync,this.currentFile);yield n.renderer.renderTemplates(o,a,r)}}}function An(t,e){if(e.options.dynamicPartials){const i=t.readValue();if(i===void 0)throw new TypeError(`illegal argument "${t.input}"`);if(i.getText()==="none")return;if(ia(i)){const s=e.parse(Pn(i));return oa(s)}return i}const r=[...t.readFileNameTemplate(e.options)],n=oa(e.parser.parseTokens(r));return n==="none"?void 0:n}function oa(t){return t.length===1&&Nn(t[0].token)?t[0].token.getContent():t}function*qn(t,e,r){return typeof t=="string"?t:Array.isArray(t)?r.renderer.renderTemplates(t,e):yield ve(t,e)}class vf extends ae{constructor(e,r,n){super(e,r,n);const i=e.args,s=new me(i,this.liquid.options.operators);this.file=An(s,this.liquid),this.currentFile=e.file;const a=s.p;s.readIdentifier().content==="with"?(s.skipBlank(),s.peek()!==":"?this.withVar=s.readValue():s.p=a):s.p=a,this.hash=new Lt(s.remaining(),this.liquid.options.jekyllInclude)}*render(e,r){const{liquid:n,hash:i,withVar:s}=this,{renderer:a}=n,l=yield qn(this.file,e,n);pe(l,()=>`illegal filename "${l}"`);const o=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",St.OUTPUT);const u=yield i.render(e);s&&(u[l]=yield ve(s,e));const c=yield n._parsePartialFile(l,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?{include:u}:u),yield a.renderTemplates(c,e,r),e.pop(),e.restoreRegister(o)}}class bf extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators);this.variable=i.readIdentifier().content}render(e,r){const n=e.environments;kr(n[this.variable])||(n[this.variable]=0),r.write($(--n[this.variable]))}}class wf extends ae{constructor(e,r,n){super(e,r,n),this.candidates=[];const i=new me(e.args,this.liquid.options.operators),s=i.readValue();for(i.skipBlank(),s&&(i.peek()===":"?(this.group=s,i.advance()):this.candidates.push(s));!i.end();){const a=i.readValue();a&&this.candidates.push(a),i.readTo(",")}pe(this.candidates.length,()=>`empty candidates: ${e.getText()}`)}*render(e,r){const i=`cycle:${yield ve(this.group,e)}:`+this.candidates.join(","),s=e.getRegister("cycle");let a=s[i];a===void 0&&(a=s[i]=0);const l=this.candidates[a];return a=(a+1)%this.candidates.length,s[i]=a,yield ve(l,e)}}class Cf extends ae{constructor(e,r,n){super(e,r,n),this.branches=[],this.elseTemplates=[];let i;n.parser.parseStream(r).on("start",()=>this.branches.push({value:new Ze(e.args,this.liquid),templates:i=[]})).on("tag:elsif",s=>this.branches.push({value:new Ze(s.args,this.liquid),templates:i=[]})).on("tag:else",()=>i=this.elseTemplates).on("tag:endif",function(){this.stop()}).on("template",s=>i.push(s)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,r){const n=this.liquid.renderer;for(const{value:i,templates:s}of this.branches){const a=yield i.value(e,e.opts.lenientIf);if(bt(a,e)){yield n.renderTemplates(s,e,r);return}}yield n.renderTemplates(this.elseTemplates,e,r)}}class Ef extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators);this.variable=i.readIdentifier().content}render(e,r){const n=e.environments;kr(n[this.variable])||(n[this.variable]=0);const i=n[this.variable];n[this.variable]++,r.write($(i))}}class Sf extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators);this.file=An(i,this.liquid),this.currentFile=e.file,this.args=new Lt(i.remaining()),this.templates=this.liquid.parser.parseTokens(r)}*render(e,r){const{liquid:n,args:i,file:s}=this,{renderer:a}=n;if(s===void 0){e.setRegister("blockMode",St.OUTPUT),yield a.renderTemplates(this.templates,e,r);return}const l=yield qn(this.file,e,n);pe(l,()=>`illegal filename "${l}"`);const o=yield n._parseLayoutFile(l,e.sync,this.currentFile);e.setRegister("blockMode",St.STORE);const u=yield a.renderTemplates(this.templates,e),c=e.getRegister("blocks");c[""]===void 0&&(c[""]=(f,d)=>d.write(u)),e.setRegister("blockMode",St.OUTPUT),e.push(yield i.render(e)),yield a.renderTemplates(o,e,r),e.pop()}}class Rf extends ae{constructor(e,r,n){super(e,r,n),this.templates=[];const i=/\w+/.exec(e.args);for(this.block=i?i[0]:"";r.length;){const s=r.shift();if(Et(s)&&s.name==="endblock")return;const a=n.parser.parseToken(s,r);this.templates.push(a)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,r){const n=this.getBlockRender(e);e.getRegister("blockMode")===St.STORE?e.getRegister("blocks")[this.block]=n:yield n(new Ns,r)}getBlockRender(e){const{liquid:r,templates:n}=this,i=e.getRegister("blocks")[this.block],s=function*(a,l){e.push({block:a}),yield r.renderer.renderTemplates(n,e,l),e.pop()};return i?(a,l)=>i(new Ns(()=>s(a,l)),l):s}}class xf extends ae{constructor(e,r,n){for(super(e,r,n),this.tokens=[];r.length;){const i=r.shift();if(Et(i)&&i.name==="endraw")return;this.tokens.push(i)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}}class Of extends Tn{constructor(e,r,n,i){super(e,n,i),this.length=e,this.cols=r}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}}class _f extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators),s=i.readIdentifier();i.skipBlank();const a=i.readIdentifier(),l=i.readValue();if(a.content!=="in"||!l)throw new Error(`illegal tag: ${e.getText()}`);this.variable=s.content,this.collection=l,this.args=new Lt(i.remaining()),this.templates=[];let o;const u=this.liquid.parser.parseStream(r).on("start",()=>o=this.templates).on("tag:endtablerow",()=>u.stop()).on("template",c=>o.push(c)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});u.start()}*render(e,r){let n=kn(yield ve(this.collection,e));const i=yield this.args.render(e),s=i.offset||0,a=i.limit===void 0?n.length:i.limit;n=n.slice(s,s+a);const l=i.cols||n.length,o=this.liquid.renderer,u=new Of(n.length,l,this.collection.getText(),this.variable),c={tablerowloop:u};e.push(c);for(let f=0;f<n.length;f++,u.next())c[this.variable]=n[f],u.col0()===0&&(u.row()!==1&&r.write("</tr>"),r.write(`<tr class="row${u.row()}">`)),r.write(`<td class="col${u.col()}">`),yield o.renderTemplates(this.templates,e,r),r.write("</td>");n.length&&r.write("</tr>"),e.pop()}}class Tf extends ae{constructor(e,r,n){super(e,r,n),this.branches=[],this.elseTemplates=[];let i;this.liquid.parser.parseStream(r).on("start",()=>this.branches.push({value:new Ze(e.args,this.liquid),test:Nr,templates:i=[]})).on("tag:elsif",s=>this.branches.push({value:new Ze(s.args,this.liquid),test:bt,templates:i=[]})).on("tag:else",()=>i=this.elseTemplates).on("tag:endunless",function(){this.stop()}).on("template",s=>i.push(s)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,r){const n=this.liquid.renderer;for(const{value:i,test:s,templates:a}of this.branches){const l=yield i.value(e,e.opts.lenientIf);if(s(l,e)){yield n.renderTemplates(a,e,r);return}}yield n.renderTemplates(this.elseTemplates,e,r)}}class kf extends ae{render(e,r){r.break=!0}}class Df extends ae{render(e,r){r.continue=!0}}class Lf extends ae{constructor(e,r,n){super(e,r,n),this.value=new Ze(e.args,this.liquid)}*render(e,r){const n=yield this.value.value(e,!1);r.write(n)}}class Pf extends ae{constructor(e,r,n){super(e,r,n);const s=new me(e.args,this.liquid.options.operators).readLiquidTagTokens(this.liquid.options);this.templates=this.liquid.parser.parseTokens(s)}*render(e,r){yield this.liquid.renderer.renderTemplates(this.templates,e,r)}}class jf extends ae{constructor(e,r,n){if(super(e,r,n),e.args.search(/\n\s*[^#\s]/g)!==-1)throw new Error("every line of an inline comment must start with a '#' character")}render(){}}const Ff={assign:lf,for:uf,capture:ff,case:mf,comment:gf,include:vf,render:yf,decrement:bf,increment:Ef,cycle:wf,if:Cf,layout:Sf,block:Rf,raw:xf,tablerow:_f,unless:Tf,break:kf,continue:Df,echo:Lf,liquid:Pf,"#":jf};class In{constructor(e={}){this.renderer=new pd,this.filters={},this.tags={},this.options=qd(e),this.parser=new Gd(this),Ts(Ff,(r,n)=>this.registerTag(n,r)),Ts(of,(r,n)=>this.registerFilter(n,r))}parse(e,r){return this.parser.parse(e,r)}_render(e,r,n){const i=r instanceof Pt?r:new Pt(r,this.options,n);return this.renderer.renderTemplates(e,i)}render(e,r,n){return Ye(this,void 0,void 0,function*(){return it(this._render(e,r,Object.assign(Object.assign({},n),{sync:!1})))})}renderSync(e,r,n){return st(this._render(e,r,Object.assign(Object.assign({},n),{sync:!0})))}renderToNodeStream(e,r,n={}){const i=new Pt(r,this.options,n);return this.renderer.renderTemplatesToNodeStream(e,i)}_parseAndRender(e,r,n){const i=this.parse(e);return this._render(i,r,n)}parseAndRender(e,r,n){return Ye(this,void 0,void 0,function*(){return it(this._parseAndRender(e,r,Object.assign(Object.assign({},n),{sync:!1})))})}parseAndRenderSync(e,r,n){return st(this._parseAndRender(e,r,Object.assign(Object.assign({},n),{sync:!0})))}_parsePartialFile(e,r,n){return this.parser.parseFile(e,r,Ct.Partials,n)}_parseLayoutFile(e,r,n){return this.parser.parseFile(e,r,Ct.Layouts,n)}_parseFile(e,r,n,i){return this.parser.parseFile(e,r,n,i)}parseFile(e,r){return Ye(this,void 0,void 0,function*(){return it(this.parser.parseFile(e,!1,r))})}parseFileSync(e,r){return st(this.parser.parseFile(e,!0,r))}*_renderFile(e,r,n){const i=yield this._parseFile(e,n.sync,n.lookupType);return yield this._render(i,r,n)}renderFile(e,r,n){return Ye(this,void 0,void 0,function*(){return it(this._renderFile(e,r,Object.assign(Object.assign({},n),{sync:!1})))})}renderFileSync(e,r,n){return st(this._renderFile(e,r,Object.assign(Object.assign({},n),{sync:!0})))}renderFileToNodeStream(e,r,n){return Ye(this,void 0,void 0,function*(){const i=yield this.parseFile(e);return this.renderToNodeStream(i,r,n)})}_evalValue(e,r){const n=new Ze(e,this),i=r instanceof Pt?r:new Pt(r,this.options);return n.value(i)}evalValue(e,r){return Ye(this,void 0,void 0,function*(){return it(this._evalValue(e,r))})}evalValueSync(e,r){return st(this._evalValue(e,r))}registerFilter(e,r){this.filters[e]=r}registerTag(e,r){this.tags[e]=be(r)?r:Qd(r)}plugin(e){return e.call(this,In)}express(){const e=this;let r=!0;return function(n,i,s){if(r){r=!1;const a=Ar(this.root);e.options.root.unshift(...a),e.options.layouts.unshift(...a),e.options.partials.unshift(...a)}e.renderFile(n,i).then(a=>s(null,a),s)}}}const jt=new In;function Mf(t,e){return N.useMemo(()=>Nf(t,e),[t,e])}function Nf(t,e){return t.map(r=>{const n=e||r.transform;return n?Object.keys(n).reduce((i,s)=>s==="details"?(i[s]=n[s].map(a=>Array.isArray(a)?a.map(l=>({label:l.label,value:jt.parseAndRenderSync(l.value,r),html:l.html})):{label:a.label,value:jt.parseAndRenderSync(a.value,r),html:a.html}),i):s==="actions"?(i[s]=n[s].map(a=>Object.keys(a).reduce((l,o)=>(typeof a[o]=="object"?l[o]=Object.keys(a[o]).reduce((u,c)=>(u[c]=jt.parseAndRenderSync(a[o][c],r),u),{}):l[o]=jt.parseAndRenderSync(a[o],r),l),{})),i):(i[s]=jt.parseAndRenderSync(n[s],r),i),{}):r})}function la({path:t,placeholderText:e,dynamicOptions:r}){var F;let{asyncUrl:n,transform:i,clientSideFilter:s,rootData:a,includeHeaders:l}=r,o=Po();const u=Re(),{activeIndex:c,search:f,setActions:d,navigateTo:m}=N.useContext(rt),v=xu(f,500),w=l&&u.headers?u.headers:{},{isLoading:S,error:O,data:k=[]}=Ru({queryKey:[t,s?"":v],enabled:!!n,queryFn:()=>fetch(jt.parseAndRenderSync(n,o),{headers:w}).then(j=>j.json())}),C=a?Ec(k,a,[]):k,E=N.useMemo(()=>Array.isArray(C)?C:[C],[C]);let M=Mf(E,i);s&&(M=M.filter(j=>j.title.toLowerCase().includes(f.toLowerCase())));const _=M[c];return N.useEffect(()=>{_&&_.actions?d(_.actions):d([])},[_,f,c,d]),S?y.jsx(er,{children:y.jsx("div",{className:"qikbar-item-empty",children:"loading..."})}):M.length===0?y.jsxs(er,{children:[y.jsx(wr,{placeholder:e}),y.jsx("div",{className:"qikbar-item-empty",children:"No matches"})]}):y.jsxs(y.Fragment,{children:[y.jsx(wr,{placeholder:e}),y.jsxs(er,{children:[y.jsx(Ui,{children:M.map(j=>y.jsx(cn,{item:j},j.id))}),_&&((F=_==null?void 0:_.details)==null?void 0:F.length)>0&&y.jsx(Hi,{fields:_.details})]})]})}class Af extends N.Component{constructor(){super(...arguments);pa(this,"state",{hasError:!1})}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,n){}render(){return this.state.hasError?y.jsx("div",{className:"qikbar-command-wrapper",children:"Something went wrong."}):this.props.children}}function ua(){let t=Li();return y.jsx("div",{className:"qikbar-command-wrapper",children:y.jsxs("div",{className:"qikbar-command-bar",children:[y.jsx("div",{className:"qikbar-command-content",children:y.jsxs("div",{className:"qikbar-command-error",children:["It looks like there maybe a problem. If you continue to see this please contact @"," ",y.jsx("a",{href:`mailto:support@qikbar.com?subject=Issues with running qikbar on my site.&body=The current error is: ${t}`,children:"support@qikbar.com"})]})}),y.jsx("div",{className:"qikbar-command-footer",children:y.jsx("div",{className:"qikbar-logo",children:y.jsx("a",{href:"https://www.qikbar.com",target:"_blank",rel:"noopener noreferrer",children:y.jsxs("svg",{width:"89",height:"30",viewBox:"0 0 89 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{d:"M36.9964 16.0795H39.1271L40.0327 17.2354L41.2205 18.5991L43.0476 20.8523H40.6612L39.3828 19.3235L38.6264 18.2369L36.9964 16.0795ZM43.1222 14.5455C43.1222 15.7457 42.8913 16.7631 42.4297 17.5977C41.968 18.4322 41.343 19.0661 40.5547 19.4993C39.7699 19.9325 38.8892 20.1491 37.9126 20.1491C36.9325 20.1491 36.0501 19.9308 35.2653 19.494C34.4805 19.0572 33.8572 18.4233 33.3956 17.5923C32.9375 16.7578 32.7085 15.7422 32.7085 14.5455C32.7085 13.3452 32.9375 12.3278 33.3956 11.4933C33.8572 10.6587 34.4805 10.0249 35.2653 9.59162C36.0501 9.15838 36.9325 8.94176 37.9126 8.94176C38.8892 8.94176 39.7699 9.15838 40.5547 9.59162C41.343 10.0249 41.968 10.6587 42.4297 11.4933C42.8913 12.3278 43.1222 13.3452 43.1222 14.5455ZM40.4268 14.5455C40.4268 13.8352 40.3256 13.2351 40.1232 12.745C39.9244 12.255 39.6367 11.8839 39.2603 11.6317C38.8874 11.3796 38.4382 11.2536 37.9126 11.2536C37.3906 11.2536 36.9414 11.3796 36.565 11.6317C36.1886 11.8839 35.8991 12.255 35.6967 12.745C35.4979 13.2351 35.3984 13.8352 35.3984 14.5455C35.3984 15.2557 35.4979 15.8558 35.6967 16.3459C35.8991 16.8359 36.1886 17.207 36.565 17.4592C36.9414 17.7113 37.3906 17.8374 37.9126 17.8374C38.4382 17.8374 38.8874 17.7113 39.2603 17.4592C39.6367 17.207 39.9244 16.8359 40.1232 16.3459C40.3256 15.8558 40.4268 15.2557 40.4268 14.5455ZM44.6762 20V11.8182H47.281V20H44.6762ZM45.9813 10.8647C45.6155 10.8647 45.3012 10.744 45.0384 10.5025C44.7757 10.2575 44.6443 9.96271 44.6443 9.61825C44.6443 9.27734 44.7757 8.98615 45.0384 8.74467C45.3012 8.49964 45.6155 8.37713 45.9813 8.37713C46.3506 8.37713 46.6649 8.49964 46.9241 8.74467C47.1869 8.98615 47.3183 9.27734 47.3183 9.61825C47.3183 9.96271 47.1869 10.2575 46.9241 10.5025C46.6649 10.744 46.3506 10.8647 45.9813 10.8647ZM51.288 17.8533L51.2987 14.7479H51.6609L53.962 11.8182H56.913L53.4933 16.0156H52.8061L51.288 17.8533ZM48.9389 20V9.09091H51.5437V20H48.9389ZM54.0206 20L51.8793 16.6016L53.5945 14.7532L57.0302 20H54.0206Z",className:"qikbar-logo-secondary"}),y.jsx("path",{d:"M57.8452 20V9.09091H60.4499V13.2191H60.5032C60.6097 12.9705 60.7607 12.7308 60.956 12.5C61.1548 12.2692 61.407 12.081 61.7124 11.9354C62.0213 11.7862 62.3906 11.7116 62.8203 11.7116C63.3885 11.7116 63.9194 11.8608 64.413 12.1591C64.9102 12.4574 65.3114 12.9173 65.6168 13.5387C65.9222 14.1602 66.0749 14.9521 66.0749 15.9144C66.0749 16.8413 65.9276 17.6172 65.6328 18.2422C65.3416 18.8672 64.9474 19.3359 64.4503 19.6484C63.9567 19.9609 63.408 20.1172 62.8043 20.1172C62.3924 20.1172 62.0355 20.0497 61.7337 19.9148C61.4318 19.7798 61.1779 19.6023 60.9719 19.3821C60.7695 19.1619 60.6133 18.9258 60.5032 18.6737H60.4233V20H57.8452ZM60.3967 15.9091C60.3967 16.3494 60.4553 16.733 60.5724 17.0597C60.6932 17.3864 60.8654 17.6403 61.0891 17.8214C61.3164 17.9989 61.5881 18.0877 61.9041 18.0877C62.2237 18.0877 62.4954 17.9989 62.7191 17.8214C62.9428 17.6403 63.1115 17.3864 63.2251 17.0597C63.3423 16.733 63.4009 16.3494 63.4009 15.9091C63.4009 15.4687 63.3423 15.087 63.2251 14.7638C63.1115 14.4407 62.9428 14.1903 62.7191 14.0128C62.4989 13.8352 62.2273 13.7464 61.9041 13.7464C61.5845 13.7464 61.3129 13.8335 61.0891 14.0075C60.8654 14.1815 60.6932 14.43 60.5724 14.7532C60.4553 15.0763 60.3967 15.4616 60.3967 15.9091ZM69.7464 20.1385C69.2243 20.1385 68.7609 20.0515 68.3561 19.8775C67.9548 19.6999 67.637 19.4336 67.4026 19.0785C67.1718 18.7198 67.0564 18.2706 67.0564 17.7308C67.0564 17.2763 67.1363 16.8928 67.2961 16.5803C67.4559 16.2678 67.676 16.0138 67.9566 15.8185C68.2371 15.6232 68.5603 15.4759 68.926 15.3764C69.2918 15.2734 69.6824 15.2042 70.0979 15.1687C70.5631 15.1261 70.9378 15.0817 71.2219 15.0355C71.5059 14.9858 71.7119 14.9165 71.8398 14.8278C71.9711 14.7354 72.0368 14.6058 72.0368 14.4389V14.4123C72.0368 14.1388 71.9427 13.9276 71.7545 13.7784C71.5663 13.6293 71.3124 13.5547 70.9928 13.5547C70.6483 13.5547 70.3714 13.6293 70.1618 13.7784C69.9523 13.9276 69.8192 14.1335 69.7623 14.3963L67.36 14.3111C67.431 13.8139 67.6139 13.37 67.9086 12.9794C68.2069 12.5852 68.6153 12.2763 69.1338 12.0526C69.6558 11.8253 70.2826 11.7116 71.0141 11.7116C71.5361 11.7116 72.0173 11.7738 72.4577 11.8981C72.898 12.0188 73.2815 12.1964 73.6082 12.4308C73.9349 12.6616 74.1871 12.9457 74.3646 13.283C74.5457 13.6204 74.6363 14.0057 74.6363 14.4389V20H72.186V18.8601H72.1221C71.9765 19.1371 71.79 19.3714 71.5628 19.5632C71.339 19.755 71.0745 19.8988 70.7691 19.9947C70.4672 20.0906 70.1263 20.1385 69.7464 20.1385ZM70.5507 18.4339C70.8312 18.4339 71.0834 18.3771 71.3071 18.2635C71.5344 18.1499 71.7155 17.9936 71.8504 17.7947C71.9854 17.5923 72.0528 17.358 72.0528 17.0916V16.3139C71.9782 16.353 71.8877 16.3885 71.7812 16.4205C71.6782 16.4524 71.5645 16.4826 71.4403 16.511C71.316 16.5394 71.1881 16.5643 71.0567 16.5856C70.9253 16.6069 70.7993 16.6264 70.6785 16.6442C70.4335 16.6832 70.224 16.7436 70.05 16.8253C69.8795 16.907 69.7481 17.0135 69.6558 17.1449C69.567 17.2727 69.5226 17.4254 69.5226 17.603C69.5226 17.8729 69.6185 18.0788 69.8103 18.2209C70.0056 18.3629 70.2524 18.4339 70.5507 18.4339ZM76.229 20V11.8182H78.7591V13.3097H78.8444C78.9935 12.7699 79.2368 12.3686 79.5741 12.1058C79.9115 11.8395 80.3039 11.7063 80.7513 11.7063C80.8721 11.7063 80.9964 11.7152 81.1242 11.733C81.252 11.7472 81.371 11.7702 81.4811 11.8022V14.0661C81.3568 14.0234 81.1934 13.9897 80.991 13.9648C80.7922 13.94 80.6146 13.9276 80.4584 13.9276C80.1494 13.9276 79.8706 13.9968 79.6221 14.1353C79.377 14.2702 79.1835 14.4602 79.0415 14.7053C78.903 14.9467 78.8337 15.2308 78.8337 15.5575V20H76.229Z",className:"qikbar-logo-primary-fill"}),y.jsx("path",{d:"M19.75 18.75L17.261 16.261M17.261 16.261C17.5744 15.9476 17.823 15.5755 17.9926 15.1661C18.1622 14.7566 18.2495 14.3177 18.2495 13.8745C18.2495 13.4313 18.1622 12.9924 17.9926 12.5829C17.823 12.1735 17.5744 11.8014 17.261 11.488C16.9476 11.1746 16.5755 10.926 16.1661 10.7564C15.7566 10.5868 15.3177 10.4995 14.8745 10.4995C14.4313 10.4995 13.9924 10.5868 13.5829 10.7564C13.1735 10.926 12.8014 11.1746 12.488 11.488C11.8549 12.1211 11.4993 12.9797 11.4993 13.875C11.4993 14.7703 11.8549 15.6289 12.488 16.262C13.1211 16.8951 13.9797 17.2507 14.875 17.2507C15.7703 17.2507 16.6289 16.8951 17.262 16.262L17.261 16.261ZM25 15C25 16.1819 24.7672 17.3522 24.3149 18.4442C23.8626 19.5361 23.1997 20.5282 22.364 21.364C21.5282 22.1997 20.5361 22.8626 19.4442 23.3149C18.3522 23.7672 17.1819 24 16 24C14.8181 24 13.6478 23.7672 12.5558 23.3149C11.4639 22.8626 10.4718 22.1997 9.63604 21.364C8.80031 20.5282 8.13738 19.5361 7.68508 18.4442C7.23279 17.3522 7 16.1819 7 15C7 12.6131 7.94821 10.3239 9.63604 8.63604C11.3239 6.94821 13.6131 6 16 6C18.3869 6 20.6761 6.94821 22.364 8.63604C24.0518 10.3239 25 12.6131 25 15Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"qikbar-logo-primary-stroke"})]})})})})]})})}const Re=Da(t=>({commands:[],router:null,headers:null,id:null,theme:null,addRouter:e=>{t(r=>({router:e}))},addHeaders:e=>{t(()=>({headers:e}))},setId:e=>{t(()=>({id:e}))},setTheme:e=>{t(()=>({theme:e}))},addCommand:e=>{t(r=>({commands:[...r.commands,e]}))},addCommands:e=>{t(r=>({commands:e}))},updateCommand:e=>{t(r=>({commands:r.commands.map(n=>n.id===e.id?e:n)}))},removeCommand:e=>{t(r=>({commands:r.commands.filter(n=>n.id!==e.id)}))}})),ca=new su;function qf({path:t,commands:e,theme:r}){const n=Ni([{path:"/",element:y.jsx(Vi,{demo:!0,defaultOpen:!0,wrapperClass:"qikbar-command-demo-wrapper"}),errorElement:y.jsx(ua,{}),children:e.map(i=>({path:i.path,element:i.type==="STATIC"?y.jsx(Qi,{...i}):y.jsx(la,{...i})}))}],{initialEntries:[t||"/"]});return y.jsx("div",{id:"qikbar",className:`qikbar-demo qikbar-light qikbar-${r}`,children:y.jsx(ds,{client:ca,children:y.jsx(ji,{router:n})})})}function If(){const t=Re(n=>n.commands),e=Re(n=>n.theme),r=Ni([{path:"/",element:y.jsx(Vi,{}),errorElement:y.jsx(ua,{}),children:t.map(n=>({path:n.path,element:n.type==="STATIC"?y.jsx(Qi,{...n}):y.jsx(la,{...n})}))}]);return y.jsx("div",{id:"qikbar",className:`qikbar-light qikbar-${e}`,children:y.jsx(ji,{router:r})})}const da=async t=>fetch(`https://app.qikbar.com/api/site/${t}`).then(r=>r.json()).then(r=>{r!=null&&r.routes&&Re.getState().addCommands(r.routes),r!=null&&r.theme&&Re.getState().setTheme(r.theme),r!=null&&r.id&&Re.getState().setId(r.id)}).catch(r=>{console.error(r)});function Vf({id:t}){return da(t),{id:t,boot:({elementId:r})=>{Ht.createRoot(document.getElementById(r)).render(y.jsx(N.StrictMode,{children:y.jsx(Af,{children:y.jsx(ds,{client:ca,children:y.jsx(If,{})})})})),window.Qikbar.booted=!0},setTheme:r=>Re.getState().setTheme(r),reloadSite:()=>da(t),addCommand:r=>Re.getState().addCommand(r),updateCommand:r=>Re.getState().updateCommand(r),removeCommand:r=>Re.getState().removeCommand(r),addRouter:r=>Re.getState().addRouter(r),addHeaders:r=>Re.getState().addHeaders(r)}}function ha(t){return window.Qikbar=Vf({id:t}),window.addEventListener("message",function(e){var r;(r=e==null?void 0:e.data)!=null&&r.reloadSite&&window.Qikbar.reloadSite()}),window.Qikbar}function Uf({elementId:t,router:e,siteId:r}){return N.useEffect(()=>{if(window.Qikbar)return;const n=ha(r);n.boot({elementId:t||"qikbar"}),e&&n.addRouter(e)},[e,t,r]),t?null:y.jsx("div",{id:"qikbar"})}const fp="";ye.DemoBar=qf,ye.Qikbar=Uf,ye.init=ha,Object.defineProperty(ye,Symbol.toStringTag,{value:"Module"})});
|
|
113
|
+
`,r:"\r",t:" ",v:"\v"};function ta(t){const e=t.charCodeAt(0);return e>=97?e-87:e>=65?e-55:e-48}function ra(t){let e="";for(let r=1;r<t.length-1;r++){if(t[r]!=="\\"){e+=t[r];continue}if(ea[t[r+1]]!==void 0)e+=ea[t[++r]];else if(t[r+1]==="u"){let n=0,i=r+2;for(;i<=r+5&&Zd.test(t[i]);)n=n*16+ta(t[i++]);r=i-1,e+=String.fromCharCode(n)}else if(!Xs.test(t[r+1]))e+=t[++r];else{let n=r+1,i=0;for(;n<=r+3&&Xs.test(t[n]);)i=i*8+ta(t[n++]);r=n-1,e+=String.fromCharCode(i)}}return e}var ee;(function(t){t[t.Number=1]="Number",t[t.Literal=2]="Literal",t[t.Tag=4]="Tag",t[t.Output=8]="Output",t[t.HTML=16]="HTML",t[t.Filter=32]="Filter",t[t.Hash=64]="Hash",t[t.PropertyAccess=128]="PropertyAccess",t[t.Word=256]="Word",t[t.Range=512]="Range",t[t.Quoted=1024]="Quoted",t[t.Operator=2048]="Operator",t[t.Delimited=12]="Delimited"})(ee||(ee={}));function Jd(t){return!!(Fe(t)&ee.Delimited)}function na(t){return Fe(t)===ee.Operator}function Nn(t){return Fe(t)===ee.HTML}function Xd(t){return Fe(t)===ee.Output}function Et(t){return Fe(t)===ee.Tag}function ia(t){return Fe(t)===ee.Quoted}function eh(t){return Fe(t)===ee.Literal}function th(t){return Fe(t)===ee.Number}function rh(t){return Fe(t)===ee.PropertyAccess}function nh(t){return Fe(t)===ee.Word}function ih(t){return Fe(t)===ee.Range}function Fe(t){return t?t.kind:-1}class Pt{constructor(e={},r=wt,n={}){var i,s;this.scopes=[{}],this.registers={},this.sync=!!n.sync,this.opts=r,this.globals=(i=n.globals)!==null&&i!==void 0?i:r.globals,this.environments=e,this.strictVariables=(s=n.strictVariables)!==null&&s!==void 0?s:this.opts.strictVariables}getRegister(e){return this.registers[e]=this.registers[e]||{}}setRegister(e,r){return this.registers[e]=r}saveRegister(...e){return e.map(r=>[r,this.getRegister(r)])}restoreRegister(e){return e.forEach(([r,n])=>this.setRegister(r,n))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,r)=>Fr(e,r),{})}get(e){return st(this._get(e))}*_get(e){const r=this.findScope(e[0]);return yield this._getFromScope(r,e)}getFromScope(e,r){return st(this._getFromScope(e,r))}*_getFromScope(e,r){We(r)&&(r=r.split("."));for(let n=0;n<r.length;n++)if(e=yield sh(e,r[n],this.opts.ownPropertyOnly),Ke(e)&&this.strictVariables)throw new Pc(r.slice(0,n+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}findScope(e){for(let r=this.scopes.length-1;r>=0;r--){const n=this.scopes[r];if(e in n)return n}return e in this.environments?this.environments:this.globals}}function sh(t,e,r){if(t=_s(t),Ke(t))return t;if(Se(t)&&e<0)return t[t.length+ +e];const n=ah(t,e,r);return n===void 0&&t instanceof vt?t.liquidMethodMissing(e):be(n)?n.call(t):e==="size"?uh(t):e==="first"?oh(t):e==="last"?lh(t):n}function ah(t,e,r){if(!(r&&!Object.hasOwnProperty.call(t,e)&&!(t instanceof vt)))return t[e]}function oh(t){return Se(t)?t[0]:t.first}function lh(t){return Se(t)?t[t.length-1]:t.last}function uh(t){if(t.hasOwnProperty("size")||t.size!==void 0)return t.size;if(Se(t)||We(t))return t.length;if(typeof t=="object")return Object.keys(t).length}var St;(function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"})(St||(St={}));const ch=Oe(Math.abs),dh=Oe(Math.max),hh=Oe(Math.min),fh=Oe(Math.ceil),ph=Oe((t,e,r=!1)=>r?Math.floor(t/e):t/e),mh=Oe(Math.floor),gh=Oe((t,e)=>t-e),yh=Oe((t,e)=>t%e),vh=Oe((t,e)=>t*e);function bh(t,e=0){t=B(t),e=B(e);const r=Math.pow(10,e);return Math.round(t*r)/r}function wh(t,e){return t=B(t),e=B(e),Number(t)+Number(e)}var Ch=Object.freeze({__proto__:null,abs:ch,at_least:dh,at_most:hh,ceil:fh,divided_by:ph,floor:mh,minus:gh,modulo:yh,times:vh,round:bh,plus:wh}),Eh=Object.freeze({__proto__:null,url_decode:t=>$(t).split("+").map(decodeURIComponent).join(" "),url_encode:t=>$(t).split(" ").map(encodeURIComponent).join("+")});const Sh=Oe((t,e)=>Ge(t).join(e===void 0?" ":e)),Rh=Oe(t=>Se(t)?Sn(t):""),xh=Oe(t=>Se(t)?t[0]:""),Oh=Oe(t=>[...Ge(t)].reverse());function*_h(t,e){const r=[];for(const n of Ge(B(t)))r.push([n,e?yield this.context._getFromScope(n,$(e).split(".")):n]);return r.sort((n,i)=>{const s=n[1],a=i[1];return s<a?-1:s>a?1:0}).map(n=>n[0])}function Th(t,e){t=B(t);const r=$(e),n=e===void 0?Ps:(i,s)=>Ps(i[r],s[r]);return[...Ge(t)].sort(n)}const kh=t=>t&&t.length||0;function*Dh(t,e){const r=[];for(const n of Ge(B(t)))r.push(yield this.context._getFromScope(n,$(e).split(".")));return r}function Lh(t){return t=B(t),Ge(t).filter(e=>!Ke(B(e)))}function Ph(t,e=[]){return t=B(t),e=Ge(e).map(r=>B(r)),Ge(t).concat(e)}function jh(t,e,r=1){return t=B(t),Ke(t)?[]:(Se(t)||(t=$(t)),e=e<0?t.length+e:e,t.slice(e,e+r))}function*Fh(t,e,r){const n=[];t=Ge(B(t));for(const i of t)n.push(yield this.context._getFromScope(i,$(e).split(".")));return t.filter((i,s)=>r===void 0?bt(n[s],this.context):_e(r)?r.equals(n[s]):n[s]===r)}function Mh(t){t=B(t);const e={};return(t||[]).filter(r=>Os.call(e,String(r))?!1:(e[String(r)]=!0,!0))}var Nh=Object.freeze({__proto__:null,join:Sh,last:Rh,first:xh,reverse:Oh,sort:_h,sort_natural:Th,size:kh,map:Dh,compact:Lh,concat:Ph,slice:jh,where:Fh,uniq:Mh});const Ah="%A, %B %-e, %Y at %-l:%M %P %z";function qh(t,e,r){const n=this.context.opts;let i;return t=B(t),e=B(e),Ke(e)?e=Ah:e=$(e),t==="now"||t==="today"?i=new Date:kr(t)?i=new Date(t*1e3):We(t)?/^\d+$/.test(t)?i=new Date(+t*1e3):n.preserveTimezones?i=at.createDateFixedToTimezone(t):i=new Date(t):i=t,Ih(i)?(r!==void 0?i=new at(i,sa(i,r)):n.timezoneOffset!==void 0&&(i=new at(i,sa(i,n.timezoneOffset))),Gc(i,e)):t}function Ih(t){return(t instanceof Date||t instanceof at)&&!isNaN(t.getTime())}function sa(t,e){if(kr(e))return e;const r=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),n=new Date(t.toLocaleString("en-US",{timeZone:e}));return(r.getTime()-n.getTime())/6e4}var Vh=Object.freeze({__proto__:null,date:qh});function Uh(t,e){return pe(arguments.length===2,"append expect 2 arguments"),$(t)+$(e)}function $h(t,e){return pe(arguments.length===2,"prepend expect 2 arguments"),$(e)+$(t)}function Bh(t,e){return e?(e=xn($(e)),$(t).replace(new RegExp(`^[${e}]+`,"g"),"")):$(t).replace(/^\s+/,"")}function Hh(t){return $(t).toLowerCase()}function Qh(t){return $(t).toUpperCase()}function zh(t,e){return $(t).split(String(e)).join("")}function Wh(t,e){return $(t).replace(String(e),"")}function Kh(t,e){const r=$(t),n=String(e),i=r.lastIndexOf(n);return i===-1?r:r.substring(0,i)+r.substring(i+n.length+1)}function Yh(t,e){return e?(e=xn($(e)),$(t).replace(new RegExp(`[${e}]+$`,"g"),"")):$(t).replace(/\s+$/,"")}function Gh(t,e){const r=$(t).split(String(e));for(;r.length&&r[r.length-1]==="";)r.pop();return r}function Zh(t,e){return e?(e=xn($(e)),$(t).replace(new RegExp(`^[${e}]+`,"g"),"").replace(new RegExp(`[${e}]+$`,"g"),"")):$(t).trim()}function Jh(t){return $(t).replace(/\n/g,"")}function Xh(t){return t=$(t),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function ef(t,e,r){return $(t).split(String(e)).join(r)}function tf(t,e,r){return $(t).replace(String(e),r)}function rf(t,e,r){const n=$(t),i=String(e),s=n.lastIndexOf(i);if(s===-1)return n;const a=String(r);return n.substring(0,s)+a+n.substring(s+i.length)}function nf(t,e=50,r="..."){return t=$(t),t.length<=e?t:t.substring(0,e-r.length)+r}function sf(t,e=15,r="..."){const n=$(t).split(/\s+/);e<=0&&(e=1);let i=n.slice(0,e).join(" ");return n.length>=e&&(i+=r),i}var af=Object.freeze({__proto__:null,append:Uh,prepend:$h,lstrip:Bh,downcase:Hh,upcase:Qh,remove:zh,remove_first:Wh,remove_last:Kh,rstrip:Yh,split:Gh,strip:Zh,strip_newlines:Jh,capitalize:Xh,replace:ef,replace_first:tf,replace_last:rf,truncate:nf,truncatewords:sf});const of=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ad),Ch),Eh),Nh),Vh),af),{json:Zs,raw:Dd,default:kd});class lf extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,n.options.operators);this.key=i.readIdentifier().content,i.skipBlank(),pe(i.peek()==="=",()=>`illegal token ${e.getText()}`),i.advance(),this.value=new Ze(i.remaining(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}}const aa=["offset","limit","reversed"];class uf extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators),s=i.readIdentifier(),a=i.readIdentifier(),l=i.readValue();if(!s.size()||a.content!=="in"||!l)throw new Error(`illegal tag: ${e.getText()}`);this.variable=s.content,this.collection=l,this.hash=new Lt(i.remaining()),this.templates=[],this.elseTemplates=[];let o;const u=this.liquid.parser.parseStream(r).on("start",()=>o=this.templates).on("tag:else",()=>o=this.elseTemplates).on("tag:endfor",()=>u.stop()).on("template",c=>o.push(c)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});u.start()}*render(e,r){const n=this.liquid.renderer;let i=kn(yield ve(this.collection,e));if(!i.length){yield n.renderTemplates(this.elseTemplates,e,r);return}const s="continue-"+this.variable+"-"+this.collection.getText();e.push({continue:e.getRegister(s)});const a=yield this.hash.render(e);e.pop(),i=(this.liquid.options.orderedFilterParameters?Object.keys(a).filter(u=>aa.includes(u)):aa.filter(u=>a[u]!==void 0)).reduce((u,c)=>c==="offset"?df(u,a.offset):c==="limit"?hf(u,a.limit):cf(u),i),e.setRegister(s,(a.offset||0)+i.length);const o={forloop:new Tn(i.length,this.collection.getText(),this.variable)};e.push(o);for(const u of i){if(o[this.variable]=u,yield n.renderTemplates(this.templates,e,r),r.break){r.break=!1;break}r.continue=!1,o.forloop.next()}e.pop()}}function cf(t){return[...t].reverse()}function df(t,e){return t.slice(e)}function hf(t,e){return t.slice(0,e)}class ff extends ae{constructor(e,r,n){super(e,r,n),this.templates=[];const i=new me(e.args,this.liquid.options.operators);for(this.variable=pf(i),pe(this.variable,()=>`${e.args} not valid identifier`);r.length;){const s=r.shift();if(Et(s)&&s.name==="endcapture")return;this.templates.push(n.parser.parseToken(s,r))}throw new Error(`tag ${e.getText()} not closed`)}*render(e){const n=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=n}}function pf(t){const e=t.readIdentifier().content;if(e)return e;const r=t.readQuoted();if(r)return Pn(r)}class mf extends ae{constructor(e,r,n){super(e,r,n),this.branches=[],this.elseTemplates=[],this.value=new Ze(e.args,this.liquid),this.elseTemplates=[];let i=[];const s=this.liquid.parser.parseStream(r).on("tag:when",a=>{i=[];const l=new me(a.args,this.liquid.options.operators),o=[];for(;!l.end();)o.push(l.readValueOrThrow()),l.readTo(",");this.branches.push({values:o,templates:i})}).on("tag:else",()=>i=this.elseTemplates).on("tag:endcase",()=>s.stop()).on("template",a=>i.push(a)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});s.start()}*render(e,r){const n=this.liquid.renderer,i=B(yield this.value.value(e,e.opts.lenientIf));let s=!1;for(const a of this.branches)for(const l of a.values){const o=yield ve(l,e,e.opts.lenientIf);if(i===o){yield n.renderTemplates(a.templates,e,r),s=!0;break}}s||(yield n.renderTemplates(this.elseTemplates,e,r))}}class gf extends ae{constructor(e,r,n){for(super(e,r,n);r.length;){const i=r.shift();if(Et(i)&&i.name==="endcomment")return}throw new Error(`tag ${e.getText()} not closed`)}render(){}}class yf extends ae{constructor(e,r,n){super(e,r,n);const i=e.args,s=new me(i,this.liquid.options.operators);for(this.file=An(s,this.liquid),this.currentFile=e.file;!s.end();){s.skipBlank();const a=s.p,l=s.readIdentifier();if((l.content==="with"||l.content==="for")&&(s.skipBlank(),s.peek()!==":")){const o=s.readValue();if(o){const u=s.p,c=s.readIdentifier();let f;c.content==="as"?f=s.readIdentifier():s.p=u,this[l.content]={value:o,alias:f&&f.content},s.skipBlank(),s.peek()===","&&s.advance();continue}}s.p=a;break}this.hash=new Lt(s.remaining())}*render(e,r){const{liquid:n,hash:i}=this,s=yield qn(this.file,e,n);pe(s,()=>`illegal filename "${s}"`);const a=new Pt({},e.opts,{sync:e.sync,globals:e.globals,strictVariables:e.strictVariables}),l=a.bottom();if(Fr(l,yield i.render(e)),this.with){const{value:o,alias:u}=this.with;l[u||s]=yield ve(o,e)}if(this.for){const{value:o,alias:u}=this.for,c=kn(yield ve(o,e));l.forloop=new Tn(c.length,o.getText(),u);for(const f of c){l[u]=f;const d=yield n._parsePartialFile(s,a.sync,this.currentFile);yield n.renderer.renderTemplates(d,a,r),l.forloop.next()}}else{const o=yield n._parsePartialFile(s,a.sync,this.currentFile);yield n.renderer.renderTemplates(o,a,r)}}}function An(t,e){if(e.options.dynamicPartials){const i=t.readValue();if(i===void 0)throw new TypeError(`illegal argument "${t.input}"`);if(i.getText()==="none")return;if(ia(i)){const s=e.parse(Pn(i));return oa(s)}return i}const r=[...t.readFileNameTemplate(e.options)],n=oa(e.parser.parseTokens(r));return n==="none"?void 0:n}function oa(t){return t.length===1&&Nn(t[0].token)?t[0].token.getContent():t}function*qn(t,e,r){return typeof t=="string"?t:Array.isArray(t)?r.renderer.renderTemplates(t,e):yield ve(t,e)}class vf extends ae{constructor(e,r,n){super(e,r,n);const i=e.args,s=new me(i,this.liquid.options.operators);this.file=An(s,this.liquid),this.currentFile=e.file;const a=s.p;s.readIdentifier().content==="with"?(s.skipBlank(),s.peek()!==":"?this.withVar=s.readValue():s.p=a):s.p=a,this.hash=new Lt(s.remaining(),this.liquid.options.jekyllInclude)}*render(e,r){const{liquid:n,hash:i,withVar:s}=this,{renderer:a}=n,l=yield qn(this.file,e,n);pe(l,()=>`illegal filename "${l}"`);const o=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",St.OUTPUT);const u=yield i.render(e);s&&(u[l]=yield ve(s,e));const c=yield n._parsePartialFile(l,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?{include:u}:u),yield a.renderTemplates(c,e,r),e.pop(),e.restoreRegister(o)}}class bf extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators);this.variable=i.readIdentifier().content}render(e,r){const n=e.environments;kr(n[this.variable])||(n[this.variable]=0),r.write($(--n[this.variable]))}}class wf extends ae{constructor(e,r,n){super(e,r,n),this.candidates=[];const i=new me(e.args,this.liquid.options.operators),s=i.readValue();for(i.skipBlank(),s&&(i.peek()===":"?(this.group=s,i.advance()):this.candidates.push(s));!i.end();){const a=i.readValue();a&&this.candidates.push(a),i.readTo(",")}pe(this.candidates.length,()=>`empty candidates: ${e.getText()}`)}*render(e,r){const i=`cycle:${yield ve(this.group,e)}:`+this.candidates.join(","),s=e.getRegister("cycle");let a=s[i];a===void 0&&(a=s[i]=0);const l=this.candidates[a];return a=(a+1)%this.candidates.length,s[i]=a,yield ve(l,e)}}class Cf extends ae{constructor(e,r,n){super(e,r,n),this.branches=[],this.elseTemplates=[];let i;n.parser.parseStream(r).on("start",()=>this.branches.push({value:new Ze(e.args,this.liquid),templates:i=[]})).on("tag:elsif",s=>this.branches.push({value:new Ze(s.args,this.liquid),templates:i=[]})).on("tag:else",()=>i=this.elseTemplates).on("tag:endif",function(){this.stop()}).on("template",s=>i.push(s)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,r){const n=this.liquid.renderer;for(const{value:i,templates:s}of this.branches){const a=yield i.value(e,e.opts.lenientIf);if(bt(a,e)){yield n.renderTemplates(s,e,r);return}}yield n.renderTemplates(this.elseTemplates,e,r)}}class Ef extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators);this.variable=i.readIdentifier().content}render(e,r){const n=e.environments;kr(n[this.variable])||(n[this.variable]=0);const i=n[this.variable];n[this.variable]++,r.write($(i))}}class Sf extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators);this.file=An(i,this.liquid),this.currentFile=e.file,this.args=new Lt(i.remaining()),this.templates=this.liquid.parser.parseTokens(r)}*render(e,r){const{liquid:n,args:i,file:s}=this,{renderer:a}=n;if(s===void 0){e.setRegister("blockMode",St.OUTPUT),yield a.renderTemplates(this.templates,e,r);return}const l=yield qn(this.file,e,n);pe(l,()=>`illegal filename "${l}"`);const o=yield n._parseLayoutFile(l,e.sync,this.currentFile);e.setRegister("blockMode",St.STORE);const u=yield a.renderTemplates(this.templates,e),c=e.getRegister("blocks");c[""]===void 0&&(c[""]=(f,d)=>d.write(u)),e.setRegister("blockMode",St.OUTPUT),e.push(yield i.render(e)),yield a.renderTemplates(o,e,r),e.pop()}}class Rf extends ae{constructor(e,r,n){super(e,r,n),this.templates=[];const i=/\w+/.exec(e.args);for(this.block=i?i[0]:"";r.length;){const s=r.shift();if(Et(s)&&s.name==="endblock")return;const a=n.parser.parseToken(s,r);this.templates.push(a)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,r){const n=this.getBlockRender(e);e.getRegister("blockMode")===St.STORE?e.getRegister("blocks")[this.block]=n:yield n(new Ns,r)}getBlockRender(e){const{liquid:r,templates:n}=this,i=e.getRegister("blocks")[this.block],s=function*(a,l){e.push({block:a}),yield r.renderer.renderTemplates(n,e,l),e.pop()};return i?(a,l)=>i(new Ns(()=>s(a,l)),l):s}}class xf extends ae{constructor(e,r,n){for(super(e,r,n),this.tokens=[];r.length;){const i=r.shift();if(Et(i)&&i.name==="endraw")return;this.tokens.push(i)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}}class Of extends Tn{constructor(e,r,n,i){super(e,n,i),this.length=e,this.cols=r}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}}class _f extends ae{constructor(e,r,n){super(e,r,n);const i=new me(e.args,this.liquid.options.operators),s=i.readIdentifier();i.skipBlank();const a=i.readIdentifier(),l=i.readValue();if(a.content!=="in"||!l)throw new Error(`illegal tag: ${e.getText()}`);this.variable=s.content,this.collection=l,this.args=new Lt(i.remaining()),this.templates=[];let o;const u=this.liquid.parser.parseStream(r).on("start",()=>o=this.templates).on("tag:endtablerow",()=>u.stop()).on("template",c=>o.push(c)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});u.start()}*render(e,r){let n=kn(yield ve(this.collection,e));const i=yield this.args.render(e),s=i.offset||0,a=i.limit===void 0?n.length:i.limit;n=n.slice(s,s+a);const l=i.cols||n.length,o=this.liquid.renderer,u=new Of(n.length,l,this.collection.getText(),this.variable),c={tablerowloop:u};e.push(c);for(let f=0;f<n.length;f++,u.next())c[this.variable]=n[f],u.col0()===0&&(u.row()!==1&&r.write("</tr>"),r.write(`<tr class="row${u.row()}">`)),r.write(`<td class="col${u.col()}">`),yield o.renderTemplates(this.templates,e,r),r.write("</td>");n.length&&r.write("</tr>"),e.pop()}}class Tf extends ae{constructor(e,r,n){super(e,r,n),this.branches=[],this.elseTemplates=[];let i;this.liquid.parser.parseStream(r).on("start",()=>this.branches.push({value:new Ze(e.args,this.liquid),test:Nr,templates:i=[]})).on("tag:elsif",s=>this.branches.push({value:new Ze(s.args,this.liquid),test:bt,templates:i=[]})).on("tag:else",()=>i=this.elseTemplates).on("tag:endunless",function(){this.stop()}).on("template",s=>i.push(s)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,r){const n=this.liquid.renderer;for(const{value:i,test:s,templates:a}of this.branches){const l=yield i.value(e,e.opts.lenientIf);if(s(l,e)){yield n.renderTemplates(a,e,r);return}}yield n.renderTemplates(this.elseTemplates,e,r)}}class kf extends ae{render(e,r){r.break=!0}}class Df extends ae{render(e,r){r.continue=!0}}class Lf extends ae{constructor(e,r,n){super(e,r,n),this.value=new Ze(e.args,this.liquid)}*render(e,r){const n=yield this.value.value(e,!1);r.write(n)}}class Pf extends ae{constructor(e,r,n){super(e,r,n);const s=new me(e.args,this.liquid.options.operators).readLiquidTagTokens(this.liquid.options);this.templates=this.liquid.parser.parseTokens(s)}*render(e,r){yield this.liquid.renderer.renderTemplates(this.templates,e,r)}}class jf extends ae{constructor(e,r,n){if(super(e,r,n),e.args.search(/\n\s*[^#\s]/g)!==-1)throw new Error("every line of an inline comment must start with a '#' character")}render(){}}const Ff={assign:lf,for:uf,capture:ff,case:mf,comment:gf,include:vf,render:yf,decrement:bf,increment:Ef,cycle:wf,if:Cf,layout:Sf,block:Rf,raw:xf,tablerow:_f,unless:Tf,break:kf,continue:Df,echo:Lf,liquid:Pf,"#":jf};class In{constructor(e={}){this.renderer=new pd,this.filters={},this.tags={},this.options=qd(e),this.parser=new Gd(this),Ts(Ff,(r,n)=>this.registerTag(n,r)),Ts(of,(r,n)=>this.registerFilter(n,r))}parse(e,r){return this.parser.parse(e,r)}_render(e,r,n){const i=r instanceof Pt?r:new Pt(r,this.options,n);return this.renderer.renderTemplates(e,i)}render(e,r,n){return Ye(this,void 0,void 0,function*(){return it(this._render(e,r,Object.assign(Object.assign({},n),{sync:!1})))})}renderSync(e,r,n){return st(this._render(e,r,Object.assign(Object.assign({},n),{sync:!0})))}renderToNodeStream(e,r,n={}){const i=new Pt(r,this.options,n);return this.renderer.renderTemplatesToNodeStream(e,i)}_parseAndRender(e,r,n){const i=this.parse(e);return this._render(i,r,n)}parseAndRender(e,r,n){return Ye(this,void 0,void 0,function*(){return it(this._parseAndRender(e,r,Object.assign(Object.assign({},n),{sync:!1})))})}parseAndRenderSync(e,r,n){return st(this._parseAndRender(e,r,Object.assign(Object.assign({},n),{sync:!0})))}_parsePartialFile(e,r,n){return this.parser.parseFile(e,r,Ct.Partials,n)}_parseLayoutFile(e,r,n){return this.parser.parseFile(e,r,Ct.Layouts,n)}_parseFile(e,r,n,i){return this.parser.parseFile(e,r,n,i)}parseFile(e,r){return Ye(this,void 0,void 0,function*(){return it(this.parser.parseFile(e,!1,r))})}parseFileSync(e,r){return st(this.parser.parseFile(e,!0,r))}*_renderFile(e,r,n){const i=yield this._parseFile(e,n.sync,n.lookupType);return yield this._render(i,r,n)}renderFile(e,r,n){return Ye(this,void 0,void 0,function*(){return it(this._renderFile(e,r,Object.assign(Object.assign({},n),{sync:!1})))})}renderFileSync(e,r,n){return st(this._renderFile(e,r,Object.assign(Object.assign({},n),{sync:!0})))}renderFileToNodeStream(e,r,n){return Ye(this,void 0,void 0,function*(){const i=yield this.parseFile(e);return this.renderToNodeStream(i,r,n)})}_evalValue(e,r){const n=new Ze(e,this),i=r instanceof Pt?r:new Pt(r,this.options);return n.value(i)}evalValue(e,r){return Ye(this,void 0,void 0,function*(){return it(this._evalValue(e,r))})}evalValueSync(e,r){return st(this._evalValue(e,r))}registerFilter(e,r){this.filters[e]=r}registerTag(e,r){this.tags[e]=be(r)?r:Qd(r)}plugin(e){return e.call(this,In)}express(){const e=this;let r=!0;return function(n,i,s){if(r){r=!1;const a=Ar(this.root);e.options.root.unshift(...a),e.options.layouts.unshift(...a),e.options.partials.unshift(...a)}e.renderFile(n,i).then(a=>s(null,a),s)}}}const jt=new In;function Mf(t,e){return N.useMemo(()=>Nf(t,e),[t,e])}function Nf(t,e){return t.map(r=>{const n=e||r.transform;return n?Object.keys(n).reduce((i,s)=>s==="details"?(i[s]=n[s].map(a=>Array.isArray(a)?a.map(l=>({label:l.label,value:jt.parseAndRenderSync(l.value,r),html:l.html})):{label:a.label,value:jt.parseAndRenderSync(a.value,r),html:a.html}),i):s==="actions"?(i[s]=n[s].map(a=>Object.keys(a).reduce((l,o)=>(typeof a[o]=="object"?l[o]=Object.keys(a[o]).reduce((u,c)=>(u[c]=jt.parseAndRenderSync(a[o][c],r),u),{}):l[o]=jt.parseAndRenderSync(a[o],r),l),{})),i):(i[s]=jt.parseAndRenderSync(n[s],r),i),{}):r})}function la({path:t,placeholderText:e,dynamicOptions:r}){var F;let{asyncUrl:n,transform:i,clientSideFilter:s,rootData:a,includeHeaders:l}=r,o=Po();const u=Re(),{activeIndex:c,search:f,setActions:d,navigateTo:m}=N.useContext(rt),v=xu(f,500),w=l&&u.headers?u.headers:{},{isLoading:S,error:O,data:k=[]}=Ru({queryKey:[t,s?"":v],enabled:!!n,queryFn:()=>fetch(jt.parseAndRenderSync(n,o),{credentials:"include",headers:w}).then(j=>j.json())}),C=a?Ec(k,a,[]):k,E=N.useMemo(()=>Array.isArray(C)?C:[C],[C]);let M=Mf(E,i);s&&(M=M.filter(j=>j.title.toLowerCase().includes(f.toLowerCase())));const _=M[c];return N.useEffect(()=>{_&&_.actions?d(_.actions):d([])},[_,f,c,d]),S?y.jsx(er,{children:y.jsx("div",{className:"qikbar-item-empty",children:"loading..."})}):M.length===0?y.jsxs(er,{children:[y.jsx(wr,{placeholder:e}),y.jsx("div",{className:"qikbar-item-empty",children:"No matches"})]}):y.jsxs(y.Fragment,{children:[y.jsx(wr,{placeholder:e}),y.jsxs(er,{children:[y.jsx(Ui,{children:M.map(j=>y.jsx(cn,{item:j},j.id))}),_&&((F=_==null?void 0:_.details)==null?void 0:F.length)>0&&y.jsx(Hi,{fields:_.details})]})]})}class Af extends N.Component{constructor(){super(...arguments);pa(this,"state",{hasError:!1})}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,n){}render(){return this.state.hasError?y.jsx("div",{className:"qikbar-command-wrapper",children:"Something went wrong."}):this.props.children}}function ua(){let t=Li();return y.jsx("div",{className:"qikbar-command-wrapper",children:y.jsxs("div",{className:"qikbar-command-bar",children:[y.jsx("div",{className:"qikbar-command-content",children:y.jsxs("div",{className:"qikbar-command-error",children:["It looks like there maybe a problem. If you continue to see this please contact @"," ",y.jsx("a",{href:`mailto:support@qikbar.com?subject=Issues with running qikbar on my site.&body=The current error is: ${t}`,children:"support@qikbar.com"})]})}),y.jsx("div",{className:"qikbar-command-footer",children:y.jsx("div",{className:"qikbar-logo",children:y.jsx("a",{href:"https://www.qikbar.com",target:"_blank",rel:"noopener noreferrer",children:y.jsxs("svg",{width:"89",height:"30",viewBox:"0 0 89 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{d:"M36.9964 16.0795H39.1271L40.0327 17.2354L41.2205 18.5991L43.0476 20.8523H40.6612L39.3828 19.3235L38.6264 18.2369L36.9964 16.0795ZM43.1222 14.5455C43.1222 15.7457 42.8913 16.7631 42.4297 17.5977C41.968 18.4322 41.343 19.0661 40.5547 19.4993C39.7699 19.9325 38.8892 20.1491 37.9126 20.1491C36.9325 20.1491 36.0501 19.9308 35.2653 19.494C34.4805 19.0572 33.8572 18.4233 33.3956 17.5923C32.9375 16.7578 32.7085 15.7422 32.7085 14.5455C32.7085 13.3452 32.9375 12.3278 33.3956 11.4933C33.8572 10.6587 34.4805 10.0249 35.2653 9.59162C36.0501 9.15838 36.9325 8.94176 37.9126 8.94176C38.8892 8.94176 39.7699 9.15838 40.5547 9.59162C41.343 10.0249 41.968 10.6587 42.4297 11.4933C42.8913 12.3278 43.1222 13.3452 43.1222 14.5455ZM40.4268 14.5455C40.4268 13.8352 40.3256 13.2351 40.1232 12.745C39.9244 12.255 39.6367 11.8839 39.2603 11.6317C38.8874 11.3796 38.4382 11.2536 37.9126 11.2536C37.3906 11.2536 36.9414 11.3796 36.565 11.6317C36.1886 11.8839 35.8991 12.255 35.6967 12.745C35.4979 13.2351 35.3984 13.8352 35.3984 14.5455C35.3984 15.2557 35.4979 15.8558 35.6967 16.3459C35.8991 16.8359 36.1886 17.207 36.565 17.4592C36.9414 17.7113 37.3906 17.8374 37.9126 17.8374C38.4382 17.8374 38.8874 17.7113 39.2603 17.4592C39.6367 17.207 39.9244 16.8359 40.1232 16.3459C40.3256 15.8558 40.4268 15.2557 40.4268 14.5455ZM44.6762 20V11.8182H47.281V20H44.6762ZM45.9813 10.8647C45.6155 10.8647 45.3012 10.744 45.0384 10.5025C44.7757 10.2575 44.6443 9.96271 44.6443 9.61825C44.6443 9.27734 44.7757 8.98615 45.0384 8.74467C45.3012 8.49964 45.6155 8.37713 45.9813 8.37713C46.3506 8.37713 46.6649 8.49964 46.9241 8.74467C47.1869 8.98615 47.3183 9.27734 47.3183 9.61825C47.3183 9.96271 47.1869 10.2575 46.9241 10.5025C46.6649 10.744 46.3506 10.8647 45.9813 10.8647ZM51.288 17.8533L51.2987 14.7479H51.6609L53.962 11.8182H56.913L53.4933 16.0156H52.8061L51.288 17.8533ZM48.9389 20V9.09091H51.5437V20H48.9389ZM54.0206 20L51.8793 16.6016L53.5945 14.7532L57.0302 20H54.0206Z",className:"qikbar-logo-secondary"}),y.jsx("path",{d:"M57.8452 20V9.09091H60.4499V13.2191H60.5032C60.6097 12.9705 60.7607 12.7308 60.956 12.5C61.1548 12.2692 61.407 12.081 61.7124 11.9354C62.0213 11.7862 62.3906 11.7116 62.8203 11.7116C63.3885 11.7116 63.9194 11.8608 64.413 12.1591C64.9102 12.4574 65.3114 12.9173 65.6168 13.5387C65.9222 14.1602 66.0749 14.9521 66.0749 15.9144C66.0749 16.8413 65.9276 17.6172 65.6328 18.2422C65.3416 18.8672 64.9474 19.3359 64.4503 19.6484C63.9567 19.9609 63.408 20.1172 62.8043 20.1172C62.3924 20.1172 62.0355 20.0497 61.7337 19.9148C61.4318 19.7798 61.1779 19.6023 60.9719 19.3821C60.7695 19.1619 60.6133 18.9258 60.5032 18.6737H60.4233V20H57.8452ZM60.3967 15.9091C60.3967 16.3494 60.4553 16.733 60.5724 17.0597C60.6932 17.3864 60.8654 17.6403 61.0891 17.8214C61.3164 17.9989 61.5881 18.0877 61.9041 18.0877C62.2237 18.0877 62.4954 17.9989 62.7191 17.8214C62.9428 17.6403 63.1115 17.3864 63.2251 17.0597C63.3423 16.733 63.4009 16.3494 63.4009 15.9091C63.4009 15.4687 63.3423 15.087 63.2251 14.7638C63.1115 14.4407 62.9428 14.1903 62.7191 14.0128C62.4989 13.8352 62.2273 13.7464 61.9041 13.7464C61.5845 13.7464 61.3129 13.8335 61.0891 14.0075C60.8654 14.1815 60.6932 14.43 60.5724 14.7532C60.4553 15.0763 60.3967 15.4616 60.3967 15.9091ZM69.7464 20.1385C69.2243 20.1385 68.7609 20.0515 68.3561 19.8775C67.9548 19.6999 67.637 19.4336 67.4026 19.0785C67.1718 18.7198 67.0564 18.2706 67.0564 17.7308C67.0564 17.2763 67.1363 16.8928 67.2961 16.5803C67.4559 16.2678 67.676 16.0138 67.9566 15.8185C68.2371 15.6232 68.5603 15.4759 68.926 15.3764C69.2918 15.2734 69.6824 15.2042 70.0979 15.1687C70.5631 15.1261 70.9378 15.0817 71.2219 15.0355C71.5059 14.9858 71.7119 14.9165 71.8398 14.8278C71.9711 14.7354 72.0368 14.6058 72.0368 14.4389V14.4123C72.0368 14.1388 71.9427 13.9276 71.7545 13.7784C71.5663 13.6293 71.3124 13.5547 70.9928 13.5547C70.6483 13.5547 70.3714 13.6293 70.1618 13.7784C69.9523 13.9276 69.8192 14.1335 69.7623 14.3963L67.36 14.3111C67.431 13.8139 67.6139 13.37 67.9086 12.9794C68.2069 12.5852 68.6153 12.2763 69.1338 12.0526C69.6558 11.8253 70.2826 11.7116 71.0141 11.7116C71.5361 11.7116 72.0173 11.7738 72.4577 11.8981C72.898 12.0188 73.2815 12.1964 73.6082 12.4308C73.9349 12.6616 74.1871 12.9457 74.3646 13.283C74.5457 13.6204 74.6363 14.0057 74.6363 14.4389V20H72.186V18.8601H72.1221C71.9765 19.1371 71.79 19.3714 71.5628 19.5632C71.339 19.755 71.0745 19.8988 70.7691 19.9947C70.4672 20.0906 70.1263 20.1385 69.7464 20.1385ZM70.5507 18.4339C70.8312 18.4339 71.0834 18.3771 71.3071 18.2635C71.5344 18.1499 71.7155 17.9936 71.8504 17.7947C71.9854 17.5923 72.0528 17.358 72.0528 17.0916V16.3139C71.9782 16.353 71.8877 16.3885 71.7812 16.4205C71.6782 16.4524 71.5645 16.4826 71.4403 16.511C71.316 16.5394 71.1881 16.5643 71.0567 16.5856C70.9253 16.6069 70.7993 16.6264 70.6785 16.6442C70.4335 16.6832 70.224 16.7436 70.05 16.8253C69.8795 16.907 69.7481 17.0135 69.6558 17.1449C69.567 17.2727 69.5226 17.4254 69.5226 17.603C69.5226 17.8729 69.6185 18.0788 69.8103 18.2209C70.0056 18.3629 70.2524 18.4339 70.5507 18.4339ZM76.229 20V11.8182H78.7591V13.3097H78.8444C78.9935 12.7699 79.2368 12.3686 79.5741 12.1058C79.9115 11.8395 80.3039 11.7063 80.7513 11.7063C80.8721 11.7063 80.9964 11.7152 81.1242 11.733C81.252 11.7472 81.371 11.7702 81.4811 11.8022V14.0661C81.3568 14.0234 81.1934 13.9897 80.991 13.9648C80.7922 13.94 80.6146 13.9276 80.4584 13.9276C80.1494 13.9276 79.8706 13.9968 79.6221 14.1353C79.377 14.2702 79.1835 14.4602 79.0415 14.7053C78.903 14.9467 78.8337 15.2308 78.8337 15.5575V20H76.229Z",className:"qikbar-logo-primary-fill"}),y.jsx("path",{d:"M19.75 18.75L17.261 16.261M17.261 16.261C17.5744 15.9476 17.823 15.5755 17.9926 15.1661C18.1622 14.7566 18.2495 14.3177 18.2495 13.8745C18.2495 13.4313 18.1622 12.9924 17.9926 12.5829C17.823 12.1735 17.5744 11.8014 17.261 11.488C16.9476 11.1746 16.5755 10.926 16.1661 10.7564C15.7566 10.5868 15.3177 10.4995 14.8745 10.4995C14.4313 10.4995 13.9924 10.5868 13.5829 10.7564C13.1735 10.926 12.8014 11.1746 12.488 11.488C11.8549 12.1211 11.4993 12.9797 11.4993 13.875C11.4993 14.7703 11.8549 15.6289 12.488 16.262C13.1211 16.8951 13.9797 17.2507 14.875 17.2507C15.7703 17.2507 16.6289 16.8951 17.262 16.262L17.261 16.261ZM25 15C25 16.1819 24.7672 17.3522 24.3149 18.4442C23.8626 19.5361 23.1997 20.5282 22.364 21.364C21.5282 22.1997 20.5361 22.8626 19.4442 23.3149C18.3522 23.7672 17.1819 24 16 24C14.8181 24 13.6478 23.7672 12.5558 23.3149C11.4639 22.8626 10.4718 22.1997 9.63604 21.364C8.80031 20.5282 8.13738 19.5361 7.68508 18.4442C7.23279 17.3522 7 16.1819 7 15C7 12.6131 7.94821 10.3239 9.63604 8.63604C11.3239 6.94821 13.6131 6 16 6C18.3869 6 20.6761 6.94821 22.364 8.63604C24.0518 10.3239 25 12.6131 25 15Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"qikbar-logo-primary-stroke"})]})})})})]})})}const Re=Da(t=>({commands:[],router:null,headers:null,id:null,theme:null,addRouter:e=>{t(r=>({router:e}))},addHeaders:e=>{t(()=>({headers:e}))},setId:e=>{t(()=>({id:e}))},setTheme:e=>{t(()=>({theme:e}))},addCommand:e=>{t(r=>({commands:[...r.commands,e]}))},addCommands:e=>{t(r=>({commands:e}))},updateCommand:e=>{t(r=>({commands:r.commands.map(n=>n.id===e.id?e:n)}))},removeCommand:e=>{t(r=>({commands:r.commands.filter(n=>n.id!==e.id)}))}})),ca=new su;function qf({path:t,commands:e,theme:r}){const n=Ni([{path:"/",element:y.jsx(Vi,{demo:!0,defaultOpen:!0,wrapperClass:"qikbar-command-demo-wrapper"}),errorElement:y.jsx(ua,{}),children:e.map(i=>({path:i.path,element:i.type==="STATIC"?y.jsx(Qi,{...i}):y.jsx(la,{...i})}))}],{initialEntries:[t||"/"]});return y.jsx("div",{id:"qikbar",className:`qikbar-demo qikbar-light qikbar-${r}`,children:y.jsx(ds,{client:ca,children:y.jsx(ji,{router:n})})})}function If(){const t=Re(n=>n.commands),e=Re(n=>n.theme),r=Ni([{path:"/",element:y.jsx(Vi,{}),errorElement:y.jsx(ua,{}),children:t.map(n=>({path:n.path,element:n.type==="STATIC"?y.jsx(Qi,{...n}):y.jsx(la,{...n})}))}]);return y.jsx("div",{id:"qikbar",className:`qikbar-light qikbar-${e}`,children:y.jsx(ji,{router:r})})}const da=async t=>fetch(`https://app.qikbar.com/api/site/${t}`).then(r=>r.json()).then(r=>{r!=null&&r.routes&&Re.getState().addCommands(r.routes),r!=null&&r.theme&&Re.getState().setTheme(r.theme),r!=null&&r.id&&Re.getState().setId(r.id)}).catch(r=>{console.error(r)});function Vf({id:t}){return da(t),{id:t,boot:({elementId:r})=>{Ht.createRoot(document.getElementById(r)).render(y.jsx(N.StrictMode,{children:y.jsx(Af,{children:y.jsx(ds,{client:ca,children:y.jsx(If,{})})})})),window.Qikbar.booted=!0},setTheme:r=>Re.getState().setTheme(r),reloadSite:()=>da(t),addCommand:r=>Re.getState().addCommand(r),updateCommand:r=>Re.getState().updateCommand(r),removeCommand:r=>Re.getState().removeCommand(r),addRouter:r=>Re.getState().addRouter(r),addHeaders:r=>Re.getState().addHeaders(r)}}function ha(t){return window.Qikbar=Vf({id:t}),window.addEventListener("message",function(e){var r;(r=e==null?void 0:e.data)!=null&&r.reloadSite&&window.Qikbar.reloadSite()}),window.Qikbar}function Uf({elementId:t,router:e,siteId:r}){return N.useEffect(()=>{if(window.Qikbar)return;const n=ha(r);n.boot({elementId:t||"qikbar"}),e&&n.addRouter(e)},[e,t,r]),t?null:y.jsx("div",{id:"qikbar"})}const fp="";ye.DemoBar=qf,ye.Qikbar=Uf,ye.init=ha,Object.defineProperty(ye,Symbol.toStringTag,{value:"Module"})});
|