@hyperframes/core 0.7.60 → 0.7.61
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/compiler/htmlBundler.d.ts.map +1 -1
- package/dist/compiler/htmlBundler.js +23 -10
- package/dist/compiler/htmlBundler.js.map +1 -1
- package/dist/compositionContract.d.ts +2 -0
- package/dist/compositionContract.d.ts.map +1 -0
- package/dist/compositionContract.js +2 -0
- package/dist/compositionContract.js.map +1 -0
- package/dist/core.types.d.ts +1 -1
- package/dist/core.types.d.ts.map +1 -1
- package/dist/core.types.js +1 -1
- package/dist/core.types.js.map +1 -1
- package/dist/editing/affordances.d.ts +7 -0
- package/dist/editing/affordances.d.ts.map +1 -1
- package/dist/editing/affordances.js +6 -0
- package/dist/editing/affordances.js.map +1 -1
- package/dist/generated/position-edits-render-inline.js +1 -1
- package/dist/generated/runtime-inline.js +1 -1
- package/dist/generated/runtime-inline.js.map +1 -1
- package/dist/generators/hyperframes.d.ts.map +1 -1
- package/dist/generators/hyperframes.js +4 -3
- package/dist/generators/hyperframes.js.map +1 -1
- package/dist/hyperframe.runtime.iife.js +27 -27
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/analytics.d.ts +1 -1
- package/dist/runtime/analytics.d.ts.map +1 -1
- package/dist/runtime/analytics.js.map +1 -1
- package/dist/runtime/getVariables.d.ts +2 -0
- package/dist/runtime/getVariables.d.ts.map +1 -1
- package/dist/runtime/getVariables.js +12 -0
- package/dist/runtime/getVariables.js.map +1 -1
- package/dist/runtime/media.d.ts +91 -0
- package/dist/runtime/media.d.ts.map +1 -0
- package/dist/runtime/media.js +355 -0
- package/dist/runtime/media.js.map +1 -0
- package/dist/runtime/protocol.d.ts +1 -1
- package/dist/runtime/protocol.d.ts.map +1 -1
- package/dist/runtime/protocol.js +1 -0
- package/dist/runtime/protocol.js.map +1 -1
- package/dist/runtime/startExpression.d.ts +1 -15
- package/dist/runtime/startExpression.d.ts.map +1 -1
- package/dist/runtime/startExpression.js +1 -32
- package/dist/runtime/startExpression.js.map +1 -1
- package/dist/runtime/startResolver.d.ts +17 -0
- package/dist/runtime/startResolver.d.ts.map +1 -0
- package/dist/runtime/startResolver.js +172 -0
- package/dist/runtime/startResolver.js.map +1 -0
- package/dist/runtime/types.d.ts +4 -1
- package/dist/runtime/types.d.ts.map +1 -1
- package/package.json +12 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/build-hyperframes-runtime-artifact.ts — do not edit
|
|
2
|
-
const RUNTIME_IIFE = "\"use strict\";(()=>{var $l=Object.create;var ai=Object.defineProperty;var Kl=Object.getOwnPropertyDescriptor;var Jl=Object.getOwnPropertyNames;var Xl=Object.getPrototypeOf,Yl=Object.prototype.hasOwnProperty;var Ql=(e,t,n)=>t in e?ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zl=(e,t,n,i)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let r of Jl(t))!Yl.call(e,r)&&r!==n&&ai(e,r,{get:()=>t[r],enumerable:!(i=Kl(t,r))||i.enumerable});return e};var eu=(e,t,n)=>(n=e!=null?$l(Xl(e)):{},Zl(t||!e||!e.__esModule?ai(n,\"default\",{value:e,enumerable:!0}):n,e));var he=(e,t,n)=>Ql(e,typeof t!=\"symbol\"?t+\"\":t,n);var Uo=ee((Dh,Ni)=>{var J=String,Wo=function(){return{isColorSupported:!1,reset:J,bold:J,dim:J,italic:J,underline:J,inverse:J,hidden:J,strikethrough:J,black:J,red:J,green:J,yellow:J,blue:J,magenta:J,cyan:J,white:J,gray:J,bgBlack:J,bgRed:J,bgGreen:J,bgYellow:J,bgBlue:J,bgMagenta:J,bgCyan:J,bgWhite:J,blackBright:J,redBright:J,greenBright:J,yellowBright:J,blueBright:J,magentaBright:J,cyanBright:J,whiteBright:J,bgBlackBright:J,bgRedBright:J,bgGreenBright:J,bgYellowBright:J,bgBlueBright:J,bgMagentaBright:J,bgCyanBright:J,bgWhiteBright:J}};Ni.exports=Wo();Ni.exports.createColors=Wo});var Li=ee(()=>{});var An=ee((Oh,jo)=>{\"use strict\";var Vo=Uo(),zo=Li(),Gt=class e extends Error{constructor(t,n,i,r,o,a){super(t),this.name=\"CssSyntaxError\",this.reason=t,o&&(this.file=o),r&&(this.source=r),a&&(this.plugin=a),typeof n<\"u\"&&typeof i<\"u\"&&(typeof n==\"number\"?(this.line=n,this.column=i):(this.line=n.line,this.column=n.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+\": \":\"\",this.message+=this.file?this.file:\"<css input>\",typeof this.line<\"u\"&&(this.message+=\":\"+this.line+\":\"+this.column),this.message+=\": \"+this.reason}showSourceCode(t){if(!this.source)return\"\";let n=this.source;t==null&&(t=Vo.isColorSupported);let i=d=>d,r=d=>d,o=d=>d;if(t){let{bold:d,gray:m,red:f}=Vo.createColors(!0);r=x=>d(f(x)),i=x=>m(x),zo&&(o=x=>zo(x))}let a=n.split(/\\r?\\n/),u=Math.max(this.line-3,0),s=Math.min(this.line+2,a.length),l=String(s).length;return a.slice(u,s).map((d,m)=>{let f=u+1+m,x=\" \"+(\" \"+f).slice(-l)+\" | \";if(f===this.line){if(d.length>160){let y=20,b=Math.max(0,this.column-y),A=Math.max(this.column+y,this.endColumn+y),_=d.slice(b,A),T=i(x.replace(/\\d/g,\" \"))+d.slice(0,Math.min(this.column-1,y-1)).replace(/[^\\t]/g,\" \");return r(\">\")+i(x)+o(_)+`\n `+T+r(\"^\")}let S=i(x.replace(/\\d/g,\" \"))+d.slice(0,this.column-1).replace(/[^\\t]/g,\" \");return r(\">\")+i(x)+o(d)+`\n `+S+r(\"^\")}return\" \"+i(x)+o(d)}).join(`\n`)}toString(){let t=this.showSourceCode();return t&&(t=`\n\n`+t+`\n`),this.name+\": \"+this.message+t}};jo.exports=Gt;Gt.default=Gt});var Ri=ee((Bh,$o)=>{\"use strict\";var dc=/(<)(\\/?style\\b)/gi,fc=/(<)(!--)/g;function Ke(e){return typeof e!=\"string\"||!e.includes(\"<\")?e:e.replace(dc,\"\\\\3c $2\").replace(fc,\"\\\\3c $2\")}var qo={after:`\n`,beforeClose:`\n`,beforeComment:`\n`,beforeDecl:`\n`,beforeOpen:\" \",beforeRule:`\n`,colon:\": \",commentLeft:\" \",commentRight:\" \",emptyBody:\"\",indent:\" \",semicolon:!1};function mc(e){return e[0].toUpperCase()+e.slice(1)}var Wt=class{constructor(t){this.builder=t}atrule(t,n){let i=t.raws,r=\"@\"+t.name,o=t.params?this.rawValue(t,\"params\"):\"\";if(typeof i.afterName<\"u\"?r+=i.afterName:o&&(r+=\" \"),t.nodes)this.block(t,r+o);else{let a=(i.between||\"\")+(n?\";\":\"\");this.builder(Ke(r+o+a),t)}}beforeAfter(t,n){let i;t.type===\"decl\"?i=this.raw(t,null,\"beforeDecl\"):t.type===\"comment\"?i=this.raw(t,null,\"beforeComment\"):n===\"before\"?i=this.raw(t,null,\"beforeRule\"):i=this.raw(t,null,\"beforeClose\");let r=t.parent,o=0;for(;r&&r.type!==\"root\";)o+=1,r=r.parent;if(i.includes(`\n`)){let a=this.raw(t,null,\"indent\");if(a.length)for(let u=0;u<o;u++)i+=a}return i}block(t,n){let i=this.raw(t,\"between\",\"beforeOpen\");this.builder(Ke(n+i)+\"{\",t,\"start\");let r;t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,\"after\")):r=this.raw(t,\"after\",\"emptyBody\"),r&&this.builder(Ke(r)),this.builder(\"}\",t,\"end\")}body(t){let n=t.nodes,i=n.length-1;for(;i>0&&n[i].type===\"comment\";)i-=1;let r=this.raw(t,\"semicolon\"),o=t.type===\"document\";for(let a=0;a<n.length;a++){let u=n[a],s=this.raw(u,\"before\");s&&this.builder(o?s:Ke(s)),this.stringify(u,i!==a||r)}}comment(t){let n=this.raw(t,\"left\",\"commentLeft\"),i=this.raw(t,\"right\",\"commentRight\");this.builder(Ke(\"/*\"+n+t.text+i+\"*/\"),t)}decl(t,n){let i=t.raws,r=this.raw(t,\"between\",\"colon\"),o=t.prop+r+this.rawValue(t,\"value\");t.important&&(o+=i.important||\" !important\"),n&&(o+=\";\"),this.builder(Ke(o),t)}document(t){this.body(t)}raw(t,n,i){let r;if(i||(i=n),n&&(r=t.raws[n],typeof r<\"u\"))return r;let o=t.parent;if(i===\"before\"&&(!o||o.type===\"root\"&&o.first===t||o&&o.type===\"document\"))return\"\";if(!o)return qo[i];let a=t.root(),u=a.rawCache||(a.rawCache={});if(typeof u[i]<\"u\")return u[i];if(i===\"before\"||i===\"after\")return this.beforeAfter(t,i);{let s=\"raw\"+mc(i);this[s]?r=this[s](a,t):a.walk(l=>{if(r=l.raws[n],typeof r<\"u\")return!1})}return typeof r>\"u\"&&(r=qo[i]),u[i]=r,r}rawBeforeClose(t){let n;return t.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<\"u\")return n=i.raws.after,n.includes(`\n`)&&(n=n.replace(/[^\\n]+$/,\"\")),!1}),n&&(n=n.replace(/\\S/g,\"\")),n}rawBeforeComment(t,n){let i;return t.walkComments(r=>{if(typeof r.raws.before<\"u\")return i=r.raws.before,i.includes(`\n`)&&(i=i.replace(/[^\\n]+$/,\"\")),!1}),typeof i>\"u\"?i=this.raw(n,null,\"beforeDecl\"):i&&(i=i.replace(/\\S/g,\"\")),i}rawBeforeDecl(t,n){let i;return t.walkDecls(r=>{if(typeof r.raws.before<\"u\")return i=r.raws.before,i.includes(`\n`)&&(i=i.replace(/[^\\n]+$/,\"\")),!1}),typeof i>\"u\"?i=this.raw(n,null,\"beforeRule\"):i&&(i=i.replace(/\\S/g,\"\")),i}rawBeforeOpen(t){let n;return t.walk(i=>{if(i.type!==\"decl\"&&(n=i.raws.between,typeof n<\"u\"))return!1}),n}rawBeforeRule(t){let n;return t.walk(i=>{if(i.nodes&&(i.parent!==t||t.first!==i)&&typeof i.raws.before<\"u\")return n=i.raws.before,n.includes(`\n`)&&(n=n.replace(/[^\\n]+$/,\"\")),!1}),n&&(n=n.replace(/\\S/g,\"\")),n}rawColon(t){let n;return t.walkDecls(i=>{if(typeof i.raws.between<\"u\")return n=i.raws.between.replace(/[^\\s:]/g,\"\"),!1}),n}rawEmptyBody(t){let n;return t.walk(i=>{if(i.nodes&&i.nodes.length===0&&(n=i.raws.after,typeof n<\"u\"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(i=>{let r=i.parent;if(r&&r!==t&&r.parent&&r.parent===t&&typeof i.raws.before<\"u\"){let o=i.raws.before.split(`\n`);return n=o[o.length-1],n=n.replace(/\\S/g,\"\"),!1}}),n}rawSemicolon(t){let n;return t.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type===\"decl\"&&(n=i.raws.semicolon,typeof n<\"u\"))return!1}),n}rawValue(t,n){let i=t[n],r=t.raws[n];return r&&r.value===i?r.raw:i}root(t){if(this.body(t),t.raws.after){let n=t.raws.after,i=t.parent&&t.parent.type===\"document\";this.builder(i?n:Ke(n))}}rule(t){this.block(t,this.rawValue(t,\"selector\")),t.raws.ownSemicolon&&this.builder(Ke(t.raws.ownSemicolon),t,\"end\")}stringify(t,n){if(!this[t.type])throw new Error(\"Unknown AST node type \"+t.type+\". Maybe you need to change PostCSS stringifier.\");this[t.type](t,n)}};$o.exports=Wt;Wt.default=Wt});var Ut=ee((Hh,Ko)=>{\"use strict\";var pc=Ri();function ki(e,t){new pc(t).stringify(e)}Ko.exports=ki;ki.default=ki});var wn=ee((Gh,Di)=>{\"use strict\";Di.exports.isClean=Symbol(\"isClean\");Di.exports.my=Symbol(\"my\")});var jt=ee((Wh,Jo)=>{\"use strict\";var hc=An(),gc=Ri(),xc=Ut(),{isClean:Vt,my:bc}=wn();function Ii(e,t){let n=new e.constructor;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||i===\"proxyCache\")continue;let r=e[i],o=typeof r;i===\"parent\"&&o===\"object\"?t&&(n[i]=t):i===\"source\"?n[i]=r:Array.isArray(r)?n[i]=r.map(a=>Ii(a,n)):(o===\"object\"&&r!==null&&(r=Ii(r)),n[i]=r)}return n}function Ve(e,t){if(t&&typeof t.offset<\"u\")return t.offset;let n=1,i=1,r=0;for(let o=0;o<e.length;o++){if(i===t.line&&n===t.column){r=o;break}e[o]===`\n`?(n=1,i+=1):n+=1}return r}var zt=class{get proxyOf(){return this}constructor(t={}){this.raws={},this[Vt]=!1,this[bc]=!0;for(let n in t)if(n===\"nodes\"){this.nodes=[];for(let i of t[n])typeof i.clone==\"function\"?this.append(i.clone()):this.append(i)}else this[n]=t[n]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\\n\\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\\n\\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let n in t)this[n]=t[n];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let n=Ii(this);for(let i in t)n[i]=t[i];return n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}error(t,n={}){if(this.source){let{end:i,start:r}=this.rangeBy(n);return this.source.input.error(t,{column:r.column,line:r.line},{column:i.column,line:i.line},n)}return new hc(t)}getProxyProcessor(){return{get(t,n){return n===\"proxyOf\"?t:n===\"root\"?()=>t.root().toProxy():t[n]},set(t,n,i){return t[n]===i||(t[n]=i,(n===\"prop\"||n===\"value\"||n===\"name\"||n===\"params\"||n===\"important\"||n===\"text\")&&t.markDirty()),!0}}}markClean(){this[Vt]=!0}markDirty(){if(this[Vt]){this[Vt]=!1;let t=this;for(;t=t.parent;)t[Vt]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let n=this.source.start;if(t.index)n=this.positionInside(t.index);else if(t.word){let i=\"document\"in this.source.input?this.source.input.document:this.source.input.css,o=i.slice(Ve(i,this.source.start),Ve(i,this.source.end)).indexOf(t.word);o!==-1&&(n=this.positionInside(o))}return n}positionInside(t){let n=this.source.start.column,i=this.source.start.line,r=\"document\"in this.source.input?this.source.input.document:this.source.input.css,o=Ve(r,this.source.start),a=o+t;for(let u=o;u<a;u++)r[u]===`\n`?(n=1,i+=1):n+=1;return{column:n,line:i,offset:a}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let n=\"document\"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:Ve(n,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==\"number\"?this.source.end.offset:Ve(n,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(t.word){let a=n.slice(Ve(n,this.source.start),Ve(n,this.source.end)).indexOf(t.word);a!==-1&&(i=this.positionInside(a),r=this.positionInside(a+t.word.length))}else t.start?i={column:t.start.column,line:t.start.line,offset:Ve(n,t.start)}:t.index&&(i=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line,offset:Ve(n,t.end)}:typeof t.endIndex==\"number\"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<i.line||r.line===i.line&&r.column<=i.column)&&(r={column:i.column+1,line:i.line,offset:i.offset+1}),{end:r,start:i}}raw(t,n){return new gc().raw(this,t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let n=this,i=!1;for(let r of t)r===this?i=!0:i?(this.parent.insertAfter(n,r),n=r):this.parent.insertBefore(n,r);i||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!==\"document\";)t=t.parent;return t}toJSON(t,n){let i={},r=n==null;n=n||new Map;let o=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a===\"parent\"||a===\"proxyCache\")continue;let u=this[a];if(Array.isArray(u))i[a]=u.map(s=>typeof s==\"object\"&&s.toJSON?s.toJSON(null,n):s);else if(typeof u==\"object\"&&u.toJSON)i[a]=u.toJSON(null,n);else if(a===\"source\"){if(u==null)continue;let s=n.get(u.input);s==null&&(s=o,n.set(u.input,o),o++),i[a]={end:u.end,inputId:s,start:u.start}}else i[a]=u}return r&&(i.inputs=[...n.keys()].map(a=>a.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=xc){t.stringify&&(t=t.stringify);let n=\"\";return t(this,i=>{n+=i}),n}warn(t,n,i={}){let r={node:this};for(let o in i)r[o]=i[o];return t.warn(n,r)}};Jo.exports=zt;zt.default=zt});var $t=ee((Uh,Xo)=>{\"use strict\";var yc=jt(),qt=class extends yc{constructor(t){super(t),this.type=\"comment\"}};Xo.exports=qt;qt.default=qt});var Jt=ee((Vh,Yo)=>{\"use strict\";var Sc=jt(),Kt=class extends Sc{get variable(){return this.prop.startsWith(\"--\")||this.prop[0]===\"$\"}constructor(t){t&&typeof t.value<\"u\"&&typeof t.value!=\"string\"&&(t={...t,value:String(t.value)}),super(t),this.type=\"decl\"}};Yo.exports=Kt;Kt.default=Kt});var Je=ee((zh,ss)=>{\"use strict\";var Qo=$t(),Zo=Jt(),Ec=jt(),{isClean:es,my:ts}=wn(),Pi,ns,is,Oi;function rs(e){return e.map(t=>(t.nodes&&(t.nodes=rs(t.nodes)),delete t.source,t))}function os(e){if(e[es]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)os(t)}var ke=class e extends Ec{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let n of t){let i=this.normalize(n,this.last);for(let r of i)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),i,r;for(;this.indexes[n]<this.proxyOf.nodes.length&&(i=this.indexes[n],r=t(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[n]+=1;return delete this.indexes[n],r}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,n){return n===\"proxyOf\"?t:t[n]?n===\"each\"||typeof n==\"string\"&&n.startsWith(\"walk\")?(...i)=>t[n](...i.map(r=>typeof r==\"function\"?(o,a)=>r(o.toProxy(),a):r)):n===\"every\"||n===\"some\"?i=>t[n]((r,...o)=>i(r.toProxy(),...o)):n===\"root\"?()=>t.root().toProxy():n===\"nodes\"?t.nodes.map(i=>i.toProxy()):n===\"first\"||n===\"last\"?t[n].toProxy():t[n]:t[n]},set(t,n,i){return t[n]===i||(t[n]=i,(n===\"name\"||n===\"params\"||n===\"selector\")&&t.markDirty()),!0}}}index(t){return typeof t==\"number\"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let i=this.index(t),r=this.normalize(n,this.proxyOf.nodes[i]).reverse();i=this.index(t);for(let a of r)this.proxyOf.nodes.splice(i+1,0,a);let o;for(let a in this.indexes)o=this.indexes[a],i<o&&(this.indexes[a]=o+r.length);return this.markDirty(),this}insertBefore(t,n){let i=this.index(t),r=i===0?\"prepend\":!1,o=this.normalize(n,this.proxyOf.nodes[i],r).reverse();i=this.index(t);for(let u of o)this.proxyOf.nodes.splice(i,0,u);let a;for(let u in this.indexes)a=this.indexes[u],i<=a&&(this.indexes[u]=a+o.length);return this.markDirty(),this}normalize(t,n){if(typeof t==\"string\")t=rs(ns(t).nodes);else if(typeof t>\"u\")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let r of t)r.parent&&r.parent.removeChild(r,\"ignore\")}else if(t.type===\"root\"&&this.type!==\"document\"){t=t.nodes.slice(0);for(let r of t)r.parent&&r.parent.removeChild(r,\"ignore\")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>\"u\")throw new Error(\"Value field is missed in node creation\");typeof t.value!=\"string\"&&(t.value=String(t.value)),t=[new Zo(t)]}else if(t.selector||t.selectors)t=[new Oi(t)];else if(t.name)t=[new Pi(t)];else if(t.text)t=[new Qo(t)];else throw new Error(\"Unknown node type in node creation\");return t.map(r=>(r[ts]||e.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[es]&&os(r),r.raws||(r.raws={}),typeof r.raws.before>\"u\"&&n&&typeof n.raws.before<\"u\"&&(r.raws.before=n.raws.before.replace(/\\S/g,\"\")),r.parent=this.proxyOf,r))}prepend(...t){t=t.reverse();for(let n of t){let i=this.normalize(n,this.first,\"prepend\").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let i in this.indexes)n=this.indexes[i],n>=t&&(this.indexes[i]=n-1);return this.markDirty(),this}replaceValues(t,n,i){return i||(i=n,n={}),this.walkDecls(r=>{n.props&&!n.props.includes(r.prop)||n.fast&&!r.value.includes(n.fast)||(r.value=r.value.replace(t,i))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,i)=>{let r;try{r=t(n,i)}catch(o){throw n.addToError(o)}return r!==!1&&n.walk&&(r=n.walk(t)),r})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((i,r)=>{if(i.type===\"atrule\"&&t.test(i.name))return n(i,r)}):this.walk((i,r)=>{if(i.type===\"atrule\"&&i.name===t)return n(i,r)}):(n=t,this.walk((i,r)=>{if(i.type===\"atrule\")return n(i,r)}))}walkComments(t){return this.walk((n,i)=>{if(n.type===\"comment\")return t(n,i)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((i,r)=>{if(i.type===\"decl\"&&t.test(i.prop))return n(i,r)}):this.walk((i,r)=>{if(i.type===\"decl\"&&i.prop===t)return n(i,r)}):(n=t,this.walk((i,r)=>{if(i.type===\"decl\")return n(i,r)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((i,r)=>{if(i.type===\"rule\"&&t.test(i.selector))return n(i,r)}):this.walk((i,r)=>{if(i.type===\"rule\"&&i.selector===t)return n(i,r)}):(n=t,this.walk((i,r)=>{if(i.type===\"rule\")return n(i,r)}))}};ke.registerParse=e=>{ns=e};ke.registerRule=e=>{Oi=e};ke.registerAtRule=e=>{Pi=e};ke.registerRoot=e=>{is=e};ss.exports=ke;ke.default=ke;ke.rebuild=e=>{e.type===\"atrule\"?Object.setPrototypeOf(e,Pi.prototype):e.type===\"rule\"?Object.setPrototypeOf(e,Oi.prototype):e.type===\"decl\"?Object.setPrototypeOf(e,Zo.prototype):e.type===\"comment\"?Object.setPrototypeOf(e,Qo.prototype):e.type===\"root\"&&Object.setPrototypeOf(e,is.prototype),e[ts]=!0,e.nodes&&e.nodes.forEach(t=>{ke.rebuild(t)})}});var Cn=ee((jh,ls)=>{\"use strict\";var as=Je(),mt=class extends as{constructor(t){super(t),this.type=\"atrule\"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};ls.exports=mt;mt.default=mt;as.registerAtRule(mt)});var Fn=ee((qh,ds)=>{\"use strict\";var Ac=Je(),us,cs,at=class extends Ac{constructor(t){super({type:\"document\",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new us(new cs,this,t).stringify()}};at.registerLazyResult=e=>{us=e};at.registerProcessor=e=>{cs=e};ds.exports=at;at.default=at});var ms=ee(($h,fs)=>{var wc=\"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict\",Cc=(e,t=21)=>(n=t)=>{let i=\"\",r=n|0;for(;r--;)i+=e[Math.random()*e.length|0];return i},Fc=(e=21)=>{let t=\"\",n=e|0;for(;n--;)t+=wc[Math.random()*64|0];return t};fs.exports={nanoid:Fc,customAlphabet:Cc}});var _n=ee(()=>{});var vn=ee(()=>{});var Bi=ee(()=>{});var ps=ee(()=>{});var Gi=ee((n0,xs)=>{\"use strict\";var{existsSync:_c,readFileSync:vc}=ps(),{dirname:Hi,join:Tc}=_n(),{SourceMapConsumer:hs,SourceMapGenerator:gs}=vn();function Mc(e){return Buffer?Buffer.from(e,\"base64\").toString():window.atob(e)}var Xt=class{constructor(t,n){if(n.map===!1)return;n.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,\"data:\");let i=n.map?n.map.prev:void 0,r=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=Hi(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new hs(this.json||this.text)),this.consumerCache}decodeInline(t){let n=/^data:application\\/json;charset=utf-?8;base64,/,i=/^data:application\\/json;base64,/,r=/^data:application\\/json;charset=utf-?8,/,o=/^data:application\\/json,/,a=t.match(r)||t.match(o);if(a)return decodeURIComponent(t.substr(a[0].length));let u=t.match(n)||t.match(i);if(u)return Mc(t.substr(u[0].length));let s=t.slice(22);throw s=s.slice(0,s.indexOf(\",\")),new Error(\"Unsupported source map encoding \"+s)}getAnnotationURL(t){return t.replace(/^\\/\\*\\s*# sourceMappingURL=/,\"\").trim()}isMap(t){return typeof t!=\"object\"?!1:typeof t.mappings==\"string\"||typeof t._mappings==\"string\"||Array.isArray(t.sections)}loadAnnotation(t){let n=t.match(/\\/\\*\\s*# sourceMappingURL=/g);if(!n)return;let i=t.lastIndexOf(n.pop()),r=t.indexOf(\"*/\",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(i,r)))}loadFile(t,n,i){if(!(!i&&!this.unsafeMap&&!/\\.map$/i.test(t))&&(this.root=Hi(t),_c(t)))return this.mapFile=t,vc(t,\"utf-8\").toString().trim()}loadMap(t,n){if(n===!1)return!1;if(n){if(typeof n==\"string\")return n;if(typeof n==\"function\"){let i=n(t);if(i){let r=this.loadFile(i,t,!0);if(!r)throw new Error(\"Unable to load previous source map: \"+i.toString());return r}}else{if(n instanceof hs)return gs.fromSourceMap(n).toString();if(n instanceof gs)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error(\"Unsupported previous source map format: \"+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;t&&(i=Tc(Hi(t),i));let r=this.loadFile(i,t,!1);if(r)try{this.json=JSON.parse(r.replace(/^\\)]}'[^\\n]*\\n/,\"\"))}catch{return}return r}}}startWith(t,n){return t?t.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};xs.exports=Xt;Xt.default=Xt});var Yt=ee((i0,As)=>{\"use strict\";var{nanoid:Nc}=ms(),{isAbsolute:Vi,resolve:zi}=_n(),{SourceMapConsumer:Lc,SourceMapGenerator:Rc}=vn(),{fileURLToPath:bs,pathToFileURL:Tn}=Bi(),ys=An(),kc=Gi(),Wi=Li(),Ui=Symbol(\"lineToIndexCache\"),Dc=!!(Lc&&Rc),Ss=!!(zi&&Vi);function Es(e){if(e[Ui])return e[Ui];let t=e.css.split(`\n`),n=new Array(t.length),i=0;for(let r=0,o=t.length;r<o;r++)n[r]=i,i+=t[r].length+1;return e[Ui]=n,n}var pt=class{get from(){return this.file||this.id}constructor(t,n={}){if(t===null||typeof t>\"u\"||typeof t==\"object\"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]===\"\\uFEFF\"||this.css[0]===\"\\uFFFE\"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,n.document&&(this.document=n.document.toString()),n.from&&(!Ss||/^\\w+:\\/\\//.test(n.from)||Vi(n.from)?this.file=n.from:this.file=zi(n.from)),Ss&&Dc){let i=new kc(this.css,n);if(i.text){this.map=i;let r=i.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=\"<input css \"+Nc(6)+\">\"),this.map&&(this.map.file=this.from)}error(t,n,i,r={}){let o,a,u,s,l;if(n&&typeof n==\"object\"){let m=n,f=i;if(typeof m.offset==\"number\"){s=m.offset;let x=this.fromOffset(s);n=x.line,i=x.col}else n=m.line,i=m.column,s=this.fromLineAndColumn(n,i);if(typeof f.offset==\"number\"){u=f.offset;let x=this.fromOffset(u);a=x.line,o=x.col}else a=f.line,o=f.column,u=this.fromLineAndColumn(f.line,f.column)}else if(i)s=this.fromLineAndColumn(n,i);else{s=n;let m=this.fromOffset(s);n=m.line,i=m.col}let d=this.origin(n,i,a,o);return d?l=new ys(t,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):l=new ys(t,a===void 0?n:{column:i,line:n},a===void 0?i:{column:o,line:a},this.css,this.file,r.plugin),l.input={column:i,endColumn:o,endLine:a,endOffset:u,line:n,offset:s,source:this.css},this.file&&(Tn&&(l.input.url=Tn(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(t,n){return Es(this)[t-1]+n-1}fromOffset(t){let n=Es(this),i=n[n.length-1],r=0;if(t>=i)r=n.length-1;else{let o=n.length-2,a;for(;r<o;)if(a=r+(o-r>>1),t<n[a])o=a-1;else if(t>=n[a+1])r=a+1;else{r=a;break}}return{col:t-n[r]+1,line:r+1}}mapResolve(t){return/^\\w+:\\/\\//.test(t)?t:zi(this.map.consumer().sourceRoot||this.map.root||\".\",t)}origin(t,n,i,r){if(!this.map)return!1;let o=this.map.consumer(),a=o.originalPositionFor({column:n,line:t});if(!a.source)return!1;let u;typeof i==\"number\"&&(u=o.originalPositionFor({column:r,line:i}));let s;Vi(a.source)?s=Tn(a.source):s=new URL(a.source,this.map.consumer().sourceRoot||Tn(this.map.mapFile));let l={column:a.column,endColumn:u&&u.column,endLine:u&&u.line,line:a.line,url:s.toString()};if(s.protocol===\"file:\")if(bs)l.file=bs(s);else throw new Error(\"file: protocol is not available in this PostCSS build\");let d=o.sourceContentFor(a.source);return d&&(l.source=d),l}toJSON(){let t={};for(let n of[\"hasBOM\",\"css\",\"file\",\"id\"])this[n]!=null&&(t[n]=this[n]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}};As.exports=pt;pt.default=pt;Wi&&Wi.registerInput&&Wi.registerInput(pt)});var ht=ee((r0,_s)=>{\"use strict\";var ws=Je(),Cs,Fs,Xe=class extends ws{constructor(t){super(t),this.type=\"root\",this.nodes||(this.nodes=[])}normalize(t,n,i){let r=super.normalize(t);if(n){if(i===\"prepend\")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let o of r)o.raws.before=n.raws.before}return r}removeChild(t,n){let i=this.index(t);return!n&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(t)}toResult(t={}){return new Cs(new Fs,this,t).stringify()}};Xe.registerLazyResult=e=>{Cs=e};Xe.registerProcessor=e=>{Fs=e};_s.exports=Xe;Xe.default=Xe;ws.registerRoot(Xe)});var ji=ee((o0,vs)=>{\"use strict\";var Qt={comma(e){return Qt.split(e,[\",\"],!0)},space(e){let t=[\" \",`\n`,\"\t\"];return Qt.split(e,t)},split(e,t,n){let i=[],r=\"\",o=!1,a=0,u=!1,s=\"\",l=!1;for(let d of e)l?l=!1:d===\"\\\\\"?l=!0:u?d===s&&(u=!1):d==='\"'||d===\"'\"?(u=!0,s=d):d===\"(\"?a+=1:d===\")\"?a>0&&(a-=1):a===0&&t.includes(d)&&(o=!0),o?(r!==\"\"&&i.push(r.trim()),r=\"\",o=!1):r+=d;return(n||r!==\"\")&&i.push(r.trim()),i}};vs.exports=Qt;Qt.default=Qt});var Mn=ee((s0,Ms)=>{\"use strict\";var Ts=Je(),Ic=ji(),gt=class extends Ts{get selectors(){return Ic.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\\s*/):null,i=n?n[0]:\",\"+this.raw(\"between\",\"beforeOpen\");this.selector=t.join(i)}constructor(t){super(t),this.type=\"rule\",this.nodes||(this.nodes=[])}};Ms.exports=gt;gt.default=gt;Ts.registerRule(gt)});var Ls=ee((a0,Ns)=>{\"use strict\";var Pc=Cn(),Oc=$t(),Bc=Jt(),Hc=Yt(),Gc=Gi(),Wc=ht(),Uc=Mn();function Zt(e,t){if(Array.isArray(e))return e.map(r=>Zt(r));let{inputs:n,...i}=e;if(n){t=[];for(let r of n){let o={...r,__proto__:Hc.prototype};o.map&&(o.map={...o.map,__proto__:Gc.prototype}),t.push(o)}}if(i.nodes&&(i.nodes=e.nodes.map(r=>Zt(r,t))),i.source){let{inputId:r,...o}=i.source;i.source=o,r!=null&&(i.source.input=t[r])}if(i.type===\"root\")return new Wc(i);if(i.type===\"decl\")return new Bc(i);if(i.type===\"rule\")return new Uc(i);if(i.type===\"comment\")return new Oc(i);if(i.type===\"atrule\")return new Pc(i);throw new Error(\"Unknown node type: \"+e.type)}Ns.exports=Zt;Zt.default=Zt});var $i=ee((l0,Os)=>{\"use strict\";var{dirname:Nn,relative:ks,resolve:Ds,sep:Is}=_n(),{SourceMapConsumer:Ps,SourceMapGenerator:Ln}=vn(),{pathToFileURL:Rs}=Bi(),Vc=Yt(),zc=!!(Ps&&Ln),jc=!!(Nn&&Ds&&ks&&Is),qi=class{constructor(t,n,i,r){this.stringify=t,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t=\"data:application/json;base64,\"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==\"string\"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation==\"function\"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+\".map\";let n=`\n`;this.css.includes(`\\r\n`)&&(n=`\\r\n`),this.css+=n+\"/*# sourceMappingURL=\"+t+\" */\"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),i=t.root||Nn(t.file),r;this.mapOpts.sourcesContent===!1?(r=new Ps(t.text),r.sourcesContent&&(r.sourcesContent=null)):r=t.consumer(),this.map.applySourceMap(r,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type===\"comment\"&&t.text.startsWith(\"# sourceMappingURL=\")&&this.root.removeChild(n)}else if(this.css){let t;for(;(t=this.css.lastIndexOf(\"/*#\"))!==-1;){let n=this.css.indexOf(\"*/\",t+3);if(n===-1)break;for(;t>0&&this.css[t-1]===`\n`;)t--;this.css=this.css.slice(0,t)+this.css.slice(n+2)}}}}generate(){if(this.clearAnnotation(),jc&&zc&&this.isMap())return this.generateMap();{let t=\"\";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Ln.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Ln({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):\"<no source>\"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css=\"\",this.map=new Ln({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,i=\"<no source>\",r={generated:{column:0,line:0},original:{column:0,line:0},source:\"\"},o,a;this.stringify(this.root,(u,s,l)=>{if(this.css+=u,s&&l!==\"end\"&&(r.generated.line=t,r.generated.column=n-1,s.source&&s.source.start?(r.source=this.sourcePath(s),r.original.line=s.source.start.line,r.original.column=s.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),a=u.match(/\\n/g),a?(t+=a.length,o=u.lastIndexOf(`\n`),n=u.length-o):n+=u.length,s&&l!==\"start\"){let d=s.parent||{raws:{}};(!(s.type===\"decl\"||s.type===\"atrule\"&&!s.nodes)||s!==d.last||d.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=t,r.generated.column=n-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=t,r.generated.column=n-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<\"u\"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<\"u\")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<\"u\"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<\"u\"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<\"u\"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):\"to.css\"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\\w+:\\/\\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let i=this.opts.to?Nn(this.opts.to):\".\";typeof this.mapOpts.annotation==\"string\"&&(i=Nn(Ds(i,this.mapOpts.annotation)));let r=ks(i,t);return this.memoizedPaths.set(t,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new Vc(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let i=n.source.input.from;if(i&&!t[i]){t[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):\"<no source>\";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString(\"base64\"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(Rs){let i=Rs(t).toString();return this.memoizedFileURLs.set(t,i),i}else throw new Error(\"`map.absolute` option is not available in this PostCSS build\")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;Is===\"\\\\\"&&(t=t.replace(/\\\\/g,\"/\"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}};Os.exports=qi});var Gs=ee((u0,Hs)=>{\"use strict\";var Rn=/[\\t\\n\\f\\r \"#'()/;[\\\\\\]{}]/g,kn=/[\\t\\n\\f\\r !\"#'():;@[\\\\\\]{}]|\\/(?=\\*)/g,qc=/.[\\r\\n\"'(/\\\\]/,Bs=/[\\da-f]/i;Hs.exports=function(t,n={}){let i=t.css.valueOf(),r=n.ignoreErrors,o,a,u,s,l,d,m,f,x,S,y=i.length,b=0,A=[],_=[],T=-1;function z(){return b}function P(F){throw t.error(\"Unclosed \"+F,b)}function v(){return _.length===0&&b>=y}function w(F){if(_.length)return _.pop();if(b>=y)return;let L=F?F.ignoreUnclosed:!1;switch(o=i.charCodeAt(b),o){case 10:case 32:case 9:case 13:case 12:{s=b;do s+=1,o=i.charCodeAt(s);while(o===32||o===10||o===9||o===13||o===12);d=[\"space\",i.slice(b,s)],b=s-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let R=String.fromCharCode(o);d=[R,R,b];break}case 40:{if(S=A.length?A.pop()[1]:\"\",x=i.charCodeAt(b+1),S===\"url\"&&x!==39&&x!==34&&x!==32&&x!==10&&x!==9&&x!==12&&x!==13){s=b;do{if(m=!1,s=i.indexOf(\")\",s+1),s===-1)if(r||L){s=b;break}else P(\"bracket\");for(f=s;i.charCodeAt(f-1)===92;)f-=1,m=!m}while(m);d=[\"brackets\",i.slice(b,s+1),b,s],b=s}else b<=T?d=[\"(\",\"(\",b]:(s=i.indexOf(\")\",b+1),a=i.slice(b,s+1),s===-1||qc.test(a)?(T=s===-1?y:s,d=[\"(\",\"(\",b]):(d=[\"brackets\",a,b,s],b=s));break}case 39:case 34:{l=o===39?\"'\":'\"',s=b;do{if(m=!1,s=i.indexOf(l,s+1),s===-1)if(r||L){s=b+1;break}else P(\"string\");for(f=s;i.charCodeAt(f-1)===92;)f-=1,m=!m}while(m);d=[\"string\",i.slice(b,s+1),b,s],b=s;break}case 64:{Rn.lastIndex=b+1,Rn.test(i),Rn.lastIndex===0?s=i.length-1:s=Rn.lastIndex-2,d=[\"at-word\",i.slice(b,s+1),b,s],b=s;break}case 92:{for(s=b,u=!0;i.charCodeAt(s+1)===92;)s+=1,u=!u;if(o=i.charCodeAt(s+1),u&&o!==47&&o!==32&&o!==10&&o!==9&&o!==13&&o!==12&&(s+=1,Bs.test(i.charAt(s)))){for(;Bs.test(i.charAt(s+1));)s+=1;i.charCodeAt(s+1)===32&&(s+=1)}d=[\"word\",i.slice(b,s+1),b,s],b=s;break}default:{o===47&&i.charCodeAt(b+1)===42?(s=i.indexOf(\"*/\",b+2)+1,s===0&&(r||L?s=i.length:P(\"comment\")),d=[\"comment\",i.slice(b,s+1),b,s],b=s):(kn.lastIndex=b+1,kn.test(i),kn.lastIndex===0?s=i.length-1:s=kn.lastIndex-2,d=[\"word\",i.slice(b,s+1),b,s],A.push(d),b=s);break}}return b++,d}function C(F){_.push(F)}return{back:C,endOfFile:v,nextToken:w,position:z}}});var zs=ee((c0,Vs)=>{\"use strict\";var $c=Cn(),Kc=$t(),Jc=Jt(),Xc=ht(),Ws=Mn(),Yc=Gs(),Us={empty:!0,space:!0};function Qc(e){for(let t=e.length-1;t>=0;t--){let n=e[t],i=n[3]||n[2];if(i)return i}}var Ki=class{constructor(t){this.input=t,this.root=new Xc,this.current=this.root,this.spaces=\"\",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new $c;n.name=t[1].slice(1),n.name===\"\"&&this.unnamedAtrule(n,t),this.init(n,t[2]);let i,r,o,a=!1,u=!1,s=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),i=t[0],i===\"(\"||i===\"[\"?l.push(i===\"(\"?\")\":\"]\"):i===\"{\"&&l.length>0?l.push(\"}\"):i===l[l.length-1]&&l.pop(),l.length===0)if(i===\";\"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i===\"{\"){u=!0;break}else if(i===\"}\"){if(s.length>0){for(o=s.length-1,r=s[o];r&&r[0]===\"space\";)r=s[--o];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(t);break}else s.push(t);else s.push(t);if(this.tokenizer.endOfFile()){a=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(n.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(n,\"params\",s),a&&(t=s[s.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between=\"\")):(n.raws.afterName=\"\",n.params=\"\"),u&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let i=0,r;for(let o=n-1;o>=0&&(r=t[o],!(r[0]!==\"space\"&&(i+=1,i===2)));o--);throw this.input.error(\"Missed semicolon\",r[0]===\"word\"?r[3]+1:r[2])}colon(t){let n=0,i,r,o;for(let[a,u]of t.entries()){if(r=u,o=r[0],o===\"(\"&&(n+=1),o===\")\"&&(n-=1),n===0&&o===\":\")if(!i)this.doubleColon(r);else{if(i[0]===\"word\"&&i[1]===\"progid\")continue;return a}i=r}return!1}comment(t){let n=new Kc;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let i=t[1].slice(2,-2);if(!i.trim())n.text=\"\",n.raws.left=i,n.raws.right=\"\";else{let r=i.match(/^(\\s*)([^]*\\S)(\\s*)$/);n.text=r[2],n.raws.left=r[1],n.raws.right=r[3]}}createTokenizer(){this.tokenizer=Yc(this.input)}decl(t,n){let i=new Jc;this.init(i,t[0][2]);let r=t[t.length-1];for(r[0]===\";\"&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(r[3]||r[2]||Qc(t)),i.source.end.offset++;t[0][0]!==\"word\";)t.length===1&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop=\"\";t.length;){let l=t[0][0];if(l===\":\"||l===\"space\"||l===\"comment\")break;i.prop+=t.shift()[1]}i.raws.between=\"\";let o;for(;t.length;)if(o=t.shift(),o[0]===\":\"){i.raws.between+=o[1];break}else o[0]===\"word\"&&/\\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]===\"_\"||i.prop[0]===\"*\")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let a=[],u;for(;t.length&&(u=t[0][0],!(u!==\"space\"&&u!==\"comment\"));)a.push(t.shift());this.precheckMissedSemicolon(t);for(let l=t.length-1;l>=0;l--){if(o=t[l],o[1].toLowerCase()===\"!important\"){i.important=!0;let d=this.stringFrom(t,l);d=this.spacesFromEnd(t)+d,d!==\" !important\"&&(i.raws.important=d);break}else if(o[1].toLowerCase()===\"important\"){let d=t.slice(0),m=\"\";for(let f=l;f>0;f--){let x=d[f][0];if(m.trim().startsWith(\"!\")&&x!==\"space\")break;m=d.pop()[1]+m}m.trim().startsWith(\"!\")&&(i.important=!0,i.raws.important=m,t=d)}if(o[0]!==\"space\"&&o[0]!==\"comment\")break}t.some(l=>l[0]!==\"space\"&&l[0]!==\"comment\")&&(i.raws.between+=a.map(l=>l[1]).join(\"\"),a=[]),this.raw(i,\"value\",a.concat(t),n),i.value.includes(\":\")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error(\"Double colon\",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new Ws;this.init(n,t[2]),n.selector=\"\",n.raws.between=\"\",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.spaces=\"\",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type===\"rule\"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces=\"\",n.source.end=this.getPosition(t[2]),n.source.end.offset+=n.raws.ownSemicolon.length)}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces=\"\",t.type!==\"comment\"&&(this.semicolon=!1)}other(t){let n=!1,i=null,r=!1,o=null,a=[],u=t[1].startsWith(\"--\"),s=[],l=t;for(;l;){if(i=l[0],s.push(l),i===\"(\"||i===\"[\")o||(o=l),a.push(i===\"(\"?\")\":\"]\");else if(u&&r&&i===\"{\")o||(o=l),a.push(\"}\");else if(a.length===0)if(i===\";\")if(r){this.decl(s,u);return}else break;else if(i===\"{\"){this.rule(s);return}else if(i===\"}\"){this.tokenizer.back(s.pop()),n=!0;break}else i===\":\"&&(r=!0);else i===a[a.length-1]&&(a.pop(),a.length===0&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),a.length>0&&this.unclosedBracket(o),n&&r){if(!u)for(;s.length&&(l=s[s.length-1][0],!(l!==\"space\"&&l!==\"comment\"));)this.tokenizer.back(s.pop());this.decl(s,u)}else this.unknownWord(s)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case\"space\":this.spaces+=t[1];break;case\";\":this.freeSemicolon(t);break;case\"}\":this.end(t);break;case\"comment\":this.comment(t);break;case\"at-word\":this.atrule(t);break;case\"{\":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,i,r){let o,a,u=i.length,s=\"\",l=!0,d,m;for(let f=0;f<u;f+=1)o=i[f],a=o[0],a===\"space\"&&f===u-1&&!r?l=!1:a===\"comment\"?(m=i[f-1]?i[f-1][0]:\"empty\",d=i[f+1]?i[f+1][0]:\"empty\",!Us[m]&&!Us[d]?s.slice(-1)===\",\"?l=!1:s+=o[1]:l=!1):s+=o[1];if(!l){let f=i.reduce((x,S)=>x+S[1],\"\");t.raws[n]={raw:f,value:s}}t[n]=s}rule(t){t.pop();let n=new Ws;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,\"selector\",t),this.current=n}spacesAndCommentsFromEnd(t){let n,i=\"\";for(;t.length&&(n=t[t.length-1][0],!(n!==\"space\"&&n!==\"comment\"));)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let n,i=\"\";for(;t.length&&(n=t[0][0],!(n!==\"space\"&&n!==\"comment\"));)i+=t.shift()[1];return i}spacesFromEnd(t){let n,i=\"\";for(;t.length&&(n=t[t.length-1][0],n===\"space\");)i=t.pop()[1]+i;return i}stringFrom(t,n){let i=\"\";for(let r=n;r<t.length;r++)i+=t[r][1];return t.splice(n,t.length-n),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error(\"Unclosed block\",t.line,t.column)}unclosedBracket(t){throw this.input.error(\"Unclosed bracket\",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error(\"Unexpected }\",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error(\"Unknown word \"+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,n){throw this.input.error(\"At-rule without name\",{offset:n[2]},{offset:n[2]+n[1].length})}};Vs.exports=Ki});var In=ee((d0,js)=>{\"use strict\";var Zc=Je(),ed=Yt(),td=zs();function Dn(e,t){let n=new ed(e,t),i=new td(n);try{i.parse()}catch(r){throw r}return i.root}js.exports=Dn;Dn.default=Dn;Zc.registerParse(Dn)});var Ji=ee((f0,qs)=>{\"use strict\";var en=class{constructor(t,n={}){if(this.type=\"warning\",this.text=t,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+\": \"+this.text:this.text}};qs.exports=en;en.default=en});var Pn=ee((m0,$s)=>{\"use strict\";var nd=Ji(),tn=class{get content(){return this.css}constructor(t,n,i){this.processor=t,this.messages=[],this.root=n,this.opts=i,this.css=\"\",this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let i=new nd(t,n);return this.messages.push(i),i}warnings(){return this.messages.filter(t=>t.type===\"warning\")}};$s.exports=tn;tn.default=tn});var Xi=ee((p0,Js)=>{\"use strict\";var Ks={};Js.exports=function(t){Ks[t]||(Ks[t]=!0,typeof console<\"u\"&&console.warn&&console.warn(t))}});var Zi=ee((g0,Zs)=>{\"use strict\";var id=Je(),rd=Fn(),od=$i(),sd=In(),Xs=Pn(),ad=ht(),ld=Ut(),{isClean:Be,my:ud}=wn(),h0=Xi(),cd={atrule:\"AtRule\",comment:\"Comment\",decl:\"Declaration\",document:\"Document\",root:\"Root\",rule:\"Rule\"},dd={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},fd={Once:!0,postcssPlugin:!0,prepare:!0},xt=0;function nn(e){return typeof e==\"object\"&&typeof e.then==\"function\"}function Qs(e){let t=!1,n=cd[e.type];return e.type===\"decl\"?t=e.prop.toLowerCase():e.type===\"atrule\"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+\"-\"+t,xt,n+\"Exit\",n+\"Exit-\"+t]:t?[n,n+\"-\"+t,n+\"Exit\",n+\"Exit-\"+t]:e.append?[n,xt,n+\"Exit\"]:[n,n+\"Exit\"]}function Ys(e){let t;return e.type===\"document\"?t=[\"Document\",xt,\"DocumentExit\"]:e.type===\"root\"?t=[\"Root\",xt,\"RootExit\"]:t=Qs(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Yi(e){return e[Be]=!1,e.nodes&&e.nodes.forEach(t=>Yi(t)),e}var Qi={},Ye=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return\"LazyResult\"}constructor(t,n,i){this.stringified=!1,this.processed=!1;let r;if(typeof n==\"object\"&&n!==null&&(n.type===\"root\"||n.type===\"document\"))r=Yi(n);else if(n instanceof e||n instanceof Xs)r=Yi(n.root),n.map&&(typeof i.map>\"u\"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{let o=sd;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{r=o(n,i)}catch(a){this.processed=!0,this.error=a}r&&!r[ud]&&id.rebuild(r)}this.result=new Xs(t,r,i),this.helpers={...Qi,postcss:Qi,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o==\"object\"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error(\"Use process(css).then(cb) to work with async plugins\")}handleError(t,n){let i=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name===\"CssSyntaxError\"&&!t.plugin?(t.plugin=i.postcssPlugin,t.setMessage()):i.postcssVersion}catch(r){console&&console.error&&console.error(r)}return t}prepareVisitors(){this.listeners={};let t=(n,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([n,r])};for(let n of this.plugins)if(typeof n==\"object\")for(let i in n){if(!dd[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!fd[i])if(typeof n[i]==\"object\")for(let r in n[i])r===\"*\"?t(n,i,n[i][r]):t(n,i+\"-\"+r.toLowerCase(),n[i][r]);else typeof n[i]==\"function\"&&t(n,i,n[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],i=this.runOnRoot(n);if(nn(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Be];){t[Be]=!0;let n=[Ys(t)];for(;n.length>0;){let i=this.visitTick(n);if(nn(i))try{await i}catch(r){let o=n[n.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[n,i]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type===\"document\"){let r=t.nodes.map(o=>i(o,this.helpers));await Promise.all(r)}else await i(t,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t==\"object\"&&t.Once){if(this.result.root.type===\"document\"){let n=this.result.root.nodes.map(i=>t.Once(i,this.helpers));return nn(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t==\"function\")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=ld;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let i=this.result.root.source;if(t.map===void 0&&!(i&&i.input&&i.input.map)){let a=\"\";return n(this.result.root,u=>{a+=u}),this.result.css=a,this.result}let o=new od(n,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(nn(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Be];)t[Be]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type===\"document\")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[i,r]of t){this.result.lastPlugin=i;let o;try{o=r(n,this.helpers)}catch(a){throw this.handleError(a,n.proxyOf)}if(n.type!==\"root\"&&n.type!==\"document\"&&!n.parent)return!0;if(nn(o))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:i,visitors:r}=n;if(i.type!==\"root\"&&i.type!==\"document\"&&!i.parent){t.pop();return}if(r.length>0&&n.visitorIndex<r.length){let[a,u]=r[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===r.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=a;try{return u(i.toProxy(),this.helpers)}catch(s){throw this.handleError(s,i)}}if(n.iterator!==0){let a=n.iterator,u;for(;u=i.nodes[i.indexes[a]];)if(i.indexes[a]+=1,!u[Be]){u[Be]=!0,t.push(Ys(u));return}n.iterator=0,delete i.indexes[a]}let o=n.events;for(;n.eventIndex<o.length;){let a=o[n.eventIndex];if(n.eventIndex+=1,a===xt){i.nodes&&i.nodes.length&&(i[Be]=!0,n.iterator=i.getIterator());return}else if(this.listeners[a]){n.visitors=this.listeners[a];return}}t.pop()}walkSync(t){t[Be]=!0;let n=Qs(t);for(let i of n)if(i===xt)t.nodes&&t.each(r=>{r[Be]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,t.toProxy()))return}}warnings(){return this.sync().warnings()}};Ye.registerPostcss=e=>{Qi=e};Zs.exports=Ye;Ye.default=Ye;ad.registerLazyResult(Ye);rd.registerLazyResult(Ye)});var ta=ee((b0,ea)=>{\"use strict\";var md=$i(),pd=In(),hd=Pn(),gd=Ut(),x0=Xi(),rn=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,n=pd;try{t=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return\"NoWorkResult\"}constructor(t,n,i){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=i,this._map=void 0;let r=gd;this.result=new hd(this._processor,void 0,this._opts),this.result.css=n;let o=this;Object.defineProperty(this.result,\"root\",{get(){return o.root}});let a=new md(r,void 0,this._opts,n);if(a.isMap()){let[u,s]=a.generate();u&&(this.result.css=u),s&&(this.result.map=s)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,n){return this.async().then(t,n)}toString(){return this._css}warnings(){return[]}};ea.exports=rn;rn.default=rn});var ia=ee((y0,na)=>{\"use strict\";var xd=Fn(),bd=Zi(),yd=ta(),Sd=ht(),lt=class{constructor(t=[]){this.version=\"8.5.14\",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let i of t)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i==\"object\"&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if(typeof i==\"object\"&&i.postcssPlugin)n.push(i);else if(typeof i==\"function\")n.push(i);else if(!(typeof i==\"object\"&&(i.parse||i.stringify)))throw new Error(i+\" is not a PostCSS plugin\");return n}process(t,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new yd(this,t,n):new bd(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};na.exports=lt;lt.default=lt;Sd.registerProcessor(lt);xd.registerProcessor(lt)});var da=ee((S0,ca)=>{\"use strict\";var ra=Cn(),oa=$t(),Ed=Je(),Ad=An(),sa=Jt(),aa=Fn(),wd=Ls(),Cd=Yt(),Fd=Zi(),_d=ji(),vd=jt(),Td=In(),er=ia(),Md=Pn(),la=ht(),ua=Mn(),Nd=Ut(),Ld=Ji();function ae(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new er(e)}ae.plugin=function(t,n){let i=!1;function r(...a){console&&console.warn&&!i&&(i=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith(\"cn\")&&console.warn(t+`: \\u91CC\\u9762 postcss.plugin \\u88AB\\u5F03\\u7528. \\u8FC1\\u79FB\\u6307\\u5357:\nhttps://www.w3ctech.com/topic/2226`));let u=n(...a);return u.postcssPlugin=t,u.postcssVersion=new er().version,u}let o;return Object.defineProperty(r,\"postcss\",{get(){return o||(o=r()),o}}),r.process=function(a,u,s){return ae([r(s)]).process(a,u)},r};ae.stringify=Nd;ae.parse=Td;ae.fromJSON=wd;ae.list=_d;ae.comment=e=>new oa(e);ae.atRule=e=>new ra(e);ae.decl=e=>new sa(e);ae.rule=e=>new ua(e);ae.root=e=>new la(e);ae.document=e=>new aa(e);ae.CssSyntaxError=Ad;ae.Declaration=sa;ae.Container=Ed;ae.Processor=er;ae.Document=aa;ae.Comment=oa;ae.Warning=Ld;ae.AtRule=ra;ae.Result=Md;ae.Input=Cd;ae.Rule=ua;ae.Root=la;ae.Node=vd;Fd.registerPostcss(ae);ca.exports=ae;ae.default=ae});function pn(){return globalThis}function M(e,t){if(typeof window>\"u\")return;let n=pn(),i=n.__hf?.onSwallowed;if(i)try{i({label:e,error:t})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${e} swallowed:`,t)}var tu=[\"seconds-time\",\"rational-fps\",\"seek-keep-playing\"];function nu(e,t){let n=Math.abs(e),i=Math.abs(t);for(;i!==0;){let r=n%i;n=i,i=r}return n||1}function iu(e){let t=Number.isFinite(e)&&e>0?e:30,n=Number.isInteger(t)?1:1e6,i=Math.round(t*n),r=nu(i,n);return{numerator:i/r,denominator:n/r}}function li(e){if(typeof e!=\"object\"||e===null)return null;let t=e;return!Number.isFinite(t.numerator)||!Number.isFinite(t.denominator)||(t.numerator??0)<=0||(t.denominator??0)<=0?null:Number(t.numerator)/Number(t.denominator)}function jr(e){return{protocolVersion:1,capabilities:tu,fps:iu(e)}}function ru(e){return Array.isArray(e)&&e.every(t=>typeof t==\"string\")}function qr(e,t=30){if(typeof e!=\"object\"||e===null)return{status:\"legacy\",fps:t};let n=e;if(n.protocolVersion===void 0)return{status:\"legacy\",fps:t};if(n.protocolVersion!==1)return{status:\"unsupported\",code:\"unsupported_protocol_version\",receivedVersion:n.protocolVersion};let i=li(n.fps);return i===null||!ru(n.capabilities)?{status:\"unsupported\",code:\"invalid_protocol_metadata\",receivedVersion:n.protocolVersion}:{status:\"supported\",fps:i,metadata:n}}var $r=30;function Kr(e){$r=Number.isFinite(e)&&e>0?e:30}function xe(e){try{window.parent.postMessage({...e,...jr($r)},\"*\")}catch(t){M(\"bridge.postMessage\",t)}}var ou={play:(e,t)=>t.onPlay(),pause:(e,t)=>t.onPause(),\"stop-media\":(e,t)=>t.onStopMedia(),seek:(e,t)=>t.onSeek(su(e,t),e.seekMode??\"commit\"),tick:(e,t)=>t.onTick(),\"set-muted\":(e,t)=>t.onSetMuted(!!e.muted),\"set-volume\":(e,t)=>t.onSetVolume(Math.max(0,Math.min(1,Number(e.volume??1)))),\"set-media-output-muted\":(e,t)=>t.onSetMediaOutputMuted(!!e.muted),\"set-native-media-sync-disabled\":(e,t)=>t.onSetNativeMediaSyncDisabled(!!e.disabled),\"set-web-audio-media-disabled\":(e,t)=>t.onSetWebAudioMediaDisabled(!!e.disabled),\"set-playback-rate\":(e,t)=>t.onSetPlaybackRate(Number(e.playbackRate??1)),\"set-root-duration\":(e,t)=>t.onSetRootDuration(Number(e.durationSeconds??0)),\"set-color-grading\":(e,t)=>t.onSetColorGrading(e.target??null,e.grading??null),\"set-color-grading-compare\":(e,t)=>t.onSetColorGradingCompare(e.target??null,e.compare??null),\"enable-pick-mode\":(e,t)=>t.onEnablePickMode(),\"disable-pick-mode\":(e,t)=>t.onDisablePickMode(),\"flash-elements\":e=>lu(e)};function su(e,t){let n=Number(e.timeSeconds);if(Number.isFinite(n))return Math.max(0,n);let r=li(e.fps)??t.getCanonicalFps();return Math.max(0,Number(e.frame??0))/r}function au(e){let t=qr(e);return t.status!==\"unsupported\"?!1:(xe({source:\"hf-preview\",type:\"diagnostic\",code:`runtime.protocol.${t.code}`,details:{receivedVersion:typeof t.receivedVersion==\"string\"||typeof t.receivedVersion==\"number\"?t.receivedVersion:null}}),!0)}function lu(e){let t=e.selectors,n=e.duration||800;t&&uu(t,n)}function Jr(e){let t=n=>{let i=n.data;if(!i||i.source!==\"hf-parent\"||i.type!==\"control\"||au(i))return;let r=i.action;if(typeof r!=\"string\")return;let o=ou[r];o&&o(i,e)};return window.addEventListener(\"message\",t),xe({source:\"hf-preview\",type:\"ready\"}),t}function uu(e,t){if(!document.getElementById(\"__hf-flash-styles\")){let n=document.createElement(\"style\");n.id=\"__hf-flash-styles\",n.textContent=`\n .__hf-flash {\n outline: 2px solid rgba(59, 130, 246, 0.6) !important;\n outline-offset: 2px !important;\n animation: __hf-flash-pulse ${t}ms ease-out forwards !important;\n }\n @keyframes __hf-flash-pulse {\n 0% { outline-color: rgba(59, 130, 246, 0.8); }\n 100% { outline-color: transparent; }\n }\n `,document.head.appendChild(n)}for(let n of e)try{document.querySelectorAll(n).forEach(r=>{r.classList.add(\"__hf-flash\"),setTimeout(()=>r.classList.remove(\"__hf-flash\"),t)})}catch(i){M(\"bridge.flashElements.querySelector\",i)}}var ui=null;function Xr(e){ui=e}function ot(e,t){if(ui)try{ui({source:\"hf-preview\",type:\"analytics\",event:e,properties:t??{}})}catch(n){M(\"runtime.analytics.site1\",n)}}function cu(e){let t=e.toLowerCase().replace(/[^a-z0-9]+/g,\"-\"),n=0,i=t.length;for(;n<i&&t[n]===\"-\";)n++;for(;i>n&&t[i-1]===\"-\";)i--;let r=t.slice(n,i);return r.length>0?r:\"node\"}function Mt(e){return`--${cu(e)}`}function Yr(e){let t=new Map;for(let n of e){let i=Mt(n),r=t.get(i);r?r.includes(n)||r.push(n):t.set(i,[n])}return[...t.values()].filter(n=>n.length>1)}function Qr(){if(typeof document>\"u\")return{};let e=new Set;document.documentElement?.hasAttribute(\"data-composition-variables\")&&e.add(document.documentElement);for(let i of Array.from(document.querySelectorAll(\"[data-composition-variables]\")))e.add(i);let t={};for(let i of e)Object.assign(t,Nt(i));let n=hn();return{...t,...n}}function Nt(e){if(!e)return{};let t=e.getAttribute(\"data-composition-variables\");if(!t)return{};let n;try{n=JSON.parse(t)}catch{return{}}if(!Array.isArray(n))return{};let i={};for(let r of n){if(!r||typeof r!=\"object\")continue;let o=r;typeof o.id!=\"string\"||!(\"default\"in o)||(i[o.id]=o.default)}return i}var ci=\"data-hf-css-vars\";function di(e){return\"style\"in e&&typeof e.style?.setProperty==\"function\"}function fi(e,t){if(!di(e))return;let n=[];for(let[i,r]of Object.entries(t))if(typeof r==\"string\"&&r!==\"\"||typeof r==\"number\"){let o=Mt(i);e.style.setProperty(o,String(r)),n.push(o)}n.length>0&&e.setAttribute(ci,n.join(\" \"))}function Zr(e){if(!di(e))return;let t=e.getAttribute(ci);if(t){for(let n of t.split(\" \"))n.startsWith(\"--\")&&e.style.removeProperty(n);e.removeAttribute(ci)}}function eo(e){let t=new Set;e.documentElement?.hasAttribute(\"data-composition-variables\")&&t.add(e.documentElement);for(let r of Array.from(e.querySelectorAll(\"[data-composition-variables]\")))t.add(r);let n=hn(),i=[];for(let r of t)i.push(...du(r,n,e.defaultView));for(let r of Yr(i))console.warn(`composition variables ${r.join(\", \")} collapse to the same CSS property ${Mt(r[0]??\"\")} \\u2014 rename one to avoid cross-talk`)}function du(e,t,n){if(!di(e))return[];let i=Nt(e),r={};for(let[o,a]of Object.entries(i)){if(o in t)continue;let u=Mt(o);(e.style.getPropertyValue(u)||(n?n.getComputedStyle(e).getPropertyValue(u):\"\")).trim()===\"\"&&(r[o]=a)}for(let[o,a]of Object.entries(t))o in i&&(r[o]=a);return fi(e,r),Object.keys(i)}function to(e){let t=e.getAttribute(\"data-variable-values\");if(!t)return{};let n;try{n=JSON.parse(t)}catch{return{}}return!n||typeof n!=\"object\"||Array.isArray(n)?{}:n}function hn(){if(typeof window>\"u\")return{};let e=window.__hfVariables;return!e||typeof e!=\"object\"||Array.isArray(e)?{}:e}function no(e){let t=[],n=l=>{if(typeof l.getAnimations!=\"function\")return[];try{return l.getAnimations()}catch{return[]}},i=l=>e?.resolveStartSeconds?e.resolveStartSeconds(l):Number.parseFloat(l.getAttribute(\"data-start\")??\"0\")||0,r=(l,d)=>{let m=null;try{m=l.effect?.getComputedTiming?.()??null}catch(x){M(\"runtime.adapters.css.site5\",x)}if(!m)return{};let f=Number(m.endTime);return Number.isFinite(f)?{endSeconds:d+f/1e3}:{unbounded:!0}},o=(l,d)=>{for(let m of l){try{m.currentTime=d}catch(f){M(\"runtime.adapters.css.site1\",f)}try{m.pause()}catch(f){M(\"runtime.adapters.css.site2\",f)}}},a=l=>{for(let d of l)try{d.play()}catch(m){M(\"runtime.adapters.css.site3\",m)}},u=l=>{for(let d of l)try{d.pause()}catch(m){M(\"runtime.adapters.css.site4\",m)}},s=l=>{l.baseDelay?l.el.style.animationDelay=l.baseDelay:l.el.style.removeProperty(\"animation-delay\"),l.basePlayState?l.el.style.animationPlayState=l.basePlayState:l.el.style.removeProperty(\"animation-play-state\")};return{name:\"css\",discover:()=>{t=[];let l=document.querySelectorAll(\"*\");for(let d of l){if(!(d instanceof HTMLElement))continue;let m=window.getComputedStyle(d);!m.animationName||m.animationName===\"none\"||t.push({el:d,baseDelay:d.style.animationDelay||\"\",basePlayState:d.style.animationPlayState||\"\",animations:n(d)})}},getInferredDurationSeconds:()=>{let l=0;for(let d of t){if(!d.el.isConnected)continue;let m=i(d.el);for(let f of n(d.el)){let x=r(f,m);x.endSeconds!=null&&(l=Math.max(l,x.endSeconds))}}return l>0?l:null},seek:l=>{let d=Number(l.time)||0;for(let m of t){if(!m.el.isConnected)continue;let f=i(m.el),x=Math.max(0,d-f)*1e3,S=m.animations;if(S.length>0){o(S,x);continue}m.el.style.animationPlayState=\"paused\",m.el.style.animationDelay=`-${(x/1e3).toFixed(3)}s`}},pause:()=>{for(let l of t){if(!l.el.isConnected)continue;let d=l.animations;d.length>0&&u(d),s(l)}},play:()=>{for(let l of t)l.el.isConnected&&(s(l),a(l.animations))},revert:()=>{t=[]}}}function io(e){return{name:\"gsap\",discover:()=>{},seek:t=>{let n=e.getTimeline();if(!n)return;n.pause();let i=Math.max(0,Number(t.time)||0),r=t.suppressEvents===!0;typeof n.totalTime==\"function\"?(n.totalTime(i+.001,!0),n.totalTime(i,r)):n.seek(i,r)},pause:()=>{let t=e.getTimeline();t&&t.pause()}}}function ro(){return{name:\"animejs\",discover:()=>{try{let e=window.anime;if(!e||typeof e.running>\"u\")return;let t=e.running;if(!Array.isArray(t)||t.length===0)return;let n=window.__hfAnime??[],i=new Set(n);for(let r of t)i.has(r)||n.push(r);window.__hfAnime=n}catch(e){M(\"runtime.adapters.animejs.site1\",e)}},seek:e=>{let t=Math.max(0,(Number(e.time)||0)*1e3),n=window.__hfAnime;if(!(!n||n.length===0))for(let i of n)try{typeof i.seek==\"function\"&&i.seek(t)}catch(r){M(\"runtime.adapters.animejs.site2\",r)}},pause:()=>{let e=window.__hfAnime;if(!(!e||e.length===0))for(let t of e)try{typeof t.pause==\"function\"&&t.pause()}catch(n){M(\"runtime.adapters.animejs.site3\",n)}},play:()=>{let e=window.__hfAnime;if(!(!e||e.length===0))for(let t of e)try{typeof t.play==\"function\"&&t.play()}catch(n){M(\"runtime.adapters.animejs.site4\",n)}},revert:()=>{}}}function so(){return{name:\"lottie\",discover:()=>{try{let e=window.lottie;if(e&&typeof e.getRegisteredAnimations==\"function\"){let t=e.getRegisteredAnimations();if(Array.isArray(t)&&t.length>0){let n=window.__hfLottie??[],i=new Set(n);for(let r of t)i.has(r)||n.push(r);window.__hfLottie=n}}}catch(e){M(\"runtime.adapters.lottie.site1\",e)}},seek:e=>{let t=Math.max(0,Number(e.time)||0),n=window.__hfLottie;if(!(!n||n.length===0))for(let i of n)try{if(mi(i))i.goToAndStop(t*1e3,!1);else if(pi(i)){if(typeof i.setCurrentRawFrameValue==\"function\"){let r=i.totalFrames??0,o=i.frameRate??30,a=t*o;r>0&&i.setCurrentRawFrameValue(Math.min(a,r-1))}else if(typeof i.seek==\"function\"){let r=i.duration??1,o=Math.min(100,t/r*100);i.seek(o)}}}catch(r){M(\"runtime.adapters.lottie.site2\",r)}},pause:()=>{let e=window.__hfLottie;if(!(!e||e.length===0))for(let t of e)try{(mi(t)||pi(t))&&t.pause()}catch(n){M(\"runtime.adapters.lottie.site3\",n)}},revert:()=>{},getInferredDurationSeconds:()=>{let e=window.__hfLottie;if(!e||e.length===0)return null;let t=0,n=!1;for(let i of e){let r=null;try{r=fu(i)}catch(o){M(\"runtime.adapters.lottie.site4\",o)}r!=null&&(n=!0,t=Math.max(t,r))}return n?t:null}}}function oo(e,t){return!Number.isFinite(e)||!e||e<=0||!Number.isFinite(t)||!t||t<=0?null:e/t}function fu(e){return mi(e)?oo(e.totalFrames,e.frameRate):pi(e)?Number.isFinite(e.duration)&&(e.duration??0)>0?e.duration??null:oo(e.totalFrames,e.frameRate):null}function mi(e){return typeof e==\"object\"&&e!==null&&typeof e.goToAndStop==\"function\"}function pi(e){return typeof e==\"object\"&&e!==null&&typeof e.pause==\"function\"&&(\"totalFrames\"in e||\"duration\"in e)}var hi=-1;function gn(e){if(e!==hi){hi=e;try{window.dispatchEvent(new CustomEvent(\"hf-seek\",{detail:{time:e}}))}catch(t){M(\"runtime.adapters.seek-dispatch.site1\",t)}}}function ao(e){hi=e;try{window.dispatchEvent(new CustomEvent(\"hf-seek\",{detail:{time:e}}))}catch(t){M(\"runtime.adapters.seek-dispatch.force\",t)}}function lo(){let e=null,t=0,n=null,i=null,r=null,o=null,a=()=>{if(typeof window>\"u\")return null;let d=window.THREE?.DefaultLoadingManager;return!d||typeof d!=\"object\"||typeof d.itemsLoaded!=\"number\"||typeof d.itemsTotal!=\"number\"?null:d},u=l=>{o||l.itemsTotal<=l.itemsLoaded||(o=new Promise(d=>{l.onLoad=function(){try{r?.call(this)}finally{o=null,l.onLoad=r??null,d()}}}))},s=l=>{n!==l&&(n=l,i=l.onStart??null,r=l.onLoad??null,l.onStart=function(d,m,f){try{i?.call(this,d,m,f)}finally{u(l)}})};return{name:\"three\",discover:()=>{let l=a();l&&(s(l),u(l))},seek:l=>{e=Math.max(0,Number(l.time)||0),t=e,window.__hfThreeTime=e,gn(e)},pause:()=>{e==null&&(e=Math.max(0,t))},play:()=>{e=null},revert:()=>{e=null,t=0},getReadyPromise:()=>{let l=a();return!l||l.itemsTotal<=l.itemsLoaded?null:(o||u(l),o)}}}function Oe(e){let t=null,n=new WeakSet;return{name:e.name,discover:()=>{},seek:()=>{},pause:()=>{},play:()=>{},revert:()=>{},getReadyPromise:()=>{let i=e.getInstances();if(i.length===0)return null;let r=i.filter(o=>!n.has(o));return r.length===0?null:t||(t=Promise.allSettled(r.map(o=>e.waitFor(o).then(()=>{n.add(o)}))).then(()=>{t=null}),t)}}}function uo(){return Oe({name:\"mapbox\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfMapbox;return Array.isArray(e)?e:[]},waitFor:e=>new Promise(t=>{if(e.loaded()){t();return}e.on(\"load\",t)})})}function co(){return Oe({name:\"leaflet\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfLeaflet;return Array.isArray(e)?e:[]},waitFor:e=>new Promise(t=>e.whenReady(t))})}function fo(){return Oe({name:\"google-maps\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfGoogleMaps;return Array.isArray(e)?e:[]},waitFor:e=>new Promise(t=>{let n=e.addListener(\"tilesloaded\",()=>{n.remove(),t()})})})}function mo(){return Oe({name:\"maplibre\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfMaplibre;return Array.isArray(e)?e:[]},waitFor:e=>new Promise(t=>{if(e.loaded()){t();return}e.on(\"load\",t)})})}function po(){return Oe({name:\"d3\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfD3;return Array.isArray(e)?e:[]},waitFor:e=>e.end()})}function ho(){let e=null,t=0;return{name:\"typegpu\",discover:()=>{},seek:n=>{e=Math.max(0,Number(n.time)||0),t=e,window.__hfTypegpuTime=e,gn(e)},pause:()=>{e==null&&(e=Math.max(0,t))},play:()=>{e=null},revert:()=>{e=null,t=0}}}function go(e){let t=e.nextElementSibling;if(t instanceof HTMLImageElement&&t.classList.contains(\"__render_frame__\")&&t.complete&&t.naturalWidth>0)return t;if(e.id){let n=document.getElementById(`__render_frame_${e.id}__`);if(n instanceof HTMLImageElement&&n.complete&&n.naturalWidth>0)return n}return null}function xo(){let e=globalThis.GPUQueue;if(!e?.prototype?.copyExternalImageToTexture)return;let t=e.prototype.copyExternalImageToTexture;e.prototype.copyExternalImageToTexture=function(n,i,r){if(n?.source instanceof HTMLVideoElement){let o=go(n.source);if(o)return t.call(this,{...n,source:o},i,r)}return t.call(this,n,i,r)}}function bo(){let e=[globalThis.WebGL2RenderingContext,globalThis.WebGLRenderingContext],t=[\"texImage2D\",\"texSubImage2D\"];for(let n of e){let i=n?.prototype;if(i)for(let r of t){let o=i[r];if(typeof o!=\"function\"||o.__hfVideoPatched)continue;let a=function(...u){let s=u.length-1,l=u[s];if(l instanceof HTMLVideoElement){let d=go(l);d&&(u[s]=d)}return o.apply(this,u)};a.__hfVideoPatched=!0,i[r]=a}}}function yo(){let e=!1,t=0,n=!1,i,r,o,a=new Set,u=new WeakMap,s=()=>{if(!document.getAnimations)return[];try{return document.getAnimations()}catch{return[]}},l=b=>{let A=Number(b.currentTime);return Number.isFinite(A)&&A>0?A:0},d=(b,A)=>A<=0?b:b>=A?Math.max(0,b-A):b,m=(b,A)=>{let _=u.get(b);if(_)return _;let T={compositionTimeMs:A,animationTimeMs:e?d(l(b),A):l(b)};return u.set(b,T),T},f=(b,A)=>{if(!a.has(b)){a.add(b);let _=()=>{a.delete(b)};try{b.addEventListener(\"finish\",_,{once:!0}),b.addEventListener(\"cancel\",_,{once:!0})}catch(T){M(\"runtime.adapters.waapi.site4\",T)}}m(b,A)},x=(b,A)=>{for(let _ of b)f(_,A)},S=()=>{if(n||typeof Element>\"u\")return;let b=Element.prototype;if(typeof b.animate!=\"function\"||b.__hfOriginalAnimate)return;let A=b.animate;try{Object.defineProperty(b,\"__hfOriginalAnimate\",{value:A,configurable:!0});let _=function(...T){let z=A.apply(this,T);return f(z,t),z};b.animate=_,i=b,r=A,o=_,n=!0}catch{}},y=b=>{let A=null;try{A=b.effect?.getComputedTiming?.()??null}catch(z){M(\"runtime.adapters.waapi.site4\",z)}if(!A)return{};let _=Number(A.endTime);return Number.isFinite(_)?{endSeconds:(u.get(b)?.compositionTimeMs??0)/1e3+_/1e3}:{unbounded:!0}};return{name:\"waapi\",discover:()=>{e=!0,S(),x(s(),t)},seek:b=>{let A=Math.max(0,(Number(b.time)||0)*1e3);t=A,(!e||a.size>0)&&x(s(),e?A:0);for(let _ of a){let T=e?m(_,A):m(_,0),z=T.animationTimeMs+Math.max(0,A-T.compositionTimeMs);try{_.currentTime=z}catch(P){M(\"runtime.adapters.waapi.site1\",P)}try{_.pause()}catch(P){M(\"runtime.adapters.waapi.site2\",P)}}},pause:()=>{e||x(s(),t);for(let b of a)try{b.pause()}catch(A){M(\"runtime.adapters.waapi.site3\",A)}},revert:()=>{if(a.clear(),u=new WeakMap,e=!1,t=0,i&&r&&o&&i.animate===o)try{i.animate=r,i.__hfOriginalAnimate===r&&delete i.__hfOriginalAnimate}catch(b){M(\"runtime.adapters.waapi.site5\",b)}i=void 0,r=void 0,o=void 0,n=!1},getInferredDurationSeconds:()=>{let b=0;for(let A of s()){let _=y(A);_.endSeconds!=null&&(b=Math.max(b,_.endSeconds))}return b>0?b:null}}}function So(e,t){if(e.length===0)return 1;let n=0;for(;n<e.length-2&&t>=e[n+1].time;)n+=1;let i=e[n],r=e[n+1]??i,o=r.time-i.time,a=o<=0?0:Math.min(1,Math.max(0,(t-i.time)/o));return i.volume+(r.volume-i.volume)*a}function mu(e,t,n,i){let r=Number.parseFloat(e.dataset.start??\"0\")||0,o=Number.parseFloat(e.dataset.end??\"\"),a=Number.parseFloat(e.dataset.duration??\"\"),u=Number.isFinite(o)&&o>r?o:Number.isFinite(a)&&a>0?r+a:n,s=Number.parseFloat(e.dataset.volume??\"\"),l=Number.isFinite(s)?Math.max(0,Math.min(1,s)):1;e.volume=l;let d=1/Math.min(60,Math.max(1,i)),m=Math.max(0,r),f=Math.min(n,u),x=[];for(let y=m;y<=f+1e-6;y+=d){let b=Math.min(f,y);t(b);let A=Number(e.volume);if(!Number.isFinite(A))continue;let _=Math.max(0,Math.min(1,A)),T=x.at(-1);if((!T||Math.abs(T.volume-_)>1e-4||b===f)&&x.push({time:Number(b.toFixed(6)),volume:Number(_.toFixed(6))}),b===f)break}return x.some(y=>Math.abs(y.volume-l)>1e-4)?x:null}function Eo(e,t,n,i){if(!t||!(e instanceof HTMLAudioElement)&&!(e instanceof HTMLVideoElement)||n<=0)return;let r=u=>{try{typeof t.totalTime==\"function\"?t.totalTime(u,!0):typeof t.seek==\"function\"&&t.seek(u,!0)}catch{}},o=typeof t.totalTime==\"function\"?Number(t.totalTime()):typeof t.seek==\"function\"?Number(t.seek()):0,a=mu(e,r,n,60);Number.isFinite(o)&&r(o),a&&i.set(e,a)}function kt(e){let t=e.defaultPlaybackRate;return Number.isFinite(t)&&t>0?Math.max(.1,Math.min(5,t)):1}function Ao(e){let t=e.isVideo?e.explicitDuration??e.sourceDuration:e.sourceDuration,n=(e.isVideo?[t,e.hostRemaining]:[t,e.hostRemaining,e.explicitDuration]).filter(i=>i!=null&&Number.isFinite(i)&&i>0);return n.length>0?Math.min(...n):null}function wo(e){let t=Array.from(document.querySelectorAll(\"video, audio\")),n=e?.shouldIncludeElement?t.filter(a=>e.shouldIncludeElement?.(a)):t.filter(a=>a.hasAttribute(\"data-start\")),i=[],r=[],o=0;for(let a of n){let u=e?.resolveStartSeconds?e.resolveStartSeconds(a):Number.parseFloat(a.dataset.start??\"0\");if(!Number.isFinite(u))continue;let s=Number.parseFloat(a.dataset.playbackStart??a.dataset.mediaStart??\"0\")||0,l=kt(a),d=a.loop,m=Number.isFinite(a.duration)&&a.duration>0?a.duration:null,f=e?.resolveDurationSeconds?.(a)??Number.parseFloat(a.dataset.duration??\"\");(!Number.isFinite(f)||f<=0)&&m!=null&&(f=Math.max(0,(m-s)/l));let x=Number.isFinite(f)&&f>0?u+f:Number.POSITIVE_INFINITY,S=Number.parseFloat(a.dataset.volume??\"\"),y={el:a,start:u,mediaStart:s,duration:Number.isFinite(f)&&f>0?f:Number.POSITIVE_INFINITY,end:x,volume:Number.isFinite(S)?S:null,playbackRate:l,loop:d,sourceDuration:m};i.push(y),a.tagName===\"VIDEO\"&&r.push(y),Number.isFinite(x)&&(o=Math.max(o,x))}return{timedMediaEls:n,mediaClips:i,videoClips:r,maxMediaEnd:o}}var gi=new WeakMap,Lt=new WeakMap,xi=new WeakSet,dt=new WeakSet;function pu(e){if(dt.has(e))return;dt.add(e);let t=()=>dt.delete(e);e.addEventListener(\"playing\",t,{once:!0}),e.addEventListener(\"pause\",t,{once:!0}),e.addEventListener(\"error\",t,{once:!0})}var hu=3;function gu(e){return e.error!=null||e.networkState===hu}var bi=new WeakMap;function Rt(e){return Number.isFinite(e)?Math.max(0,Math.min(1,e)):1}function Co(e){let t=!!(e.outputMuted||e.userMuted);for(let n of e.clips){let{el:i}=n;if(!i.isConnected)continue;let r=(e.timeSeconds-n.start)*n.playbackRate+n.mediaStart,o=i.tagName===\"VIDEO\"&&!n.loop,a=o&&n.sourceDuration!=null&&r>=n.sourceDuration&&e.timeSeconds>=n.start&&e.timeSeconds<n.end;a&&n.sourceDuration!=null&&(r=n.sourceDuration);let u=o&&n.sourceDuration!=null&&r>=n.mediaStart&&r<n.sourceDuration;if(e.timeSeconds>=n.start&&e.timeSeconds<n.end&&r>=0&&(!i.ended||n.loop||a||u)){if(n.loop&&n.sourceDuration!=null&&n.sourceDuration>0){let I=n.sourceDuration-n.mediaStart;I>0&&r>=n.sourceDuration&&(r=n.mediaStart+(r-n.mediaStart)%I)}let l=Rt(e.userVolume??1),d=Rt(n.volume??1),m=bi.get(i),f=Rt(i.volume),x;n.volumeKeyframes&&n.volumeKeyframes.length>0?x=Rt(So(n.volumeKeyframes,r)):m===void 0||Math.abs(f-m)>1e-4?x=f:x=d;let S=Rt(x*l);i.volume=S,bi.set(i,S),e.onElementVolume?.(i,S),(t||e.isWebAudioOwned?.(i))&&(i.muted=!0),i.preload!==\"auto\"&&(i.preload=\"auto\");try{i.playbackRate=n.playbackRate*e.playbackRate}catch(I){M(\"runtime.media.site1\",I)}let y=.04,b=2,A=i.currentTime||0,_=Math.abs(A-r),T=r-A,z=gi.get(i);gi.set(i,T);let P=z===void 0,v=!P&&Math.abs(T-z)>.5,w=_>3,C=a&&_>.001||i.ended&&u&&_>.001||_>.5&&(P||v||w),F=i.tagName===\"VIDEO\"&&!i.paused,L=z!==void 0&&Math.abs(T-z)<.004,R=!1;if(!F&&!C&&!P&&L&&_>y){let I=(Lt.get(i)??0)+1;Lt.set(i,I),I>=b&&(R=!0,Lt.set(i,0))}else _<=y&&Lt.set(i,0);let U=!F&&e.forceSync&&_>.02;if(C||R||U){if(!(i.tagName===\"VIDEO\"&&i.id&&!!document.getElementById(`__render_frame_${i.id}__`))){try{i.currentTime=r}catch(Y){M(\"runtime.media.site2\",Y)}if(Math.abs(i.currentTime-r)>.5&&!xi.has(i)){xi.add(i),i.load();try{i.currentTime=r}catch(Y){M(\"runtime.media.site3\",Y)}}}dt.delete(i)}a?i.paused||i.pause():e.playing&&i.paused&&!dt.has(i)&&!gu(i)?(pu(i),i.play().catch(I=>{dt.delete(i),(I&&typeof I==\"object\"&&\"name\"in I?String(I.name??\"\"):\"\")===\"NotAllowedError\"&&e.onAutoplayBlocked?.()})):!e.playing&&!i.paused&&i.pause();continue}gi.delete(i),Lt.delete(i),xi.delete(i),bi.delete(i),i.paused||i.pause()}}var Ue=\"data-color-grading\",Dt=\"data-hf-color-grading-source-hidden\",Sn=\"data-hf-authored-opacity\",Fo=\"__hf_color_grading_\",xu=\"rec709\",xn={exposure:0,contrast:0,highlights:0,shadows:0,whites:0,blacks:0,temperature:0,tint:0,vibrance:0,saturation:0},bn={vignette:0,vignetteMidpoint:.5,vignetteRoundness:0,vignetteFeather:.65,grain:0,grainSize:.25,grainRoughness:.5},yn={blur:0,pixelate:0},_o=Object.keys(xn),bu=Object.keys(bn),vo=Object.keys(yn);function be(e,t,n={},i={}){return{id:e,label:t,adjust:{...xn,...n},details:{...bn,...i},effects:{...yn}}}var yu=[be(\"neutral\",\"Neutral\"),be(\"natural-lift\",\"Natural Lift\",{exposure:.04,contrast:.06,highlights:-.06,shadows:.08,saturation:.05}),be(\"fresh-pop\",\"Fresh Pop\",{exposure:.08,contrast:.12,whites:.06,shadows:.04,temperature:-.02,vibrance:.08,saturation:.16}),be(\"warm-daylight\",\"Warm Daylight\",{exposure:.06,contrast:.07,highlights:-.06,shadows:.08,temperature:.18,saturation:.08}),be(\"clean-studio\",\"Clean Studio\",{contrast:.08,highlights:-.08,shadows:.06,temperature:-.08,tint:.03,saturation:.04}),be(\"skin-soft\",\"Skin Soft\",{exposure:.04,contrast:-.03,highlights:-.12,shadows:.12,temperature:.08,tint:.02,saturation:.04}),be(\"food-pop\",\"Food Pop\",{exposure:.06,contrast:.1,shadows:.06,temperature:.14,vibrance:.1,saturation:.18}),be(\"night-lift\",\"Night Lift\",{exposure:.08,contrast:.08,highlights:-.18,shadows:.2,blacks:-.08,saturation:.04},{vignette:.12}),be(\"muted-editorial\",\"Muted Editorial\",{exposure:-.02,contrast:.08,highlights:-.08,shadows:.06,blacks:-.05,temperature:-.03,saturation:-.12},{vignette:.1}),be(\"vintage-wash\",\"Vintage Wash\",{exposure:.03,contrast:-.12,highlights:-.1,shadows:.16,whites:-.04,blacks:.08,temperature:.13,vibrance:-.08,saturation:-.08},{vignette:.18}),be(\"mono-clean\",\"Mono Clean\",{contrast:.12,highlights:-.04,shadows:.04,blacks:-.08,saturation:-1}),be(\"mono-fade\",\"Mono Fade\",{contrast:-.04,highlights:-.06,shadows:.1,blacks:.12,saturation:-1},{vignette:.08}),be(\"warm-clean\",\"Warm Clean\",{exposure:.05,contrast:.08,highlights:-.08,shadows:.08,temperature:.16,vibrance:.04,saturation:.06}),be(\"cool-clean\",\"Cool Clean\",{contrast:.06,highlights:-.06,shadows:.06,temperature:-.12,tint:.04,saturation:.04}),be(\"soft-boost\",\"Soft Boost\",{exposure:.06,contrast:-.04,highlights:-.14,shadows:.16,vibrance:.08,saturation:.1}),be(\"bright-pop\",\"Bright Pop\",{exposure:.12,contrast:.12,whites:.08,blacks:-.04,vibrance:.08,saturation:.14}),be(\"deep-contrast\",\"Deep Contrast\",{exposure:-.03,contrast:.2,highlights:-.08,shadows:-.08,blacks:-.12,saturation:.06})],Su=new Map(yu.map(e=>[e.id,e])),Eu=/^\\$(?:\\{([A-Za-z0-9_.:-]+)\\}|([A-Za-z0-9_.:-]+))$/,Au={exposure:{min:-2,max:2},contrast:{min:-1,max:1},highlights:{min:-1,max:1},shadows:{min:-1,max:1},whites:{min:-1,max:1},blacks:{min:-1,max:1},temperature:{min:-1,max:1},tint:{min:-1,max:1},vibrance:{min:-1,max:1},saturation:{min:-1,max:1}},wu={vignette:{min:0,max:1},vignetteMidpoint:{min:0,max:1},vignetteRoundness:{min:-1,max:1},vignetteFeather:{min:0,max:1},grain:{min:0,max:1},grainSize:{min:0,max:1},grainRoughness:{min:0,max:1}},Cu={blur:{min:0,max:1},pixelate:{min:0,max:1}};function st(e){return typeof e==\"object\"&&e!==null&&!Array.isArray(e)}function Fu(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):0}function To(e,t){let n=typeof e==\"number\"?e:Number(e);return Number.isFinite(n)?Math.min(1,Math.max(0,n)):t}function yi(e,t){let n=typeof e==\"number\"?e:Number(e);return Number.isFinite(n)?Fu(n,t.min,t.max):0}function _u(e){if(e==null)return null;let t=String(e).trim();return t||null}function vu(e){if(e==null)return null;if(typeof e==\"string\"){let n=e.trim();return n?{src:n,intensity:1}:null}if(!st(e))return null;let t=e.src;return typeof t!=\"string\"||t.trim()===\"\"?null:{src:t.trim(),intensity:To(e.intensity,1)}}function Tu(e){if(typeof e==\"string\"){let t=e.trim();if(!t)return null;if(t.startsWith(\"{\"))try{let n=JSON.parse(t);return st(n)?n:null}catch{return null}return{preset:t,intensity:1}}return st(e)?e:null}function Mu(e,t){let n=e.trim().match(Eu);if(!n)return e;let i=n[1]??n[2]??\"\";return i&&Object.hasOwn(t,i)?t[i]:e}function Si(e,t){if(typeof e==\"string\"){let i=Mu(e,t);if(i!==e)return i;let r=e.trim();if(!r.startsWith(\"{\"))return e;try{return Si(JSON.parse(r),t)}catch{return e}}if(!st(e))return e;let n={};for(let[i,r]of Object.entries(e))n[i]=Si(r,t);return n}function Nu(e){return e?Su.get(e)??null:null}function Ei(e){let t=Tu(e);if(!t||t.enabled===!1)return null;let n=_u(t.preset),i=Nu(n),r=i?.adjust??xn,o=i?.details??bn,a=i?.effects??yn,u=st(t.adjust)?t.adjust:{},s=st(t.details)?t.details:{},l=st(t.effects)?t.effects:{},d=_o.reduce((x,S)=>(x[S]=yi(u[S]??r[S],Au[S]),x),{...xn}),m=bu.reduce((x,S)=>(x[S]=yi(s[S]??o[S],wu[S]),x),{...bn}),f=vo.reduce((x,S)=>(x[S]=yi(l[S]??a[S],Cu[S]),x),{...yn});return{enabled:!0,preset:n,intensity:To(t.intensity,1),adjust:d,details:m,effects:f,lut:vu(t.lut),colorSpace:typeof t.colorSpace==\"string\"&&t.colorSpace.trim()?t.colorSpace.trim():xu}}function Mo(e,t){return Ei(Si(e,t))}function It(e){return!e?.enabled||e.intensity===0?!1:e.lut&&e.lut.intensity!==0?!0:_o.some(t=>Math.abs(e.adjust[t])>1e-4)||Math.abs(e.details.vignette)>1e-4||Math.abs(e.details.grain)>1e-4||vo.some(t=>Math.abs(e.effects[t])>1e-4)}var Lu=[\"[data-hyperframes-ignore]\",\"[data-hyperframes-picker-ignore]\",\"[data-hf-ignore]\",\"[data-no-inspect]\",\"[data-no-pick]\",\"[data-hyper-shader-loading]\"].join(\",\"),Ru=[\"[data-hyperframes-picker-block]\",\"[data-hyper-shader-loading]\"].join(\",\");function No(e){let t=!1,n=null,i=null,r=null,o=null;function a(w,C){try{window.dispatchEvent(new CustomEvent(w,{detail:C}))}catch(F){M(\"runtime.picker.site1\",F)}}function u(w){r=w,a(\"hyperframe:picker:hovered\",{elementInfo:r,isPickMode:t,timestamp:Date.now()})}function s(w){o=w,a(\"hyperframe:picker:selected\",{elementInfo:o,isPickMode:t,timestamp:Date.now()})}function l(w){let C=w.ownerDocument.defaultView;if(!C)return!1;let F=w;for(;F&&F!==document.body&&F!==document.documentElement;){let L=C.getComputedStyle(F);if(L.display===\"none\"||L.visibility===\"hidden\"||L.pointerEvents===\"none\")return!0;let R=Number.parseFloat(L.opacity);if(Number.isFinite(R)&&R<=.01&&!F.hasAttribute(Dt))return!0;F=F.parentElement}return!1}function d(w){if(!w||w===document.body||w===document.documentElement)return!1;let C=w.tagName.toLowerCase();return!(C===\"script\"||C===\"style\"||C===\"link\"||C===\"meta\"||w.classList.contains(\"__hf-pick-highlight\")||w.closest(Lu)||l(w))}function m(w){return!!w?.closest(Ru)}function f(w){let C=w;if(C.id)return`#${C.id}`;let F=w.getAttribute(\"data-composition-id\");if(F)return`[data-composition-id=\"${CSS.escape(F)}\"]`;let L=w.getAttribute(\"data-composition-src\");if(L)return`[data-composition-src=\"${CSS.escape(L)}\"]`;let R=w.getAttribute(\"data-track-index\");if(R)return`[data-track-index=\"${CSS.escape(R)}\"]`;let U=w.tagName.toLowerCase(),I=w.parentElement;if(!I)return U;let Y=I.querySelectorAll(`:scope > ${U}`);if(Y.length===1)return U;for(let D=0;D<Y.length;D+=1)if(Y[D]===w)return`${U}:nth-of-type(${D+1})`;return U}function x(w){let C=w.tagName.toLowerCase(),F=(w.textContent??\"\").trim().replace(/\\s+/g,\" \"),L=(R,U)=>R.length>U?`${R.slice(0,U-1)}\\u2026`:R;return C===\"h1\"||C===\"h2\"||C===\"h3\"?\"Heading\":C===\"p\"||C===\"span\"||C===\"div\"?F.length>0?L(F,56):\"Text\":C===\"img\"?\"Image\":C===\"video\"?\"Video\":C===\"audio\"?\"Audio\":C===\"svg\"?\"Shape\":w.getAttribute(\"data-composition-src\")?\"Composition\":C===\"section\"?\"Section\":`${C.charAt(0).toUpperCase()}${C.slice(1)}`}function S(w,C,F){let L=typeof F==\"number\"&&F>0?F:8,R=[];if(document.elementsFromPoint)R=document.elementsFromPoint(w,C);else if(document.elementFromPoint){let Y=document.elementFromPoint(w,C);R=Y?[Y]:[]}if(m(R[0]??null))return[];let U={},I=[];for(let[Y,D]of R.entries()){if(!d(D))continue;let ie=`${D.tagName}::${D.id||\"\"}::${Y}`;if(!U[ie]&&(U[ie]=!0,I.push(D),I.length>=L))break}return I}function y(w){let C=w.getBoundingClientRect(),F={};for(let R of Array.from(w.attributes))R.name.startsWith(\"data-\")&&(F[R.name]=R.value);return{id:w.id||null,tagName:w.tagName.toLowerCase(),selector:f(w),label:x(w),boundingBox:{x:C.left,y:C.top,width:C.width,height:C.height},textContent:w.textContent?w.textContent.trim().slice(0,200):null,src:w.getAttribute(\"src\")||w.getAttribute(\"data-composition-src\")||null,dataAttributes:F}}function b(w,C,F){return S(w,C,F).map(y)}function A(w){if(!t)return;let F=S(w.clientX,w.clientY,1)[0]??(w.target instanceof Element?w.target:null);if(!d(F)||n===F)return;n&&n.classList.remove(\"__hf-pick-highlight\"),n=F,F.classList.add(\"__hf-pick-highlight\");let L=y(F);u(L),e.postMessage({source:\"hf-preview\",type:\"element-hovered\",elementInfo:L})}function _(w){if(!t)return;w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation();let C=b(w.clientX,w.clientY,8);C.length!==0&&(u(C[0]??null),e.postMessage({source:\"hf-preview\",type:\"element-pick-candidates\",candidates:C,selectedIndex:0,point:{x:w.clientX,y:w.clientY}}))}function T(w){w.key===\"Escape\"&&(P(),e.postMessage({source:\"hf-preview\",type:\"pick-mode-cancelled\"}))}function z(){t||(t=!0,i=document.createElement(\"style\"),i.textContent=[\".__hf-pick-highlight { outline: 2px solid #4f8cf7 !important; outline-offset: 2px; cursor: crosshair !important; }\",\".__hf-pick-active * { cursor: crosshair !important; }\"].join(`\n`),document.head.appendChild(i),document.body.classList.add(\"__hf-pick-active\"),document.addEventListener(\"mousemove\",A,!0),document.addEventListener(\"click\",_,!0),document.addEventListener(\"keydown\",T,!0),a(\"hyperframe:picker:mode\",{isPickMode:!0,timestamp:Date.now()}))}function P(){t&&(t=!1,n&&(n.classList.remove(\"__hf-pick-highlight\"),n=null),i&&(i.remove(),i=null),document.body.classList.remove(\"__hf-pick-active\"),document.removeEventListener(\"mousemove\",A,!0),document.removeEventListener(\"click\",_,!0),document.removeEventListener(\"keydown\",T,!0),a(\"hyperframe:picker:mode\",{isPickMode:!1,timestamp:Date.now()}))}function v(){window.__HF_PICKER_API={enable:z,disable:P,isActive:()=>t,getHovered:()=>r,getSelected:()=>o,getCandidatesAtPoint:(w,C,F)=>Number.isFinite(w)&&Number.isFinite(C)?b(w,C,F):[],pickAtPoint:(w,C,F)=>{if(!Number.isFinite(w)||!Number.isFinite(C))return null;let L=b(w,C,8);if(!L.length)return null;let R=Math.max(0,Math.min(L.length-1,Number(F??0))),U=L[R]??null;return U?(s(U),e.postMessage({source:\"hf-preview\",type:\"element-picked\",elementInfo:U}),P(),U):null},pickManyAtPoint:(w,C,F)=>{if(!Number.isFinite(w)||!Number.isFinite(C))return[];let L=b(w,C,8);if(!L.length)return[];let R=[],U=Array.isArray(F)?F:[0];for(let I of U){let Y=Math.max(0,Math.min(L.length-1,Math.floor(Number(I)))),D=L[Y];if(!D)continue;R.some(Fe=>Fe.selector===D.selector&&Fe.tagName===D.tagName)||R.push(D)}return R.length?(s(R[0]??null),e.postMessage({source:\"hf-preview\",type:\"element-picked-many\",elementInfos:R}),P(),R):[]}},a(\"hyperframe:picker:api-ready\",{hasApi:!0,timestamp:Date.now()})}return{enablePickMode:z,disablePickMode:P,installPickerApi:v}}var ku=[\"width\",\"height\",\"top\",\"left\",\"right\",\"bottom\",\"inset\",\"object-fit\",\"object-position\",\"z-index\",\"opacity\",\"visibility\",\"filter\",\"mix-blend-mode\",\"backdrop-filter\",\"border-radius\",\"overflow\",\"clip-path\",\"mask\",\"mask-image\",\"mask-size\",\"mask-position\",\"mask-repeat\",\"transform\",\"transform-origin\",\"translate\",\"rotate\",\"scale\",\"box-sizing\"];function ft(e,t){let n=Number.isFinite(t)&&t>0?t:30,i=Number.isFinite(e)&&e>0?e:0;return Math.floor(i*n+1e-9)/n}function Lo(e,t,n=ku){for(let i of n){let r=t.getPropertyValue(i);r&&e.setProperty(i,r)}}function Pt(e,t,n){let i=e?.[t];return typeof i==\"function\"?Number(i.call(e))||n:typeof i==\"number\"&&Number.isFinite(i)?i:(i!=null&&M(\"runtime.player.nonConformantNum\",{prop:t,actual:typeof i}),n)}function Re(e,t){let n=e?.[t];if(typeof n==\"function\"){n.call(e);return}n!==void 0&&M(\"runtime.player.nonConformantVoid\",{method:t,actual:typeof n})}function Ot(e,t,n){if(e){for(let i of Object.values(e))if(!(!i||i===t))try{n(i)}catch(r){M(\"runtime.player.site1\",r)}}}function Ro(e,t,n,i){let r=ft(t,n),o=i?.suppressEvents===!0;return Re(e,\"pause\"),typeof e.totalTime==\"function\"?e.totalTime(r,o):typeof e.seek==\"function\"&&e.seek(r,o),r}function Du(e,t,n,i,r){let o=[];Ot(e,t,a=>{Re(a,\"play\"),o.push(a)});try{return Ro(t,n,i,r)}finally{for(let a of o)try{Re(a,\"pause\")}catch(u){M(\"runtime.player.site2\",u)}}}function Iu(e,t){Ot(e,t,n=>{Re(n,\"play\")})}function ko(e){let t=e.transport;return t?{_timeline:null,play:()=>t.play(),pause:()=>t.pause(),seek:(n,i)=>t.seek(n,i),renderSeek:(n,i)=>t.renderSeek(n,i),getTime:()=>t.getTime(),getDuration:()=>t.getDuration(),isPlaying:()=>t.isPlaying(),setPlaybackRate:n=>t.setPlaybackRate(n),getPlaybackRate:()=>t.getPlaybackRate()}:{_timeline:null,play:()=>{let n=e.getTimeline();if(!n||e.getIsPlaying())return;let i=Math.max(0,Number(e.getSafeDuration?.()??Pt(n,\"duration\",0))||0);i>0&&Math.max(0,Pt(n,\"time\",0))>=i&&(Re(n,\"pause\"),typeof n.seek==\"function\"&&n.seek(0,!1),e.onDeterministicSeek(0),e.setIsPlaying(!1),e.onSyncMedia(0,!1),e.onRenderFrameSeek(0)),typeof n.timeScale==\"function\"&&n.timeScale(e.getPlaybackRate()),Re(n,\"play\"),Ot(e.getTimelineRegistry?.(),n,r=>{typeof r.timeScale==\"function\"&&r.timeScale(e.getPlaybackRate()),Re(r,\"play\")}),e.onDeterministicPlay(),e.setIsPlaying(!0),e.onShowNativeVideos(),e.onStatePost(!0)},pause:()=>{let n=e.getTimeline();if(!n)return;Re(n,\"pause\"),Ot(e.getTimelineRegistry?.(),n,r=>{Re(r,\"pause\")});let i=Math.max(0,Pt(n,\"time\",0));e.onDeterministicSeek(i),e.onDeterministicPause(),e.setIsPlaying(!1),e.onSyncMedia(i,!1),e.onRenderFrameSeek(i),e.onStatePost(!0)},seek:(n,i)=>{let r=e.getTimeline();if(!r)return;let o=Math.max(0,Number(n)||0),a=e.getIsPlaying(),u=Du(e.getTimelineRegistry?.(),r,o,e.getCanonicalFps());e.onDeterministicSeek(u),i?.keepPlaying&&a?(typeof r.timeScale==\"function\"&&r.timeScale(e.getPlaybackRate()),Re(r,\"play\"),Ot(e.getTimelineRegistry?.(),r,s=>{typeof s.timeScale==\"function\"&&s.timeScale(e.getPlaybackRate()),Re(s,\"play\")}),e.onDeterministicPlay(),e.onShowNativeVideos(),e.onSyncMedia(u,!0)):(e.setIsPlaying(!1),e.onSyncMedia(u,!1)),e.onRenderFrameSeek(u),e.onStatePost(!0)},renderSeek:(n,i)=>{let r=e.getTimeline(),o=e.getCanonicalFps(),a=r?(Iu(e.getTimelineRegistry?.(),r),Ro(r,n,o,i)):ft(Math.max(0,Number(n)||0),o);e.onDeterministicSeek(a,i),e.setIsPlaying(!1),e.onSyncMedia(a,!1),e.onRenderFrameSeek(a),e.onStatePost(!0)},getTime:()=>Pt(e.getTimeline(),\"time\",0),getDuration:()=>Pt(e.getTimeline(),\"duration\",0),isPlaying:()=>e.getIsPlaying(),setPlaybackRate:n=>e.setPlaybackRate(n),getPlaybackRate:()=>e.getPlaybackRate()}}function Do(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var Pu=new Set([\"SCRIPT\",\"STYLE\",\"LINK\",\"META\",\"TEMPLATE\",\"NOSCRIPT\"]);function wi(e){return e.id||e.getAttribute(\"data-hf-id\")||null}function Ai(e){if(e==null)return null;let t=Number(e);return Number.isFinite(t)?t:null}function Ou(e,t){let n=e.getAttribute(\"data-composition-id\");if(!n)return null;let i=Number(t[n]?.duration?.());return Number.isFinite(i)&&i>0?i:null}function Bu(e){if(!(e instanceof HTMLMediaElement)||!Number.isFinite(e.duration))return null;let t=Ai(e.getAttribute(\"data-playback-start\"))??Ai(e.getAttribute(\"data-media-start\"))??0;return e.duration>t?e.duration-t:null}function Hu(e,t,n,i){let r=Ai(e.getAttribute(\"data-duration\"));return r!=null&&r>0?r:Ou(e,t)??Bu(e)??Math.max(0,n-i)}function Gu(e){for(let[t,n]of e){let i=t.parentElement;for(;i;){let r=e.get(i);if(r){n.parentId=r.id,r.children.push(n);break}i=i.parentElement}}}function Io(e){let{startResolver:t,timelineRegistry:n,rootDuration:i}=e,r=new Map,o=document.querySelector(\"[data-composition-id]\"),a=0;for(let u of document.querySelectorAll(\"[data-start]\")){if(u===o||Pu.has(u.tagName))continue;let s=t.resolveStartForElement(u,0);if(Hu(u,n,i,s)<=0)continue;let l={id:wi(u)??`__clip-${a++}`,element:u,parentId:null,children:[]};r.set(u,l)}return Gu(r),{roots:Array.from(r.values()).filter(u=>u.parentId===null)}}var Ci=\"css:root\",Po=[\"backdrop-filter\",\"clip-path\",\"filter\",\"mask\",\"mask-border-source\",\"mask-image\",\"perspective\",\"rotate\",\"scale\",\"transform\",\"translate\",\"-webkit-mask-image\"],Wu=new Set([...Po,\"contain\",\"isolation\",\"mask-border\",\"mix-blend-mode\",\"opacity\"]),Uu=new Set([\"absolute\",\"relative\"]),Vu=new Set([\"flex\",\"inline-flex\",\"grid\",\"inline-grid\"]),zu=new Set([\"layout\",\"paint\",\"strict\",\"content\"]),ju=new Set([\"size\",\"inline-size\"]);function qu(e){return e.position===\"fixed\"||e.position===\"sticky\"}function $u(e,t){if(t.zIndex===\"auto\"||t.zIndex===\"\")return!1;if(Uu.has(t.position))return!0;let n=e.parentElement?e.ownerDocument.defaultView?.getComputedStyle(e.parentElement).display:null;return n!=null&&Vu.has(n)}function Ku(e){let t=Number.parseFloat(e.opacity);if(Number.isFinite(t)&&t<1||e.getPropertyValue(\"isolation\")===\"isolate\")return!0;let n=e.getPropertyValue(\"mix-blend-mode\");return n&&n!==\"normal\"?!0:Po.some(i=>{let r=e.getPropertyValue(i);return r!==\"\"&&r!==\"none\"})}function Ju(e){return e.getPropertyValue(\"contain\").split(/\\s+/).some(n=>zu.has(n))?!0:ju.has(e.getPropertyValue(\"container-type\"))}function Xu(e){return e.getPropertyValue(\"will-change\").split(\",\").map(t=>t.trim()).some(t=>Wu.has(t))}function Yu(e,t){return qu(t)||$u(e,t)||Ku(t)||Ju(t)?!0:Xu(t)}function Qu(e){let t=[],n=e;for(;n?.parentElement;)t.push(Array.prototype.indexOf.call(n.parentElement.children,n)),n=n.parentElement;return`css:${t.reverse().join(\".\")}`}function En(e){let t=e.ownerDocument.defaultView;if(!t)return Ci;let n=e.parentElement;for(;n&&n!==e.ownerDocument.documentElement;){try{if(Yu(n,t.getComputedStyle(n)))return Qu(n)}catch{return Ci}n=n.parentElement}return Ci}function qe(e){if(e==null||e===\"\")return null;let t=Number(e);return Number.isFinite(t)?t:null}function Oo(e){let t=(e??\"\").trim();if(!t)return null;let n=qe(t);if(n!=null)return{kind:\"absolute\",value:n};let i=t.match(/^([A-Za-z0-9_.:-]+)(?:\\s*([+-])\\s*([0-9]*\\.?[0-9]+))?$/);if(!i)return null;let r=(i[1]??\"\").trim();if(!r)return null;let o=i[2]??\"+\",a=i[3]??\"0\",u=Number.parseFloat(a),s=Number.isFinite(u)?Math.max(0,u):0,l=o===\"-\"?-s:s;return{kind:\"reference\",refId:r,offset:l}}var Zu=\"data-hf-authored-duration\",ec=\"data-hf-authored-end\";function tc(e){return qe(e.getAttribute(\"data-duration\"))}function nc(e){return qe(e.getAttribute(\"data-end\"))}function ic(e){return qe(e.getAttribute(Zu))}function rc(e){return qe(e.getAttribute(ec))}function $e(e){let t=e.timelineRegistry??{},n=e.includeAuthoredTimingAttrs??!1,i=new WeakMap,r=new WeakMap,o=new Set,a=d=>{let m=document.getElementById(d);return m||(document.querySelector(`[data-composition-id=\"${CSS.escape(d)}\"]`)??null)},u=d=>{let m=r.get(d);if(m!==void 0)return m;let f=null,x=tc(d)??(n?ic(d):null);if(x!=null&&x>0&&(f=x),f==null||f<=0){let S=nc(d)??(n?rc(d):null);if(S!=null){let y=l(d,0),b=S-y;Number.isFinite(b)&&b>0&&(f=b)}}if((f==null||f<=0)&&d instanceof HTMLMediaElement){let S=qe(d.getAttribute(\"data-playback-start\"))??qe(d.getAttribute(\"data-media-start\"))??0;Number.isFinite(d.duration)&&d.duration>S&&(f=(d.duration-S)/kt(d))}if(f==null||f<=0){let S=d.getAttribute(\"data-composition-id\");if(S){let y=t[S]??null;if(y&&typeof y.duration==\"function\")try{let b=Number(y.duration());Number.isFinite(b)&&b>0&&(f=b)}catch(b){M(\"runtime.startResolver.site1\",b)}}}return f!=null&&Number.isFinite(f)&&f>0?(r.set(d,f),f):(r.set(d,null),null)},s=(d,m)=>{if(d.hasAttribute(\"data-composition-id\")){let x=d.parentElement?.closest(\"[data-composition-id]\");return x?l(x,m):0}let f=d.closest(\"[data-composition-id]\");return f?l(f,m):0},l=(d,m)=>{let f=i.get(d);if(f!==void 0)return f??m;if(o.has(d))return m;o.add(d);try{let x=Oo(d.getAttribute(\"data-start\"));if(!x){if(d.hasAttribute(\"data-composition-id\")){let _=d.parentElement;if(_&&(_.hasAttribute(\"data-composition-src\")||_.hasAttribute(\"data-composition-id\")||_.hasAttribute(\"data-composition-file\"))){let T=l(_,m);return i.set(d,T),T}}return i.set(d,m),m}if(x.kind===\"absolute\"){let _=Math.max(0,x.value),T=Math.max(0,s(d,m)+_);return i.set(d,T),T}let S=a(x.refId);if(!S)return i.set(d,m),m;let y=l(S,0),b=u(S);if(b==null||b<=0){let _=Math.max(0,y+x.offset);return i.set(d,_),_}let A=Math.max(0,y+b+x.offset);return i.set(d,A),A}finally{o.delete(d)}};return{resolveStartForElement:(d,m=0)=>l(d,Math.max(0,m)),resolveDurationForElement:d=>u(d)}}function Fi(e){let t=e.trim().toLowerCase();return!(!t||t===\"main\"||t.includes(\"caption\")||t.includes(\"ambient\"))}var oc=\"data-hf-authored-duration\",sc=\"data-hf-authored-end\";function Ee(e){if(e==null||e===\"\")return null;let t=Number(e);return Number.isFinite(t)?t:null}function _i(e){return Ee(e.getAttribute(\"data-duration\"))??Ee(e.getAttribute(oc))}function Bo(e){return Ee(e.getAttribute(\"data-end\"))??Ee(e.getAttribute(sc))}function vi(e){try{let t=e.style?.zIndex;if(t&&t!==\"auto\"){let n=parseInt(t,10);if(Number.isFinite(n))return n}return 0}catch{return 0}}function Ti(...e){let t=e.filter(n=>Number.isFinite(n??null));return t.length===0?null:Math.max(...t)}function Mi(e,t){let n=e.getAttribute(\"data-track-index\")??e.getAttribute(\"data-track\");if(n==null)return t;let i=Number.parseInt(n,10);return Number.isFinite(i)?i:t}function Ht(e){let t=String(e??\"\").trim();if(!t)return null;let n=t.toLowerCase();if(n.startsWith(\"data:\")||n.startsWith(\"javascript:\"))return null;try{return new URL(t,document.baseURI).toString()}catch{return t}}function Ho(e){let t=e.getAttribute(\"src\")??e.getAttribute(\"data-src\");if(t)return Ht(t);let n=e.getAttribute(\"data-composition-src\");if(n)return Ht(n);let i=e.querySelector(\"img[src], video[src], audio[src], source[src]\");return i?Ht(i.getAttribute(\"src\")):null}function ac(e){let t=e.className;return typeof t!=\"string\"?null:t.split(/\\s+/).map(n=>n.trim()).find(n=>n&&n!==\"clip\"&&!n.startsWith(\"__hf-\"))??null}function lc(e){if(!e)return null;try{return new URL(e,document.baseURI).pathname.split(\"/\").filter(Boolean).at(-1)??null}catch{return e.split(/[\\\\/]/).filter(Boolean).at(-1)??null}}function uc(e){let t=e.textContent?.replace(/\\s+/g,\" \").trim();return t?t.length>32?`${t.slice(0,31)}...`:t:null}function Bt(e){let t=e.replace(/\\.[^.]+$/i,\"\").replace(/[-_]+/g,\" \").replace(/\\s+/g,\" \").trim();return t?t.replace(/\\b\\w/g,n=>n.toUpperCase()):e}function cc(e,t,n){let i=e.getAttribute(\"data-timeline-label\")??e.getAttribute(\"data-label\")??e.getAttribute(\"aria-label\")??null;if(i?.trim())return i.trim();let r=e.getAttribute(\"data-composition-id\");if(r)return Bt(r);let o=e.id;if(o)return Bt(o);let a=ac(e);if(a)return Bt(a);let u=lc(Ho(e));if(u)return Bt(u);let s=uc(e);return s||`${Bt(t)} ${n+1}`}function Go(e){let n=window.__timelines??{},i=$e({timelineRegistry:n,includeAuthoredTimingAttrs:!0}),r=H=>{if(!H)return null;let k=n[H]??null;if(!k||typeof k.duration!=\"function\")return null;try{let G=Number(k.duration());return Number.isFinite(G)&&G>0?G:null}catch{return null}},o=H=>{let k=Ee(H.getAttribute(\"data-duration\"));if(k!=null&&k>0)return k;let G=Ee(H.getAttribute(\"data-playback-start\"))??Ee(H.getAttribute(\"data-media-start\"))??0;return Number.isFinite(H.duration)&&H.duration>G?Math.max(0,(H.duration-G)/kt(H)):null},a=()=>{let H=Array.from(document.querySelectorAll(\"video[data-start], audio[data-start]\"));if(H.length===0)return null;let k=0;for(let G of H){let le=G.hasAttribute(\"data-hf-auto-start\")?i.resolveStartForElement(G,0):Math.max(0,Number(G.getAttribute(\"data-start\")??0)||0);if(!Number.isFinite(le))continue;let oe=o(G);oe==null||oe<=0||(k=Math.max(k,Math.max(0,le)+oe))}return k>0?k:null},u=(H,k)=>{let G=[],le=null,oe=null,W=null,q=H.parentElement;for(;q;){let K=q.getAttribute(\"data-composition-id\");K&&(G.push(K),!W&&q!==k&&(W=K),le==null&&(le=i.resolveStartForElement(q,0)),oe==null&&(oe=Ee(q.getAttribute(\"data-duration\"))??r(K)??null)),q=q.parentElement}return{parentCompositionId:W,compositionAncestors:G.reverse(),inheritedStart:le,inheritedDuration:oe}},s=document.querySelector(\"[data-composition-id]\"),l=Array.from(document.querySelectorAll(\"[data-composition-id]\")),d=s?.getAttribute(\"data-composition-id\")??null,m=s?i.resolveStartForElement(s,0):0,f=a(),x=f!=null?Math.max(0,f-Math.max(0,m)):null,S=r(d),y=_i(s??document.body),b=Ti(...l.filter(H=>H!==s).map(H=>{let k=i.resolveStartForElement(H,0),G=i.resolveDurationForElement(H)??r(H.getAttribute(\"data-composition-id\"))??null;return!Number.isFinite(k)||G==null||G<=0?null:Math.max(0,k)+G})),A=b!=null?Math.max(0,b-Math.max(0,m)):null,_=typeof S==\"number\"&&Number.isFinite(S)&&S>0?S:null,T=typeof y==\"number\"&&Number.isFinite(y)&&y>0?y:null,z=typeof x==\"number\"&&Number.isFinite(x)&&x>0?x:null,P=typeof A==\"number\"&&Number.isFinite(A)&&A>0?A:null,v=Ti(z,P),w=_!=null&&v!=null&&_>v+1,F=T??(w?v:Ti(_,z,P))??null,R=(F!=null?m+F:null)??(typeof f==\"number\"&&Number.isFinite(f)&&f>0?f:null),U=(H,k)=>!Number.isFinite(k)||k<=0?0:R==null||!Number.isFinite(R)?k:!Number.isFinite(H)||H>=R?0:Math.max(0,Math.min(k,R-H)),I=[],Y=[],D=Array.from(document.querySelectorAll(\"[data-start], [data-track-index], [data-composition-id], video, audio, img\")),ie=0;for(let[H,k]of D.entries()){if(k===s||[\"SCRIPT\",\"STYLE\",\"LINK\",\"META\",\"TEMPLATE\",\"NOSCRIPT\"].includes(k.tagName))continue;let G=u(k,s),le=i.resolveStartForElement(k,G.inheritedStart??0),oe=k.getAttribute(\"data-composition-id\"),W=_i(k);if((W==null||W<=0)&&oe&&oe!==d&&(W=r(oe)),(W==null||W<=0)&&k instanceof HTMLMediaElement){let we=Ee(k.getAttribute(\"data-playback-start\"))??Ee(k.getAttribute(\"data-media-start\"))??0;Number.isFinite(k.duration)&&k.duration>0&&(W=Math.max(0,k.duration-we))}if(W==null||W<=0){let we=G.inheritedDuration;if(we!=null&&we>0){let Ge=(G.inheritedStart??0)+we;W=Math.max(0,Ge-le)}}if(W==null||W<=0||(W=U(le,W),W<=0))continue;let q=le+W;ie=Math.max(ie,q);let K=k.tagName.toLowerCase(),Ae=oe&&oe!==d?\"composition\":K===\"video\"?\"video\":K===\"audio\"?\"audio\":K===\"img\"?\"image\":\"element\";I.push({id:wi(k)??oe??null,label:cc(k,Ae,I.length),start:le,duration:W,track:Mi(k,H),zIndex:vi(k),stackingContextId:En(k),kind:Ae,tagName:K,compositionId:k.getAttribute(\"data-composition-id\"),compositionAncestors:G.compositionAncestors,parentCompositionId:G.parentCompositionId,nodePath:null,compositionSrc:Ht(k.getAttribute(\"data-composition-src\")),assetUrl:Ho(k),timelineRole:k.getAttribute(\"data-timeline-role\"),timelineLabel:k.getAttribute(\"data-timeline-label\"),timelineGroup:k.getAttribute(\"data-timeline-group\"),timelinePriority:Ee(k.getAttribute(\"data-timeline-priority\"))})}let Fe=new Set(I.map(H=>H.id)),j=s?.getAttribute(\"data-composition-id\")??null,X=j?n[j]??null:null;if(X&&s){let H=X;if(typeof H.getChildren==\"function\")try{let k=H.getChildren(!0,!0,!1)??[],G=new Map;for(let W of s.children){let q=W;if(!q.id)continue;let K=q.tagName.toLowerCase();K===\"script\"||K===\"style\"||K===\"link\"||G.set(q,{id:q.id,start:1/0,end:-1/0})}let le=W=>{let q=W;for(;q;){if(G.has(q))return q;if(q===s)return null;q=q.parentElement}return null};for(let W of k){if(typeof W.targets!=\"function\"||typeof W.startTime!=\"function\"||typeof W.duration!=\"function\")continue;let q=W.startTime(),K=W.parent;for(;K&&K!==X&&typeof K.startTime==\"function\";)q+=K.startTime(),K=K.parent;let Ae=q+W.duration();if(!(!Number.isFinite(q)||!Number.isFinite(Ae)))for(let we of W.targets()){if(!(we instanceof Element))continue;let At=le(we);if(!At)continue;let Ge=G.get(At);Ge&&(Ge.start=Math.min(Ge.start,q),Ge.end=Math.max(Ge.end,Ae))}}let oe=I.length>0?Math.max(...I.map(W=>W.track))+1:0;for(let[W,q]of G){if(q.start===1/0||q.end===-1/0)continue;let K=W;if(Fe.has(K.id))continue;let Ae=Math.max(0,q.end-q.start);if(Ae<=0)continue;let we=U(q.start,Ae);we<=0||(ie=Math.max(ie,q.start+we),I.push({id:K.id,label:K.getAttribute(\"data-timeline-label\")??K.getAttribute(\"data-label\")??K.getAttribute(\"aria-label\")??K.id,start:q.start,duration:we,track:Mi(K,oe),zIndex:vi(K),stackingContextId:En(K),kind:\"element\",tagName:K.tagName.toLowerCase(),compositionId:K.getAttribute(\"data-composition-id\"),compositionAncestors:j?[j]:[],parentCompositionId:j,nodePath:null,compositionSrc:null,assetUrl:null,timelineRole:K.getAttribute(\"data-timeline-role\"),timelineLabel:K.getAttribute(\"data-timeline-label\"),timelineGroup:K.getAttribute(\"data-timeline-group\"),timelinePriority:Ee(K.getAttribute(\"data-timeline-priority\"))}),Fe.add(K.id))}}catch(k){M(\"runtime.timeline.site1\",k)}}if(s&&F!=null&&F>0){let H=I.length>0?Math.max(...I.map(k=>k.track))+1:0;for(let k of s.children){let G=k;if(!G.id||Fe.has(G.id))continue;let le=G.getAttribute(\"data-timeline-role\");if(le!==\"overlay\"&&le!==\"persistent-overlay\")continue;let oe=G.tagName.toLowerCase();if(oe===\"script\"||oe===\"style\"||oe===\"link\"||oe===\"meta\"||window.getComputedStyle(G).display===\"none\")continue;let q=U(0,F);q<=0||(ie=Math.max(ie,q),I.push({id:G.id,label:G.getAttribute(\"data-timeline-label\")??G.getAttribute(\"data-label\")??G.getAttribute(\"aria-label\")??G.id,start:0,duration:q,track:Mi(G,H),zIndex:vi(G),stackingContextId:En(G),kind:\"element\",tagName:oe,compositionId:G.getAttribute(\"data-composition-id\"),compositionAncestors:j?[j]:[],parentCompositionId:j,nodePath:null,compositionSrc:null,assetUrl:null,timelineRole:le,timelineLabel:G.getAttribute(\"data-timeline-label\"),timelineGroup:G.getAttribute(\"data-timeline-group\"),timelinePriority:Ee(G.getAttribute(\"data-timeline-priority\"))}),Fe.add(G.id))}}for(let H of l){if(H===s)continue;let k=H.getAttribute(\"data-composition-id\");if(!k||!Fi(k))continue;let G=i.resolveStartForElement(H,0),le=_i(H);if((le==null||le<=0)&&Bo(H)!=null){let K=Bo(H);le=Math.max(0,K-G)}let oe=r(k),W=le&&le>0?le:oe;if(W==null||W<=0)continue;let q=U(G,W);q<=0||Y.push({id:k,label:H.getAttribute(\"data-label\")??k,start:G,duration:q,thumbnailUrl:Ht(H.getAttribute(\"data-thumbnail-url\")),avatarName:null})}let B=Math.max(1,ie||1,F??0);return{source:\"hf-preview\",type:\"timeline\",durationInFrames:w&&T==null?Number.POSITIVE_INFINITY:Math.max(1,Math.ceil(B*Math.max(1,e.canonicalFps))),clips:I,scenes:Y,compositionWidth:Ee(s?.getAttribute(\"data-width\"))??1920,compositionHeight:Ee(s?.getAttribute(\"data-height\"))??1080}}var ue=eu(da(),1),fa=ue.default,E0=ue.default.stringify,A0=ue.default.fromJSON,w0=ue.default.plugin,C0=ue.default.parse,F0=ue.default.list,_0=ue.default.document,v0=ue.default.comment,T0=ue.default.atRule,M0=ue.default.rule,N0=ue.default.decl,L0=ue.default.root,R0=ue.default.CssSyntaxError,k0=ue.default.Declaration,D0=ue.default.Container,I0=ue.default.Processor,P0=ue.default.Document,O0=ue.default.Comment,B0=ue.default.Warning,H0=ue.default.AtRule,G0=ue.default.Result,W0=ue.default.Input,U0=ue.default.Rule,V0=ue.default.Root,z0=ue.default.Node;var tr=\"data-hf-authored-id\",ma=\"data-hf-inner-root\";function nr(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}function ir(e){return e.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"')}function Rd(e){return e&&e.replace(/[^a-zA-Z0-9_-]/g,n=>`\\\\${n}`).replace(/^-?\\d/,n=>`\\\\${n}`)}function ha(e){let t=e.trim();return t?Array.from(new Set([t,Rd(t)])).filter(Boolean):[]}function kd(e){return!!e&&/[\\w-]/.test(e)}function Dd(e,t,n){let i=ha(t).sort((u,s)=>s.length-u.length);if(i.length===0)return e;let r=\"\",o=0,a=null;for(let u=0;u<e.length;u+=1){let s=e[u],l=u>0?e[u-1]:\"\";if(a){r+=s,s===a&&l!==\"\\\\\"&&(a=null);continue}if(s==='\"'||s===\"'\"){a=s,r+=s;continue}if(s===\"[\"){o+=1,r+=s;continue}if(s===\"]\"){o=Math.max(0,o-1),r+=s;continue}if(s===\"#\"&&o===0){let d=i.find(m=>e.startsWith(m,u+1));if(d){let m=e[u+1+d.length];if(!kd(m)){r+=n,u+=d.length;continue}}}r+=s}return r}function Id(e,t){let n=t?.trim();return n?Dd(e,n,`[${tr}=\"${ir(n)}\"]`):e}function pa(e){return`${e}:not(:has([${ma}])), ${e} > [${ma}]`}function Pd(e,t,n,i,r,o){let a=Id(e,i),u=Od(a,t,n),s=u.trim();if(!s||s===\"*\")return e;if(/^(html|body|:root)$/i.test(s))return o?pa(t):e;let l=new RegExp(`\\\\[\\\\s*data-composition-id\\\\s*=\\\\s*([\"'])${nr(n)}\\\\1\\\\s*\\\\]`,\"g\");if(l.test(s))return s.replace(l,\"\").trim()===\"\"?pa(t):u.replace(l,t);let d=u.match(/^\\s*/)?.[0]??\"\",m=u.match(/\\s*$/)?.[0]??\"\";if(r){let f=i?`[${tr}=\"${ir(i)}\"]`:null;if(f&&s.startsWith(f)){let x=s.slice(f.length);return`${d}${t}${f}${x}${m}`}}return`${d}${t} ${s}${m}`}function Od(e,t,n){let i=nr(n),r=String.raw`\\[\\s*data-composition-id\\s*=\\s*(?:\"${i}\"|'${i}')\\s*\\]`,o=String.raw`\\s*\\[\\s*data-(?:start|duration)\\s*=\\s*(?:\"[^\"]*\"|'[^']*')\\s*\\]`;return e.replace(new RegExp(`${r}(?:${o})+`,\"g\"),t).replace(new RegExp(`(?:${o})+${r}`,\"g\"),t)}var Bd=new Set([\"keyframes\",\"-webkit-keyframes\",\"font-face\"]);function Hd(e){return e?.type===\"atrule\"}function Gd(e){let t=e.parent;for(;t;){if(Hd(t)&&Bd.has(t.name.toLowerCase()))return!0;t=t.parent}return!1}function ga(e,t,n,i,r){let o=t.trim();if(!e||!o)return e;let a=n||`[data-composition-id=\"${ir(o)}\"]`,u=fa.parse(e);return u.walkRules(s=>{Gd(s)||(s.selectors=s.selectors.map(l=>Pd(l,a,o,i,r?.compoundAuthoredRoot,r?.scopeRootSelectors)))}),u.toResult({map:!1}).css}function xa(e,t,n=\"[HyperFrames] composition script error:\",i,r=t,o){let a=JSON.stringify(t),u=JSON.stringify(r),s=JSON.stringify(n),l=nr(t),d=JSON.stringify(o?.trim()||null),m=JSON.stringify(i??null),f=JSON.stringify(String.raw`\\[\\s*data-composition-id\\s*=\\s*(?:\"${l}\"|'${l}')\\s*\\]`),x=JSON.stringify(String.raw`\\s*\\[\\s*data-(?:start|duration)\\s*=\\s*(?:\"[^\"]*\"|'[^']*')\\s*\\]`),S=JSON.stringify(ha(o?.trim()||\"\"));return`(function(){\n var __hfCompId = ${a};\n var __hfTimelineCompId = ${u};\n var __hfErrorLabel = ${s};\n var __hfAuthoredRootId = ${d};\n var __hfAuthoredRootAttr = ${JSON.stringify(tr)};\n var __hfEscapeAttr = function(value) {\n return (value + \"\").replace(/\\\\\\\\/g, \"\\\\\\\\\\\\\\\\\").replace(/\"/g, \"\\\\\\\\\\\\\"\");\n };\n var __hfRootSelector = ${m} || (__hfCompId\n ? '[data-composition-id=\"' + __hfEscapeAttr(__hfCompId) + '\"]'\n : \"\");\n var __hfRoot = null;\n var __hfRootSelectorPattern = ${f};\n var __hfTimingSelectorPattern = ${x};\n var __hfAuthoredRootIdForms = ${S};\n var __hfAuthoredRootSelector = __hfAuthoredRootId\n ? \"[\" + __hfAuthoredRootAttr + '=\"' + __hfEscapeAttr(__hfAuthoredRootId) + '\"]'\n : \"\";\n var __hfIsSelectorNameChar = function(char) {\n return !!char && /[\\\\w-]/.test(char);\n };\n var __hfReplaceAuthoredRootIdSelectors = function(selector) {\n if (!__hfAuthoredRootSelector || !__hfAuthoredRootIdForms.length || typeof selector !== \"string\") {\n return selector;\n }\n var result = \"\";\n var bracketDepth = 0;\n var quote = null;\n for (var index = 0; index < selector.length; index += 1) {\n var char = selector[index];\n var previousChar = index > 0 ? selector[index - 1] : \"\";\n if (quote) {\n result += char;\n if (char === quote && previousChar !== \"\\\\\\\\\") {\n quote = null;\n }\n continue;\n }\n if (char === '\"' || char === \"'\") {\n quote = char;\n result += char;\n continue;\n }\n if (char === \"[\") {\n bracketDepth += 1;\n result += char;\n continue;\n }\n if (char === \"]\") {\n bracketDepth = Math.max(0, bracketDepth - 1);\n result += char;\n continue;\n }\n if (char === \"#\" && bracketDepth === 0) {\n var matchedForm = null;\n for (var formIndex = 0; formIndex < __hfAuthoredRootIdForms.length; formIndex += 1) {\n var form = __hfAuthoredRootIdForms[formIndex];\n if (selector.slice(index + 1, index + 1 + form.length) === form) {\n matchedForm = form;\n break;\n }\n }\n if (matchedForm) {\n var nextChar = selector[index + 1 + matchedForm.length];\n if (!__hfIsSelectorNameChar(nextChar)) {\n result += __hfAuthoredRootSelector;\n index += matchedForm.length;\n continue;\n }\n }\n }\n result += char;\n }\n return result;\n };\n var __hfNormalizeSelector = function(selector) {\n if (!__hfCompId || typeof selector !== \"string\") return selector;\n var normalized = selector\n .replace(new RegExp(__hfRootSelectorPattern + '(?:' + __hfTimingSelectorPattern + ')+', 'g'), __hfRootSelector)\n .replace(new RegExp('(?:' + __hfTimingSelectorPattern + ')+' + __hfRootSelectorPattern, 'g'), __hfRootSelector);\n if (__hfAuthoredRootSelector) {\n normalized = __hfReplaceAuthoredRootIdSelectors(normalized);\n }\n return normalized;\n };\n var __hfFindRoot = function() {\n if (!__hfRoot && __hfRootSelector) {\n __hfRoot = window.document.querySelector(__hfRootSelector);\n }\n return __hfRoot;\n };\n var __hfContains = function(node) {\n var root = __hfFindRoot();\n return !root || node === root || root.contains(node);\n };\n var __hfQueryAll = function(selector) {\n var root = __hfFindRoot();\n if (!root || typeof selector !== \"string\") {\n return window.document.querySelectorAll(selector);\n }\n return Array.prototype.filter.call(window.document.querySelectorAll(__hfNormalizeSelector(selector)), function(node) {\n return __hfContains(node);\n });\n };\n var __hfQueryOne = function(selector) {\n var matches = __hfQueryAll(selector);\n return matches[0] || null;\n };\n var __hfGetElementById = function(id) {\n var found = window.document.getElementById(id);\n if (found && __hfContains(found)) return found;\n var root = __hfFindRoot();\n if (!root) return found || null;\n var idValue = id + \"\";\n if (__hfAuthoredRootId && __hfAuthoredRootId === idValue && root.getAttribute && root.getAttribute(__hfAuthoredRootAttr) === idValue) {\n return root;\n }\n if (root.id === idValue) return root;\n if (typeof root.querySelector !== \"function\") return null;\n try {\n var authoredRootMatch = root.querySelector('[' + __hfAuthoredRootAttr + '=\"' + __hfEscapeAttr(idValue) + '\"]');\n if (authoredRootMatch) return authoredRootMatch;\n } catch {}\n if (typeof CSS !== \"undefined\" && CSS && typeof CSS.escape === \"function\") {\n try {\n return root.querySelector(\"#\" + CSS.escape(idValue)) || null;\n } catch {}\n }\n try {\n return root.querySelector('[id=\"' + __hfEscapeAttr(idValue) + '\"]') || null;\n } catch {}\n return null;\n };\n var __hfScopedDocument = typeof Proxy === \"function\"\n ? new Proxy(window.document, {\n get: function(target, prop, receiver) {\n if (prop === \"querySelector\") return __hfQueryOne;\n if (prop === \"querySelectorAll\") return __hfQueryAll;\n if (prop === \"getElementById\") return __hfGetElementById;\n var value = Reflect.get(target, prop, target);\n return typeof value === \"function\" ? value.bind(target) : value;\n },\n })\n : window.document;\n var __hfTimelineRegistryProxy = null;\n var __hfGetTimelineRegistry = function() {\n window.__timelines = window.__timelines || {};\n if (!__hfCompId || __hfCompId === __hfTimelineCompId || typeof Proxy !== \"function\") {\n return window.__timelines;\n }\n if (!__hfTimelineRegistryProxy) {\n __hfTimelineRegistryProxy = new Proxy(window.__timelines, {\n get: function(target, prop, receiver) {\n if (prop !== __hfCompId) {\n return Reflect.get(target, prop, target);\n }\n var authoredValue = Reflect.get(target, prop, target);\n return authoredValue === undefined\n ? Reflect.get(target, __hfTimelineCompId, target)\n : authoredValue;\n },\n set: function(target, prop, value, receiver) {\n if (prop !== __hfCompId) {\n return Reflect.set(target, prop, value, target);\n }\n // The authored node remains in the compiled DOM when its local id\n // differs from the runtime mount id, so readiness legitimately sees\n // both compositions. Publish the same timeline under both identities\n // instead of replacing one with the other.\n var authoredSet = Reflect.set(target, __hfCompId, value, target);\n var runtimeSet = Reflect.set(target, __hfTimelineCompId, value, target);\n return authoredSet && runtimeSet;\n },\n });\n }\n return __hfTimelineRegistryProxy;\n };\n var __hfScopedWindow = typeof Proxy === \"function\"\n ? new Proxy(window, {\n get: function(target, prop, receiver) {\n if (prop === \"__timelines\") return __hfGetTimelineRegistry();\n // Inside a sub-composition, __hyperframes is passed as a bare script\n // param bound to the SCOPED variant (per-comp getVariables). But\n // authors routinely write the documented window.__hyperframes.\n // getVariables() form, which would otherwise fall through to the host\n // page's base __hyperframes and return the WRONG (or empty) variables\n // for this instance. Route it to the scoped variant too so both\n // spellings resolve to this composition's own variables.\n // (__hfScopedHyperframes is a hoisted var assigned below, before any\n // sub-comp script -- the only code that reads this -- runs.)\n if (prop === \"__hyperframes\") return __hfScopedHyperframes;\n return Reflect.get(target, prop, target);\n },\n set: function(target, prop, value, receiver) {\n if (prop === \"__timelines\") {\n // Common authoring boilerplate assigns the registry back to\n // itself (window.__timelines = window.__timelines || {}). The\n // getter above returns our proxy; do not replace the canonical\n // registry with that proxy or later wrappers will stack proxies.\n if (value === __hfTimelineRegistryProxy) return true;\n target.__timelines = value || {};\n __hfTimelineRegistryProxy = null;\n return true;\n }\n return Reflect.set(target, prop, value, target);\n },\n })\n : window;\n var __hfResolveGsapTarget = function(target) {\n if (typeof target !== \"string\") return target;\n return __hfQueryAll(target);\n };\n var __hfScopeTimeline = function(timeline) {\n if (!timeline || timeline.__hfScopedCompositionRoot === __hfFindRoot()) return timeline;\n [\"to\", \"from\", \"fromTo\", \"set\"].forEach(function(method) {\n var original = timeline[method];\n if (typeof original !== \"function\") return;\n timeline[method] = function(target) {\n var args = Array.prototype.slice.call(arguments);\n args[0] = __hfResolveGsapTarget(target);\n return original.apply(timeline, args);\n };\n });\n try {\n Object.defineProperty(timeline, \"__hfScopedCompositionRoot\", {\n value: __hfFindRoot(),\n configurable: true,\n });\n } catch {\n // Best-effort: timelines coming from user code may have a frozen target\n // or a non-extensible defineProperty path. Swallow \\u2014 the scoped root\n // is an enrichment, not a correctness invariant for playback.\n }\n return timeline;\n };\n var __hfBaseGsap = typeof gsap === \"undefined\" ? window.gsap : gsap;\n var __hfScopedGsap = !__hfBaseGsap || typeof Proxy !== \"function\"\n ? __hfBaseGsap\n : new Proxy(__hfBaseGsap, {\n get: function(target, prop, receiver) {\n if (prop === \"timeline\") {\n return function() {\n return __hfScopeTimeline(target.timeline.apply(target, arguments));\n };\n }\n if (prop === \"to\" || prop === \"from\" || prop === \"fromTo\" || prop === \"set\") {\n return function(firstArg) {\n var args = Array.prototype.slice.call(arguments);\n args[0] = __hfResolveGsapTarget(firstArg);\n return target[prop].apply(target, args);\n };\n }\n if (prop === \"utils\" && target.utils && typeof Proxy === \"function\") {\n return new Proxy(target.utils, {\n get: function(utilsTarget, utilsProp, utilsReceiver) {\n if (utilsProp === \"toArray\") {\n return function(firstArg) {\n var args = Array.prototype.slice.call(arguments);\n args[0] = __hfResolveGsapTarget(firstArg);\n return utilsTarget.toArray.apply(utilsTarget, args);\n };\n }\n if (utilsProp === \"selector\") {\n return function(base) {\n var baseEl = typeof base === \"string\" ? __hfQueryOne(base) : base;\n var root = baseEl || __hfFindRoot();\n return function(selector) {\n if (!root || typeof selector !== \"string\") return [];\n return Array.prototype.filter.call(\n window.document.querySelectorAll(__hfNormalizeSelector(selector)),\n function(node) {\n return node === root || (typeof root.contains === \"function\" && root.contains(node));\n },\n );\n };\n };\n }\n var value = Reflect.get(utilsTarget, utilsProp, utilsTarget);\n return typeof value === \"function\" ? value.bind(utilsTarget) : value;\n },\n });\n }\n var value = Reflect.get(target, prop, target);\n return typeof value === \"function\" ? value.bind(target) : value;\n },\n });\n var __hfBaseHyperframes = window.__hyperframes;\n var __hfScopedHyperframes = !__hfBaseHyperframes\n ? __hfBaseHyperframes\n : Object.assign({}, __hfBaseHyperframes, {\n getVariables: function() {\n var byComp = window.__hfVariablesByComp;\n var scoped = byComp && __hfTimelineCompId ? byComp[__hfTimelineCompId] : null;\n return scoped ? Object.assign({}, scoped) : {};\n },\n });\n var __hfRun = function() {\n try {\n (function(document, gsap, window, __hyperframes) {\n${e.replace(/<\\/(script)/gi,\"<\\\\/$1\")}\n }).call(window, __hfScopedDocument, __hfScopedGsap, __hfScopedWindow, __hfScopedHyperframes);\n } catch (_err) {\n console.error(__hfErrorLabel, __hfCompId, _err);\n }\n };\n __hfFindRoot();\n __hfRun();\n})();`}var Wd=[\"data-composition-id\",\"data-composition-file\",\"data-start\",\"data-duration\",\"data-end\",\"data-track-index\",\"data-track\",\"data-composition-src\",\"data-hf-authored-duration\",\"data-hf-authored-end\"];function ba(e){let t=e.getAttribute(\"id\")?.trim();for(let n of Wd)e.removeAttribute(n);t&&(e.removeAttribute(\"id\"),e.setAttribute(\"data-hf-authored-id\",t)),e.setAttribute(\"data-hf-inner-root\",\"true\")}var Ud=8e3,Vd=/^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:)(?!\\/\\/)(?!\\/)(?!\\.\\.?\\/).+/,zd=/\\burl\\(\\s*([\"']?)([^)\"']+)\\1\\s*\\)/g,jd=[\"src\",\"href\"];function qd(e){return!e||e.startsWith(\"http://\")||e.startsWith(\"https://\")||e.startsWith(\"//\")||e.startsWith(\"data:\")||e.startsWith(\"#\")||e.startsWith(\"/\")}function Sa(e,t){if(!t)return e;let n=e.trim();if(qd(n)||!n.startsWith(\"../\")&&n!==\"..\")return e;try{return new URL(n,t).href}catch{return e}}function Ea(e,t){return!t||!e?e:e.replace(zd,(n,i,r)=>{let o=Sa(r||\"\",t);return o===r?n:`url(${i||\"\"}${o}${i||\"\"})`})}function $d(e,t){for(let n of Array.from(e.querySelectorAll(\"[src], [href]\")))for(let i of jd){let r=n.getAttribute(i);if(r==null)continue;let o=Sa(r,t);o!==r&&n.setAttribute(i,o)}}function Kd(e,t){for(let n of Array.from(e.querySelectorAll(\"[style]\"))){let i=n.getAttribute(\"style\");if(i==null)continue;let r=Ea(i,t);r!==i&&n.setAttribute(\"style\",r)}}function Jd(e,t){for(let n of Array.from(e.querySelectorAll(\"style\"))){let i=n.textContent||\"\",r=Ea(i,t);r!==i&&(n.textContent=r)}}function Aa(e,t){if(t){$d(e,t),Kd(e,t),Jd(e,t);for(let n of Array.from(e.querySelectorAll(\"template\")))Aa(n.content,t)}}function Xd(e,t){return`${e}__hf${t}`}var Yd=e=>new Promise(t=>{let n=!1,i=Date.now(),r=null,o=a=>{n||(n=!0,r!=null&&window.clearTimeout(r),t({status:a,elapsedMs:Math.max(0,Date.now()-i)}))};e.addEventListener(\"load\",()=>o(\"load\"),{once:!0}),e.addEventListener(\"error\",()=>o(\"error\"),{once:!0}),r=window.setTimeout(()=>o(\"timeout\"),Ud)});function or(e){for(;e.firstChild;)e.removeChild(e.firstChild);e.textContent=\"\"}function Qd(e){let t=document.importNode(e,!0);ba(t);let n=t.getAttribute(\"data-width\"),i=t.getAttribute(\"data-height\");return t.style.width=n?`${n}px`:\"100%\",t.style.height=i?`${i}px`:\"100%\",t}function ya(e,t){let n=e.trim();if(!n)return e;try{return Vd.test(n)&&!n.startsWith(\"#\")&&!n.startsWith(\"?\")?new URL(n,document.baseURI).toString():t?new URL(n,t).toString():new URL(n,document.baseURI).toString()}catch{return e}}function rr(e,t){try{let n=new URL(e),i=new URL(t);return n.search=\"\",n.hash=\"\",i.search=\"\",i.hash=\"\",n.href===i.href}catch{return!1}}function On(e){let t=(e.getAttribute(\"data-composition-id\")||\"\").trim()||null;return{authoredCompositionId:(e.getAttribute(\"data-hf-original-composition-id\")||t||\"\").trim()||null,runtimeCompositionId:t}}function Zd(e){let t=new Map;for(let n of e){let i=On(n).authoredCompositionId||\"\";i&&t.set(i,(t.get(i)||0)+1)}return t}function wa(e){let t=On(e).authoredCompositionId;return t?!!document.querySelector(`template#${CSS.escape(t)}-template`):!1}function ef(e){return!!e.querySelector('[data-hf-inner-root=\"true\"]')}function tf(e){return e.hasAttribute(\"data-composition-src\")?!0:wa(e)?e.children.length===0||e.hasAttribute(\"data-hf-original-composition-id\")?!0:ef(e):!1}function ar(){return Array.from(document.querySelectorAll(\"[data-composition-src], [data-composition-id]\")).filter(t=>t.hasAttribute(\"data-composition-src\")?!0:wa(t))}function Ca(){let e=window.__hfVariablesByComp;if(!e)return;let t=new Set(ar().map(n=>On(n).runtimeCompositionId).filter(n=>!!n));for(let n of Object.keys(e))t.has(n)||delete e[n]}function Fa(e,t=Zd(e)){let n=new Map,i=new Map;for(let r of e){let{authoredCompositionId:o,runtimeCompositionId:a}=On(r),u=tf(r);if(!o){i.set(r,{authoredCompositionId:null,runtimeCompositionId:a});continue}let s=(t.get(o)||0)>1,l=a||o;if(u){let d=s?(n.get(o)||0)+1:0;s&&n.set(o,d),l=s?Xd(o,d):o,s?r.setAttribute(\"data-hf-original-composition-id\",o):r.removeAttribute(\"data-hf-original-composition-id\"),r.setAttribute(\"data-composition-id\",l),a&&a!==l&&window.__hfVariablesByComp&&delete window.__hfVariablesByComp[a]}i.set(r,{authoredCompositionId:o,runtimeCompositionId:l})}return i}async function sr(e){let t=null;e.authoredCompositionId&&(t=Array.from(e.sourceNode.querySelectorAll(\"[data-composition-id]\")).find(x=>x instanceof HTMLElement&&x.getAttribute(\"data-composition-id\")===e.authoredCompositionId)??null);let n=t??e.sourceNode,i=t?.getAttribute(\"data-composition-id\")?.trim()||e.authoredCompositionId||null,r=e.runtimeCompositionId||i||null,o=t?.getAttribute(\"id\")?.trim()||null,a=r?`[data-composition-id=\"${CSS.escape(r)}\"]`:void 0;if(e.headLinks)for(let f of e.headLinks){let x=(f.getAttribute(\"href\")||\"\").trim();if(!x)continue;let S=e.compositionUrl?new URL(x,e.compositionUrl).href:x;if(e.compositionUrl&&rr(S,e.compositionUrl)||document.head.querySelector(`link[href=\"${CSS.escape(S)}\"]`))continue;let y=f.cloneNode(!0);y.href=S,document.head.appendChild(y),e.injectedLinks.push(y)}let u=f=>{for(let x of f){let S=x.cloneNode(!0);S instanceof HTMLStyleElement&&(i&&(S.textContent=ga(S.textContent||\"\",i,a,o,{scopeRootSelectors:!0})),document.head.appendChild(S),e.injectedStyles.push(S))}};e.headStyles&&u(e.headStyles),u(Array.from(n.querySelectorAll(\"style\")));let s=[];if(e.headScripts)for(let f of e.headScripts){let x=f.getAttribute(\"type\")?.trim()??\"\",S=f.getAttribute(\"src\")?.trim()??\"\";if(S){let y=ya(S,e.compositionUrl);if(e.compositionUrl&&rr(y,e.compositionUrl))continue;s.push({kind:\"external\",src:y,type:x})}else{let y=f.textContent?.trim()??\"\";y&&s.push({kind:\"inline\",content:y,type:x,scopeCompositionId:i})}}let l=Array.from(n.querySelectorAll(\"script\")),d=[...s];for(let f of l){let x=f.getAttribute(\"type\")?.trim()??\"\",S=f.getAttribute(\"src\")?.trim()??\"\";if(S){let y=ya(S,e.compositionUrl);if(e.compositionUrl&&rr(y,e.compositionUrl)){f.parentNode?.removeChild(f);continue}d.push({kind:\"external\",src:y,type:x})}else{let y=f.textContent?.trim()??\"\";y&&d.push({kind:\"inline\",content:y,type:x,scopeCompositionId:i})}f.parentNode?.removeChild(f)}let m=Array.from(n.querySelectorAll(\"style\"));for(let f of m)f.parentNode?.removeChild(f);if(t){let f=t.getAttribute(\"data-width\"),x=t.getAttribute(\"data-height\"),S=e.parseDimensionPx(f),y=e.parseDimensionPx(x);f&&e.host.setAttribute(\"data-width\",f),x&&e.host.setAttribute(\"data-height\",x),S&&e.host instanceof HTMLElement&&(e.host.style.width=S),y&&e.host instanceof HTMLElement&&(e.host.style.height=y),t.hasAttribute(\"data-timeline-locked\")&&e.host.setAttribute(\"data-timeline-locked\",\"\"),e.host.appendChild(Qd(t))}else e.hasTemplate?e.host.appendChild(document.importNode(n,!0)):e.host.innerHTML=e.fallbackBodyInnerHtml;r&&nf(e,n,r);for(let f of d){let x=document.createElement(\"script\");if(f.type&&(x.type=f.type),x.async=!1,f.kind===\"external\"?x.src=f.src:f.type.toLowerCase()===\"module\"?x.textContent=f.content:f.scopeCompositionId?x.textContent=xa(f.content,f.scopeCompositionId,\"[HyperFrames] composition script error:\",a,r||f.scopeCompositionId,o):x.textContent=`(function(){${f.content}})();`,document.body.appendChild(x),e.injectedScripts.push(x),f.kind===\"external\"){let S=await Yd(x);S.status!==\"load\"&&e.onDiagnostic?.({code:\"external_composition_script_load_issue\",details:{hostCompositionId:e.authoredCompositionId,runtimeCompositionId:e.runtimeCompositionId,hostCompositionSrc:e.hostCompositionSrc,resolvedScriptSrc:f.src,loadStatus:S.status,elapsedMs:S.elapsedMs}})}}}async function _a(e){let t=ar();if(Ca(),t.length===0)return;let n=Fa(t),i=t.filter(r=>{if(r.hasAttribute(\"data-composition-src\")||r.children.length>0)return!1;let o=n.get(r)?.authoredCompositionId;return o?!!document.querySelector(`template#${CSS.escape(o)}-template`):!1});if(i.length!==0)for(let r of i){let o=n.get(r),a=o?.authoredCompositionId;if(!a)continue;let u=document.querySelector(`template#${CSS.escape(a)}-template`);or(r),await sr({host:r,authoredCompositionId:a,runtimeCompositionId:o?.runtimeCompositionId||a,hostCompositionSrc:`template#${a}-template`,sourceNode:u.content,hasTemplate:!0,fallbackBodyInnerHtml:\"\",compositionUrl:null,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,injectedLinks:e.injectedLinks,parseDimensionPx:e.parseDimensionPx,onDiagnostic:e.onDiagnostic})}}async function va(e){let t=ar();if(Ca(),t.length===0)return;let n=Fa(t),i=t.filter(r=>r.hasAttribute(\"data-composition-src\"));i.length!==0&&await Promise.all(i.map(async r=>{let o=r.getAttribute(\"data-composition-src\");if(!o)return;let a=n.get(r),u=a?.authoredCompositionId||null,s=a?.runtimeCompositionId||u||null,l=null;try{l=new URL(o,document.baseURI)}catch{l=null}or(r);try{let d=u!=null?document.querySelector(`template#${CSS.escape(u)}-template`):null;if(d){await sr({host:r,authoredCompositionId:u,runtimeCompositionId:s,hostCompositionSrc:o,sourceNode:d.content,hasTemplate:!0,fallbackBodyInnerHtml:\"\",compositionUrl:l,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,injectedLinks:e.injectedLinks,parseDimensionPx:e.parseDimensionPx,onDiagnostic:e.onDiagnostic});return}let m=await fetch(o);if(!m.ok)throw new Error(`HTTP ${m.status}`);let f=await m.text(),S=new DOMParser().parseFromString(f,\"text/html\");Aa(S,l);let y=(u?S.querySelector(`template#${CSS.escape(u)}-template`):null)??S.querySelector(\"template\"),b=y?y.content:S.body,A=y?void 0:Array.from(S.head.querySelectorAll(\"style\")),_=y?void 0:Array.from(S.head.querySelectorAll(\"script\")),T=Array.from(S.head.querySelectorAll('link[rel=\"stylesheet\"], link[rel=\"preconnect\"]'));await sr({host:r,authoredCompositionId:u,runtimeCompositionId:s,hostCompositionSrc:o,sourceNode:b,hasTemplate:!!y,fallbackBodyInnerHtml:S.body.innerHTML,compositionUrl:l,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,injectedLinks:e.injectedLinks,parseDimensionPx:e.parseDimensionPx,headStyles:A,headScripts:_,headLinks:T,declaredVariableDefaults:Nt(S.documentElement),onDiagnostic:e.onDiagnostic})}catch(d){e.onDiagnostic?.({code:\"external_composition_load_failed\",details:{hostCompositionId:u,runtimeCompositionId:s,hostCompositionSrc:o,errorMessage:d instanceof Error?d.message:\"unknown_error\"}}),or(r)}}))}function nf(e,t,n){let r={...e.declaredVariableDefaults??(t instanceof Element?Nt(t):{}),...to(e.host)};Zr(e.host),Object.keys(r).length>0?(window.__hfVariablesByComp||(window.__hfVariablesByComp={}),window.__hfVariablesByComp[n]=r,fi(e.host,{...r,...hn()})):window.__hfVariablesByComp&&delete window.__hfVariablesByComp[n]}function rf(e){return e instanceof HTMLElement?e.dataset.captionWrapper!==\"true\"?e:e.querySelector(\":scope > span\")??null:null}function of(){let e=[],t=document.querySelectorAll(\".caption-group\");for(let n of t)for(let i of n.children){if(!(i instanceof HTMLElement))continue;let r=i.dataset.captionWrapper===\"true\"?i.querySelector(\":scope > span\"):i.tagName===\"SPAN\"?i:null;r&&e.push(r)}return e}function sf(e){let t=e.parentElement;if(t?.dataset.captionWrapper===\"true\")return t;let n=document.createElement(\"span\");return n.style.display=\"inline-block\",n.dataset.captionWrapper=\"true\",e.parentNode?.insertBefore(n,e),n.appendChild(e),n}function lr(){let e=window.gsap;e&&document.querySelectorAll(\".caption-group\").length!==0&&fetch(\"caption-overrides.json\").then(t=>t.ok?t.json():null).then(t=>{if(!t||!Array.isArray(t)||t.length===0)return;let n=of();for(let i of t){let r=null;if(i.wordId&&(r=rf(document.getElementById(i.wordId))),!r&&i.wordIndex!==void 0&&(r=n[i.wordIndex]??null),!r)continue;let o={},a={};if(i.x!==void 0&&(o.x=i.x),i.y!==void 0&&(o.y=i.y),i.scale!==void 0&&(o.scale=i.scale),i.rotation!==void 0&&(o.rotation=i.rotation),i.opacity!==void 0&&(a.opacity=i.opacity),i.fontSize!==void 0&&(a.fontSize=`${i.fontSize}px`),i.fontWeight!==void 0&&(a.fontWeight=i.fontWeight),i.fontFamily!==void 0&&(a.fontFamily=i.fontFamily),i.activeColor||i.dimColor){let s=e.getTweensOf(r).filter(d=>d.vars.color!==void 0).sort((d,m)=>d.startTime()-m.startTime()),l=s[0]?String(s[0].vars.color):\"\";for(let d of s)String(d.vars.color)===l?i.dimColor&&(d.vars.color=i.dimColor):i.activeColor&&(d.vars.color=i.activeColor);i.dimColor&&e.set(r,{color:i.dimColor})}if(Object.keys(a).length>0&&e.set(r,a),Object.keys(o).length>0){let u=sf(r);e.set(u,o)}}}).catch(()=>{})}var cr=\"data-hf-edit-base-x\",dr=\"data-hf-edit-base-y\",bt=\"data-hf-edit-original-translate\",Bn=e=>{let t=parseFloat(e??\"\");return Number.isFinite(t)?t:0},af=e=>{let t=[],n=0,i=\"\";for(let r of e.trim())r===\"(\"&&(n+=1),r===\")\"&&(n=Math.max(0,n-1)),/\\s/.test(r)&&n===0?(i&&t.push(i),i=\"\"):i+=r;return i&&t.push(i),t},Ta=/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)px$/,ur=(e,t)=>Ta.test(e)&&Ta.test(t)?`${parseFloat(e)+parseFloat(t)}px`:`calc(${e} + ${t})`,lf=(e,t,n)=>{if(!e||e===\"none\")return`${t} ${n}`;let[i,r,o]=af(e);if(i===void 0)return`${t} ${n}`;if(r===void 0)return`${ur(i,t)} ${n}`;let a=o===void 0?\"\":` ${o}`;return`${ur(i,t)} ${ur(r,n)}${a}`},uf=e=>{try{e.ownerDocument.defaultView?.gsap?.getProperty?.(e,\"x\")}catch{}},cf=e=>{let t=e.style.getPropertyValue(\"translate\").trim();if(t)return t===\"none\"?\"\":t;try{let n=e.ownerDocument.defaultView,i=n?n.getComputedStyle(e).getPropertyValue(\"translate\").trim():\"\";return i===\"none\"?\"\":i}catch{return\"\"}},fr=new WeakMap;function df(e,t){let n=fr.get(e);if(!t?.force&&n!==void 0&&e.style.getPropertyValue(\"translate\")!==n){ot(\"position_edit_fold_skipped\",{hfId:e.getAttribute(\"data-hf-id\")});return}let i=Bn(e.getAttribute(\"data-x\"))-Bn(e.getAttribute(cr)),r=Bn(e.getAttribute(\"data-y\"))-Bn(e.getAttribute(dr));e.hasAttribute(bt)||e.setAttribute(bt,cf(e)),n===void 0&&uf(e);let o=e.getAttribute(bt)??\"\",a=lf(o,`${i}px`,`${r}px`);e.style.setProperty(\"translate\",a),fr.set(e,e.style.getPropertyValue(\"translate\"))}function Hn(e,t){let n=e.defaultView?.HTMLElement,i=u=>n?u instanceof n:typeof u.style?.setProperty==\"function\",r=e.querySelectorAll(`[${bt}]:not([${cr}]):not([${dr}])`);for(let u=0;u<r.length;u++){let s=r[u];if(s===void 0||!i(s))continue;let l=s.getAttribute(bt)??\"\";l===\"\"?s.style.removeProperty(\"translate\"):s.style.setProperty(\"translate\",l),s.removeAttribute(bt),fr.delete(s)}let o=e.querySelectorAll(`[${cr}], [${dr}]`),a=0;for(let u=0;u<o.length;u++){let s=o[u];s===void 0||!i(s)||(df(s,t),a+=1)}return a}var Ma=\"__hfPositionEditsSeekReapplyWrapped\",Na=new WeakSet,La=new WeakMap,Ra=new WeakMap;function ka(e){let t=e,n=()=>{try{Hn(t.document)}catch{}},i=m=>typeof m==\"function\"&&(Na.has(m)||!!m[Ma]),r=m=>{Na.add(m);try{Object.defineProperty(m,Ma,{value:!0})}catch{}},o=m=>{if(typeof m!=\"function\"||i(m))return m;let f=function(...x){let S=m.apply(this,x);return n(),S};return r(f),f},a=(m,f)=>{let x=La.get(m);if(x?.has(f))return!0;let S=Object.getOwnPropertyDescriptor(m,f);if(S?.configurable===!1){let A=m[f];return typeof A==\"function\"&&(m[f]=o(A),n()),!1}let y=m[f],b=S?.set;return Object.defineProperty(m,f,{configurable:!0,enumerable:S?.enumerable??!0,get:()=>y,set:A=>{y=o(A),b?.call(m,A)}}),y=o(y),x??(x=new Set),x.add(f),La.set(m,x),n(),!0},u=(m,f)=>{let x=Ra.get(t),S=Object.getOwnPropertyDescriptor(t,m);if(!x?.has(m)){if(S?.configurable===!1){let A=t[m];return A?a(A,f):!1}let b=t[m];Object.defineProperty(t,m,{configurable:!0,enumerable:S?.enumerable??!0,get:()=>b,set:A=>{b=A,b&&a(b,f)}}),x??(x=new Set),x.add(m),Ra.set(t,x)}let y=t[m];return y?a(y,f):!1},s=()=>{let m=u(\"__hf\",\"seek\"),f=u(\"__player\",\"renderSeek\");return m&&f};if(s())return;let l=120,d=t.setInterval(()=>{if(s()){t.clearInterval(d);return}l-=1,l<=0&&t.clearInterval(d)},50)}function Gn(e){let t=window,i=e.closest(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")?.trim()??\"\",r=i?t.__hfVariablesByComp?.[i]:void 0;if(r)return r;let o=t.__hyperframes?.getVariables?.();return o&&typeof o==\"object\"?o:t.__hfVariables??{}}function Wn(e){return typeof e==\"string\"||typeof e==\"number\"||typeof e==\"boolean\"}var Da=new Set([\"img\",\"video\",\"audio\",\"source\"]);function ff(e){if(typeof e==\"string\"&&e.length>0)return e;if(e!==null&&typeof e==\"object\"){let t=e.url;if(typeof t==\"string\"&&t.length>0)return t}return null}function mf(e){let t=e.replace(/[\\u0000-\\u0020]/g,\"\"),n=/^([a-z][a-z0-9+.-]*):/i.exec(t);if(!n)return!0;let i=n[1]?.toLowerCase();return i?i===\"https\"||i===\"http\"||i===\"blob\"?!0:i===\"data\"?/^data:image\\//i.test(t):!1:!1}function pf(e){return e.replace(/[;{}<>\\r\\n]/g,\"\")}function hf(e){if(Wn(e))return String(e);if(e!==null&&typeof e==\"object\"){let t=e.name;if(typeof t==\"string\"&&t.length>0)return t}return null}function mr(e,t){let n=e.closest(\"[data-composition-id]\"),i=t.get(n);if(i)return i;let r=Gn(e);return t.set(n,r),r}function gf(e,t){if(e.childElementCount===0){e.textContent=t;return}let n=!1;for(let i of Array.from(e.childNodes))i.nodeType===Node.TEXT_NODE&&(i.nodeValue=n?\"\":t,n=!0);n||e.insertBefore(e.ownerDocument.createTextNode(t),e.firstChild)}function xf(e){return e.querySelector(\"[data-hf-root]\")??e.getElementById(\"stage\")??e.body?.firstElementChild??e.body}function bf(e,t){let n=new Set,i=xf(e);i&&n.add(i);for(let r of Array.from(e.querySelectorAll(\"[data-composition-id]\")))n.add(r);for(let r of n){let o=mr(r,t);for(let[a,u]of Object.entries(o)){let s=hf(u);s!==null&&r instanceof HTMLElement&&r.style.setProperty(`--${a}`,pf(s))}}}function pr(e){let t=new Map;bf(e,t);for(let n of Array.from(e.querySelectorAll(\"[data-var-src]\"))){let i=n.getAttribute(\"data-var-src\")?.trim();if(!i)continue;if(!Da.has(n.tagName.toLowerCase())){console.warn(`[hyperframes] Ignoring data-var-src on <${n.tagName.toLowerCase()}>: variable-bound src is only allowed on ${Array.from(Da).join(\"/\")}.`);continue}let r=ff(mr(n,t)[i]);if(r!==null){if(!mf(r)){console.warn(`[hyperframes] Ignoring data-var-src=\"${i}\": unsafe URL protocol.`);continue}n.setAttribute(\"src\",r)}}for(let n of Array.from(e.querySelectorAll(\"[data-var-text]\"))){let i=n.getAttribute(\"data-var-text\")?.trim();if(!i)continue;let r=mr(n,t)[i];Wn(r)&&gf(n,String(r))}}var ge=class extends Error{constructor(n,i=null){super(i==null?n:`${n} at line ${i}`);he(this,\"lineNumber\");this.name=\"CubeLutParseError\",this.lineNumber=i}},yf=[0,0,0],Sf=[1,1,1],gr=64;function Ef(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];if(i==='\"'&&(t=!t),i===\"#\"&&!t)return e.slice(0,n)}return e}function Qe(e,t){let n=Number(e);if(!Number.isFinite(n))throw new ge(`Invalid number \"${e}\"`,t);return n}function Ia(e,t,n){if(e.length!==3)throw new ge(`${t} expects three numbers`,n);return[Qe(e[0],n),Qe(e[1],n),Qe(e[2],n)]}function Pa(e,t,n){if(!e)throw new ge(`${t} expects a size`,n);let i=Number(e);if(!Number.isInteger(i)||i<2)throw new ge(`${t} must be an integer greater than 1`,n);return i}function Af(e,t){if(t[0]<=e[0]||t[1]<=e[1]||t[2]<=e[2])throw new ge(\"DOMAIN_MAX values must be greater than DOMAIN_MIN values\")}function wf(e){let t=/^TITLE\\s+\"([^\"]*)\"\\s*$/i.exec(e);if(t)return t[1]??null;let n=/^TITLE\\s+(.+)\\s*$/i.exec(e);return n&&(n[1]??\"\").trim()||null}function Cf(e){return/^[+-]?(?:\\d|\\.\\d)/.test(e)}function Oa(e,t={}){let n=t.maxSize??gr,i=null,r=yf,o=Sf,a=null,u=null,s=[],l=e.replace(/^\\uFEFF/,\"\").split(/\\r?\\n/);for(let m=0;m<l.length;m++){let f=m+1,x=Ef(l[m]??\"\").trim();if(!x)continue;let S=x.split(/\\s+/),y=(S[0]??\"\").toUpperCase(),b=S.slice(1);if(y===\"TITLE\"){i=wf(x);continue}if(y===\"DOMAIN_MIN\"){r=Ia(b,y,f);continue}if(y===\"DOMAIN_MAX\"){o=Ia(b,y,f);continue}if(y===\"LUT_3D_INPUT_RANGE\"){if(b.length!==2)throw new ge(`${y} expects two numbers`,f);let A=Qe(b[0],f),_=Qe(b[1],f);if(_<=A)throw new ge(\"LUT_3D_INPUT_RANGE max must exceed min\",f);r=[A,A,A],o=[_,_,_];continue}if(y===\"LUT_1D_SIZE\"){a=Pa(b[0],y,f);continue}if(y===\"LUT_3D_SIZE\"){if(u=Pa(b[0],y,f),u>n)throw new ge(`LUT_3D_SIZE ${u} exceeds max ${n}`,f);continue}if(!Cf(y)){if(y.startsWith(\"LUT_\"))throw new ge(`Unsupported cube keyword ${y}`,f);continue}if(!u)throw a?new ge(\"1D cube LUTs are not supported yet\",f):new ge(\"LUT data appears before LUT_3D_SIZE\",f);if(S.length!==3)throw new ge(\"LUT data rows must contain three numbers\",f);s.push(Qe(S[0],f),Qe(S[1],f),Qe(S[2],f))}if(a&&u)throw new ge(\"Mixed 1D and 3D cube LUTs are not supported yet\");if(!u)throw a?new ge(\"1D cube LUTs are not supported yet\"):new ge(\"Missing LUT_3D_SIZE\");Af(r,o);let d=u*u*u;if(s.length!==d*3)throw new ge(`Expected ${d} LUT rows for size ${u}, found ${s.length/3}`);return{title:i,size:u,domainMin:r,domainMax:o,data:new Float32Array(s)}}function Ff(e){return Number.isFinite(e)?Math.min(1,Math.max(0,e)):0}function hr(e){return Math.round(Ff(e)*255)}function Ba(e){let t=e.size,n=t*t,i=t,r=new Uint8Array(n*i*4);for(let o=0;o<t;o++)for(let a=0;a<t;a++)for(let u=0;u<t;u++){let s=((o*t+a)*t+u)*3,l=(a*n+o*t+u)*4;r[l]=hr(e.data[s]??0),r[l+1]=hr(e.data[s+1]??0),r[l+2]=hr(e.data[s+2]??0),r[l+3]=255}return{width:n,height:i,data:r}}var ze=new Map,_f=\"data-hf-color-grading-canvas\",vf=\"__hf_color_grading_canvas__\";function ja(){if(typeof MutationObserver>\"u\"||typeof document>\"u\")return;let e=document.documentElement;if(!e)return;let t=i=>{i instanceof HTMLElement&&(i.hasAttribute(Sn)||i.setAttribute(Sn,i.style.opacity))},n=i=>{if(i instanceof Element){i.hasAttribute(Ue)&&t(i);for(let r of i.querySelectorAll(`[${Ue}]`))t(r)}};n(e),new MutationObserver(i=>{for(let r of i){for(let o of r.addedNodes)n(o);r.type===\"attributes\"&&r.target instanceof Element&&r.target.hasAttribute(Ue)&&t(r.target)}}).observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Ue]})}var Tf=16,on={enabled:!1,position:.5,softness:0,lineWidth:2};function xr(e){let t=e.getAttribute(Ue);return t==null?null:Mo(t,Gn(e))}var Mf=[\"attribute vec2 a_pos;\",\"varying vec2 v_uv;\",\"void main(){\",\" v_uv = a_pos * 0.5 + 0.5;\",\" gl_Position = vec4(a_pos, 0.0, 1.0);\",\"}\"].join(`\n`),Nf=[\"#ifdef GL_FRAGMENT_PRECISION_HIGH\",\"precision highp float;\",\"#else\",\"precision mediump float;\",\"#endif\",\"varying vec2 v_uv;\",\"uniform sampler2D u_source;\",\"uniform sampler2D u_blurSource;\",\"uniform sampler2D u_lut;\",\"uniform vec2 u_resolution;\",\"uniform vec2 u_uvScale;\",\"uniform vec2 u_uvOffset;\",\"uniform float u_blurReady;\",\"uniform float u_lutEnabled;\",\"uniform float u_lutSize;\",\"uniform vec2 u_lutTextureSize;\",\"uniform vec3 u_lutDomainMin;\",\"uniform vec3 u_lutDomainMax;\",\"uniform float u_lutIntensity;\",\"uniform float u_exposure;\",\"uniform float u_contrast;\",\"uniform float u_highlights;\",\"uniform float u_shadows;\",\"uniform float u_whites;\",\"uniform float u_blacks;\",\"uniform float u_temperature;\",\"uniform float u_tint;\",\"uniform float u_vibrance;\",\"uniform float u_saturation;\",\"uniform float u_vignette;\",\"uniform float u_vignetteMidpoint;\",\"uniform float u_vignetteRoundness;\",\"uniform float u_vignetteFeather;\",\"uniform float u_grain;\",\"uniform float u_grainSize;\",\"uniform float u_grainRoughness;\",\"uniform float u_grainSeed;\",\"uniform float u_blur;\",\"uniform float u_pixelate;\",\"uniform float u_intensity;\",\"uniform float u_compareEnabled;\",\"uniform float u_comparePosition;\",\"uniform float u_compareSoftness;\",\"uniform float u_compareLineWidth;\",\"float lumaOf(vec3 c){ return dot(c, vec3(0.2126, 0.7152, 0.0722)); }\",\"float grainHash(vec2 p){ return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123); }\",\"float colorSaturation(vec3 c){ return max(max(c.r, c.g), c.b) - min(min(c.r, c.g), c.b); }\",\"vec2 clampUv(vec2 uv){ return clamp(uv, vec2(0.0), vec2(1.0)); }\",\"vec4 sampleSource(vec2 uv){ return texture2D(u_source, clampUv(uv)); }\",\"vec4 sampleBlur(vec2 uv){ return texture2D(u_blurSource, clampUv(uv)); }\",\"vec4 sampleMedia(vec2 uv){\",\" float pixel = clamp(u_pixelate, 0.0, 1.0);\",\" vec2 sampleUv = uv;\",\" if (pixel > 0.0) {\",\" float blockSize = mix(1.0, 48.0, pixel);\",\" vec2 cells = max(u_resolution / blockSize, vec2(1.0));\",\" sampleUv = (floor(clamp(uv, vec2(0.0), vec2(0.999999)) * cells) + 0.5) / cells;\",\" }\",\" vec4 base = sampleSource(sampleUv);\",\" float blur = clamp(u_blur, 0.0, 1.0);\",\" if (blur > 0.0 && u_blurReady > 0.5) {\",\" base = mix(base, sampleBlur(sampleUv), blur);\",\" }\",\" return base;\",\"}\",\"vec3 sampleLut(float r, float g, float b){\",\" float size = max(u_lutSize, 2.0);\",\" float x = (r + b * size + 0.5) / max(u_lutTextureSize.x, 1.0);\",\" float y = (g + 0.5) / max(u_lutTextureSize.y, 1.0);\",\" return texture2D(u_lut, vec2(x, y)).rgb;\",\"}\",\"vec3 applyLut(vec3 color){\",\" if (u_lutEnabled < 0.5) return color;\",\" float size = max(u_lutSize, 2.0);\",\" vec3 span = max(u_lutDomainMax - u_lutDomainMin, vec3(0.00001));\",\" vec3 scaled = clamp((color - u_lutDomainMin) / span, 0.0, 1.0) * (size - 1.0);\",\" vec3 lo = floor(scaled);\",\" vec3 hi = min(lo + 1.0, vec3(size - 1.0));\",\" vec3 f = scaled - lo;\",\" vec3 c000 = sampleLut(lo.r, lo.g, lo.b);\",\" vec3 c100 = sampleLut(hi.r, lo.g, lo.b);\",\" vec3 c010 = sampleLut(lo.r, hi.g, lo.b);\",\" vec3 c110 = sampleLut(hi.r, hi.g, lo.b);\",\" vec3 c001 = sampleLut(lo.r, lo.g, hi.b);\",\" vec3 c101 = sampleLut(hi.r, lo.g, hi.b);\",\" vec3 c011 = sampleLut(lo.r, hi.g, hi.b);\",\" vec3 c111 = sampleLut(hi.r, hi.g, hi.b);\",\" vec3 c00 = mix(c000, c100, f.r);\",\" vec3 c10 = mix(c010, c110, f.r);\",\" vec3 c01 = mix(c001, c101, f.r);\",\" vec3 c11 = mix(c011, c111, f.r);\",\" vec3 c0 = mix(c00, c10, f.g);\",\" vec3 c1 = mix(c01, c11, f.g);\",\" vec3 lutColor = mix(c0, c1, f.b);\",\" return mix(color, lutColor, clamp(u_lutIntensity, 0.0, 1.0));\",\"}\",\"void main(){\",\" vec2 uv = (v_uv - u_uvOffset) / u_uvScale;\",\" if (uv.x < 0.0 || uv.y < 0.0 || uv.x > 1.0 || uv.y > 1.0) {\",\" gl_FragColor = vec4(0.0);\",\" return;\",\" }\",\" vec4 originalSample = sampleSource(uv);\",\" vec4 sampleColor = sampleMedia(uv);\",\" vec3 original = originalSample.rgb;\",\" vec3 color = sampleColor.rgb * pow(2.0, u_exposure);\",\" float y = lumaOf(color);\",\" float shadowMask = 1.0 - smoothstep(0.0, 0.65, y);\",\" float highlightMask = smoothstep(0.35, 1.0, y);\",\" color += u_shadows * 0.35 * shadowMask;\",\" color += u_highlights * 0.35 * highlightMask;\",\" float blackPoint = clamp(u_blacks * 0.18, -0.18, 0.18);\",\" float whitePoint = clamp(1.0 - u_whites * 0.18, 0.82, 1.18);\",\" color = (color - blackPoint) / max(whitePoint - blackPoint, 0.2);\",\" color.r += u_temperature * 0.08 + u_tint * 0.04;\",\" color.b -= u_temperature * 0.08 - u_tint * 0.04;\",\" color.g -= u_tint * 0.08;\",\" color = (color - 0.5) * max(0.0, 1.0 + u_contrast) + 0.5;\",\" float satLuma = lumaOf(color);\",\" float currentSat = clamp(colorSaturation(color), 0.0, 1.0);\",\" float skinLike = smoothstep(0.02, 0.18, color.r - color.g) * smoothstep(0.0, 0.16, color.g - color.b) * smoothstep(0.18, 0.82, satLuma);\",\" float vibranceWeight = (1.0 - currentSat * 0.72) * mix(1.0, 0.55, skinLike);\",\" color = mix(vec3(satLuma), color, max(0.0, 1.0 + u_vibrance * vibranceWeight));\",\" color = mix(vec3(satLuma), color, max(0.0, 1.0 + u_saturation));\",\" color = clamp(color, 0.0, 1.0);\",\" color = clamp(applyLut(color), 0.0, 1.0);\",\" vec2 vignetteAspect = u_resolution.x > u_resolution.y\",\" ? vec2(u_resolution.x / max(u_resolution.y, 1.0), 1.0)\",\" : vec2(1.0, u_resolution.y / max(u_resolution.x, 1.0));\",\" vec2 vignetteUv = abs((v_uv - vec2(0.5)) * 2.0) * vignetteAspect;\",\" float vignettePower = mix(8.0, 1.8, clamp(u_vignetteRoundness * 0.5 + 0.5, 0.0, 1.0));\",\" float vignetteDistance = pow(pow(vignetteUv.x, vignettePower) + pow(vignetteUv.y, vignettePower), 1.0 / vignettePower);\",\" float vignetteMidpoint = mix(0.22, 1.08, clamp(u_vignetteMidpoint, 0.0, 1.0));\",\" float vignetteFeather = mix(0.08, 0.72, clamp(u_vignetteFeather, 0.0, 1.0));\",\" float vignetteMask = smoothstep(vignetteMidpoint, vignetteMidpoint + vignetteFeather, vignetteDistance);\",\" color *= 1.0 - vignetteMask * clamp(u_vignette, 0.0, 1.0) * 0.75;\",\" float grainAmount = clamp(u_grain, 0.0, 1.0);\",\" if (grainAmount > 0.0) {\",\" float grainPixelSize = mix(1.0, 6.0, clamp(u_grainSize, 0.0, 1.0));\",\" vec2 grainCoord = floor(gl_FragCoord.xy / grainPixelSize) + vec2(u_grainSeed, u_grainSeed * 1.37);\",\" float grainBase = grainHash(grainCoord) - grainHash(grainCoord + vec2(19.19, 73.31));\",\" float grainFine = grainHash(gl_FragCoord.xy + vec2(u_grainSeed * 2.11, u_grainSeed * 0.71)) - 0.5;\",\" float grain = mix(grainBase * 0.7, grainBase + grainFine * 0.35, clamp(u_grainRoughness, 0.0, 1.0));\",\" float grainLuma = lumaOf(color);\",\" float grainMask = smoothstep(0.02, 0.55, grainLuma) * (1.0 - smoothstep(0.88, 1.0, grainLuma));\",\" color += grain * grainAmount * mix(0.025, 0.08, grainMask);\",\" }\",\" color = clamp(color, 0.0, 1.0);\",\" vec3 graded = mix(original, color, u_intensity);\",\" if (u_compareEnabled > 0.5) {\",\" float pos = clamp(u_comparePosition, 0.0, 1.0);\",\" float softness = max(u_compareSoftness, 0.00001);\",\" float afterMask = smoothstep(pos - softness, pos + softness, v_uv.x);\",\" vec3 splitColor = mix(original, graded, afterMask);\",\" float lineMask = 0.0;\",\" if (u_compareLineWidth > 0.0) {\",\" float lineWidth = max(u_compareLineWidth / max(u_resolution.x, 1.0), 0.00001);\",\" lineMask = 1.0 - smoothstep(lineWidth, lineWidth * 1.8, abs(v_uv.x - pos));\",\" }\",\" gl_FragColor = vec4(mix(splitColor, vec3(1.0), lineMask * 0.82), sampleColor.a);\",\" return;\",\" }\",\" gl_FragColor = vec4(graded, sampleColor.a);\",\"}\"].join(`\n`),Lf=[\"#ifdef GL_FRAGMENT_PRECISION_HIGH\",\"precision highp float;\",\"#else\",\"precision mediump float;\",\"#endif\",\"varying vec2 v_uv;\",\"uniform sampler2D u_source;\",\"uniform vec2 u_resolution;\",\"uniform vec2 u_direction;\",\"uniform float u_radius;\",\"vec4 readSource(vec2 uv){\",\" vec4 color = texture2D(u_source, clamp(uv, vec2(0.0), vec2(1.0)));\",\" color.rgb *= color.a;\",\" return color;\",\"}\",\"void main(){\",\" vec2 stepUv = u_direction * max(u_radius, 0.0) / max(u_resolution, vec2(1.0)) / 12.0;\",\" vec4 color = readSource(v_uv) * 0.08077993;\",\" color += readSource(v_uv + stepUv * 1.0) * 0.07918038;\",\" color += readSource(v_uv - stepUv * 1.0) * 0.07918038;\",\" color += readSource(v_uv + stepUv * 2.0) * 0.07456928;\",\" color += readSource(v_uv - stepUv * 2.0) * 0.07456928;\",\" color += readSource(v_uv + stepUv * 3.0) * 0.06747307;\",\" color += readSource(v_uv - stepUv * 3.0) * 0.06747307;\",\" color += readSource(v_uv + stepUv * 4.0) * 0.05865827;\",\" color += readSource(v_uv - stepUv * 4.0) * 0.05865827;\",\" color += readSource(v_uv + stepUv * 5.0) * 0.04899551;\",\" color += readSource(v_uv - stepUv * 5.0) * 0.04899551;\",\" color += readSource(v_uv + stepUv * 6.0) * 0.03931982;\",\" color += readSource(v_uv - stepUv * 6.0) * 0.03931982;\",\" color += readSource(v_uv + stepUv * 7.0) * 0.03031761;\",\" color += readSource(v_uv - stepUv * 7.0) * 0.03031761;\",\" color += readSource(v_uv + stepUv * 8.0) * 0.02245983;\",\" color += readSource(v_uv - stepUv * 8.0) * 0.02245983;\",\" color += readSource(v_uv + stepUv * 9.0) * 0.01598624;\",\" color += readSource(v_uv - stepUv * 9.0) * 0.01598624;\",\" color += readSource(v_uv + stepUv * 10.0) * 0.01093238;\",\" color += readSource(v_uv - stepUv * 10.0) * 0.01093238;\",\" color += readSource(v_uv + stepUv * 11.0) * 0.00718308;\",\" color += readSource(v_uv - stepUv * 11.0) * 0.00718308;\",\" color += readSource(v_uv + stepUv * 12.0) * 0.00453456;\",\" color += readSource(v_uv - stepUv * 12.0) * 0.00453456;\",\" if (color.a > 0.0001) color.rgb /= color.a;\",\" gl_FragColor = color;\",\"}\"].join(`\n`);function ut(e){return e instanceof HTMLVideoElement||e instanceof HTMLImageElement}function Ha(e,t,n){let i=e.createShader(n);return i?(e.shaderSource(i,t),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS)?i:(M(\"runtime.colorGrading.compileShader\",e.getShaderInfoLog(i)),e.deleteShader(i),null)):null}function qa(e,t=Nf){let n=Ha(e,Mf,e.VERTEX_SHADER),i=Ha(e,t,e.FRAGMENT_SHADER);if(!n||!i)return n&&e.deleteShader(n),i&&e.deleteShader(i),null;let r=e.createProgram();return r?(e.attachShader(r,n),e.attachShader(r,i),e.linkProgram(r),e.deleteShader(n),e.deleteShader(i),e.getProgramParameter(r,e.LINK_STATUS)?r:(M(\"runtime.colorGrading.linkProgram\",e.getProgramInfoLog(r)),e.deleteProgram(r),null)):null}function yr(e,t=e.LINEAR){let n=e.createTexture();return n?(e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,null),n):null}function Rf(e,t){let n=qa(e,Lf);return n?{program:n,quad:t,position:e.getAttribLocation(n,\"a_pos\"),source:e.getUniformLocation(n,\"u_source\"),resolution:e.getUniformLocation(n,\"u_resolution\"),direction:e.getUniformLocation(n,\"u_direction\"),radius:e.getUniformLocation(n,\"u_radius\")}:null}function Ga(e){let t=yr(e),n=e.createFramebuffer();if(!t||!n)return t&&e.deleteTexture(t),n&&e.deleteFramebuffer(n),null;e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0);let i=e.checkFramebufferStatus(e.FRAMEBUFFER);return e.bindFramebuffer(e.FRAMEBUFFER,null),i!==e.FRAMEBUFFER_COMPLETE?(e.deleteTexture(t),e.deleteFramebuffer(n),null):{texture:t,framebuffer:n,width:1,height:1}}function Wa(e,t,n,i){t.width===n&&t.height===i||(t.width=n,t.height=i,e.bindTexture(e.TEXTURE_2D,t.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,n,i,0,e.RGBA,e.UNSIGNED_BYTE,null))}function $a(e){let t=e.getContext(\"webgl\",{alpha:!0,premultipliedAlpha:!1,preserveDrawingBuffer:!0});if(!t)return null;let n=qa(t),i=yr(t),r=yr(t,t.NEAREST);if(!n||!i||!r)return n&&t.deleteProgram(n),i&&t.deleteTexture(i),r&&t.deleteTexture(r),null;let o=t.createBuffer();return o?(t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),t.STATIC_DRAW),{gl:t,program:{program:n,texture:i,lutTexture:r,quad:o,position:t.getAttribLocation(n,\"a_pos\"),source:t.getUniformLocation(n,\"u_source\"),blurSource:t.getUniformLocation(n,\"u_blurSource\"),lut:t.getUniformLocation(n,\"u_lut\"),resolution:t.getUniformLocation(n,\"u_resolution\"),uvScale:t.getUniformLocation(n,\"u_uvScale\"),uvOffset:t.getUniformLocation(n,\"u_uvOffset\"),blurReady:t.getUniformLocation(n,\"u_blurReady\"),lutEnabled:t.getUniformLocation(n,\"u_lutEnabled\"),lutSize:t.getUniformLocation(n,\"u_lutSize\"),lutTextureSize:t.getUniformLocation(n,\"u_lutTextureSize\"),lutDomainMin:t.getUniformLocation(n,\"u_lutDomainMin\"),lutDomainMax:t.getUniformLocation(n,\"u_lutDomainMax\"),lutIntensity:t.getUniformLocation(n,\"u_lutIntensity\"),exposure:t.getUniformLocation(n,\"u_exposure\"),contrast:t.getUniformLocation(n,\"u_contrast\"),highlights:t.getUniformLocation(n,\"u_highlights\"),shadows:t.getUniformLocation(n,\"u_shadows\"),whites:t.getUniformLocation(n,\"u_whites\"),blacks:t.getUniformLocation(n,\"u_blacks\"),temperature:t.getUniformLocation(n,\"u_temperature\"),tint:t.getUniformLocation(n,\"u_tint\"),vibrance:t.getUniformLocation(n,\"u_vibrance\"),saturation:t.getUniformLocation(n,\"u_saturation\"),vignette:t.getUniformLocation(n,\"u_vignette\"),vignetteMidpoint:t.getUniformLocation(n,\"u_vignetteMidpoint\"),vignetteRoundness:t.getUniformLocation(n,\"u_vignetteRoundness\"),vignetteFeather:t.getUniformLocation(n,\"u_vignetteFeather\"),grain:t.getUniformLocation(n,\"u_grain\"),grainSize:t.getUniformLocation(n,\"u_grainSize\"),grainRoughness:t.getUniformLocation(n,\"u_grainRoughness\"),grainSeed:t.getUniformLocation(n,\"u_grainSeed\"),blur:t.getUniformLocation(n,\"u_blur\"),pixelate:t.getUniformLocation(n,\"u_pixelate\"),intensity:t.getUniformLocation(n,\"u_intensity\"),compareEnabled:t.getUniformLocation(n,\"u_compareEnabled\"),comparePosition:t.getUniformLocation(n,\"u_comparePosition\"),compareSoftness:t.getUniformLocation(n,\"u_compareSoftness\"),compareLineWidth:t.getUniformLocation(n,\"u_compareLineWidth\")}}):(t.deleteProgram(n),t.deleteTexture(i),t.deleteTexture(r),null)}function kf(e){return typeof e==\"object\"&&e!==null&&!Array.isArray(e)}function Df(e){if(!kf(e))return{...on};let t=(n,i,r,o)=>{let a=typeof n==\"number\"?n:Number(n);return Math.min(o,Math.max(r,Number.isFinite(a)?a:i))};return{enabled:e.enabled===!0,position:t(e.position,on.position,0,1),softness:t(e.softness,on.softness,0,.25),lineWidth:t(e.lineWidth,on.lineWidth,0,12)}}function Ka(e){try{let t=new URL(e,document.baseURI);return t.protocol===\"data:\"?{href:t.href}:t.protocol!==\"http:\"&&t.protocol!==\"https:\"?{error:\"LUT must be project-local or a data URL\"}:t.origin!==window.location.origin?{error:\"Remote LUT URLs are not supported\"}:{href:t.href}}catch{return{error:\"Invalid LUT URL\"}}}function Er(e){return e instanceof Error?e.message:\"LUT failed to load\"}function If(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0)%1e4}function Pf(e){let t=e.id||e.currentSrc||e.getAttribute(\"src\")||`${e.tagName}:${Array.prototype.indexOf.call(e.parentNode?.children??[],e)}`;return If(t)}function Of(e){let t=Ka(e);if(\"error\"in t)return{state:\"error\",message:t.error};let n=ze.get(t.href);if(n)return n;let i=fetch(t.href,{credentials:\"same-origin\"}).then(o=>{if(!o.ok)throw new Error(`Failed to load LUT (${o.status})`);return o.text()}).then(o=>Oa(o,{maxSize:gr})),r={state:\"pending\",promise:i};for(;ze.size>=Tf;){let o=ze.keys().next().value;if(!o)break;ze.delete(o)}return ze.set(t.href,r),i.then(o=>{ze.get(t.href)===r&&ze.set(t.href,{state:\"ready\",lut:o})},o=>{ze.get(t.href)===r&&ze.set(t.href,{state:\"error\",message:Er(o)})}),r}function Ua(e,t,n){if(e.lut?.src===t)return e.lut;let i=Ba(n),{gl:r,program:o}=e;try{return r.activeTexture(r.TEXTURE2),r.bindTexture(r.TEXTURE_2D,o.lutTexture),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,i.width,i.height,0,r.RGBA,r.UNSIGNED_BYTE,i.data),e.lut={src:t,size:n.size,domainMin:n.domainMin,domainMax:n.domainMax,textureWidth:i.width,textureHeight:i.height},e.lutError=null,e.lutLoadingSrc=null,e.lut}catch(a){return e.lut=null,e.lutError=Er(a),e.lutLoadingSrc=null,M(\"runtime.colorGrading.uploadLut\",a),null}}function Un(e,t){e.deleteTexture(t.texture),e.deleteFramebuffer(t.framebuffer)}function Ja(e){let t=e.effectTargets;t&&(e.gl.deleteProgram(t.blurProgram.program),Un(e.gl,t.scratch),Un(e.gl,t.blur),e.effectTargets=null)}function Xa(e){Ja(e),e.gl.deleteTexture(e.program.texture),e.gl.deleteTexture(e.program.lutTexture),e.gl.deleteBuffer(e.program.quad),e.gl.deleteProgram(e.program.program)}function Bf(e){let t=$a(e.canvas);return t?(Xa(e),e.gl=t.gl,e.program=t.program,e.lut=null,e.lutLoadingSrc=null,e.lutError=null,e.effectError=null,!0):!1}function Sr(e){if(!e.sourceHidden)return;e.element.removeAttribute(Dt);let t=e.element.style.getPropertyValue(\"opacity\"),n=e.element.style.getPropertyPriority(\"opacity\");t===\"0\"&&n===\"important\"&&(e.sourceInlineOpacity===null?e.element.style.removeProperty(\"opacity\"):e.element.style.setProperty(\"opacity\",e.sourceInlineOpacity,e.sourceInlineOpacityPriority)),e.sourceHidden=!1}function Hf(e){if(e.effectTargets)return e.effectTargets;let{gl:t}=e,n=Rf(t,e.program.quad),i=Ga(t),r=Ga(t);return!n||!i||!r?(n&&t.deleteProgram(n.program),i&&Un(t,i),r&&Un(t,r),e.effectError=\"Framebuffer effects unavailable\",null):(e.effectError=null,e.effectTargets={blurProgram:n,scratch:i,blur:r},e.effectTargets)}function Gf(e,t,n,i,r){let o=Math.max(1,Math.ceil(i)),a=Math.max(1,Math.ceil(r));return Wa(e,t,o,a),Wa(e,n,o,a),{width:o,height:a}}function Va(e,t,n,i,r,o,a){e.bindFramebuffer(e.FRAMEBUFFER,i.framebuffer),e.viewport(0,0,r.width,r.height),e.useProgram(t.program),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,n),e.uniform1i(t.source,0),e.uniform2f(t.resolution,r.width,r.height),e.uniform2f(t.direction,o.x,o.y),e.uniform1f(t.radius,a),e.bindBuffer(e.ARRAY_BUFFER,t.quad),e.enableVertexAttribArray(t.position),e.vertexAttribPointer(t.position,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLE_STRIP,0,4)}function Wf(e,t,n,i,r,o,a){let u=n;for(let s=0;s<Math.max(1,Math.floor(a));s++)Va(e,t.blurProgram,u,t.scratch,r,{x:1,y:0},o),Va(e,t.blurProgram,t.scratch.texture,i,r,{x:0,y:1},o),u=i.texture}function Uf(e){let t=e.grading.lut?.src.trim()??\"\",n=e.grading.lut?.intensity??1;if(!t||n<=0)return e.lut=null,e.lutLoadingSrc=null,e.lutError=null,null;let i=Ka(t);if(\"error\"in i)return e.lut=null,e.lutLoadingSrc=null,e.lutError=i.error,null;if(e.lut?.src===i.href)return e.lut;e.lut=null;let r=Of(t);return r.state===\"ready\"?Ua(e,i.href,r.lut):r.state===\"error\"?(e.lutError=r.message,e.lutLoadingSrc=null,null):(e.lutLoadingSrc!==i.href&&(e.lutLoadingSrc=i.href,e.lutError=null,r.promise.then(o=>{e.destroyed||e.grading.lut?.src.trim()!==t||(Ua(e,i.href,o),De(e))},o=>{e.destroyed||e.grading.lut?.src.trim()!==t||(e.lut=null,e.lutError=Er(o),e.lutLoadingSrc=null,De(e))})),null)}function br(e){if(!e)return null;if(typeof e==\"string\"){let t=e.trim();if(!t)return null;let n=document.getElementById(t.replace(/^#/,\"\"));if(n&&ut(n))return n;try{let i=document.querySelector(t);return i&&ut(i)?i:null}catch{return null}}if(e.hfId){let t=document.querySelector(`[data-hf-id=\"${CSS.escape(e.hfId)}\"]`);if(t&&ut(t))return t}if(e.id){let t=document.getElementById(e.id);if(t&&ut(t))return t}if(!e.selector)return null;try{let t=Array.from(document.querySelectorAll(e.selector)),n=Math.max(0,Math.floor(Number(e.selectorIndex??0)||0)),i=t[n]??null;return i&&ut(i)?i:null}catch{return null}}function Vf(e){return e instanceof HTMLVideoElement?e.videoWidth>0&&e.videoHeight>0?{width:e.videoWidth,height:e.videoHeight}:null:e instanceof HTMLImageElement&&e.naturalWidth>0&&e.naturalHeight>0?{width:e.naturalWidth,height:e.naturalHeight}:null}function Ya(e){return e instanceof HTMLVideoElement?e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&e.videoWidth>0&&e.videoHeight>0:e instanceof HTMLImageElement?e.complete&&e.naturalWidth>0&&e.naturalHeight>0:!1}function zf(e){if(!e.id)return null;let t=document.getElementById(`__render_frame_${e.id}__`);return t instanceof HTMLImageElement&&Ya(t)?t:null}function jf(e){return e instanceof HTMLImageElement&&e.classList.contains(\"__render_frame__\")}function qf(e,t){t.parentNode&&t.nextSibling!==e.canvas&&t.parentNode.insertBefore(e.canvas,t.nextSibling)}function $f(e){if(e instanceof HTMLVideoElement){let t=zf(e);if(t)return t}return Ya(e)?e:null}function za(e,t){let n=e.toLowerCase();if(n===\"center\")return .5;if(t===\"x\"){if(n===\"left\")return 0;if(n===\"right\")return 1}else{if(n===\"top\")return 0;if(n===\"bottom\")return 1}if(n.endsWith(\"%\")){let i=Number.parseFloat(n);return Number.isFinite(i)?i/100:null}return null}function Kf(e){let t=e.trim().split(/\\s+/).filter(Boolean),n=.5,i=.5;for(let r=0;r<t.length;r++){let o=t[r]??\"\",a=za(o,\"x\"),u=za(o,\"y\");if(a!==null&&(o===\"left\"||o===\"right\"||o.endsWith(\"%\")&&r===0)){n=a;continue}if(u!==null&&(o===\"top\"||o===\"bottom\"||o.endsWith(\"%\")&&r>0)){i=u;continue}}return{x:n,y:i}}function Jf(e,t,n,i,r,o){if(e<=0||t<=0||n<=0||i<=0)return{scaleX:1,scaleY:1,offsetX:0,offsetY:0};let a=r||\"fill\",u=e,s=t;if(a===\"contain\"||a===\"cover\"||a===\"scale-down\"){let f=a===\"cover\"?Math.max(e/n,t/i):Math.min(e/n,t/i);u=n*f,s=i*f,a===\"scale-down\"&&u>n&&s>i&&(u=n,s=i)}else a===\"none\"&&(u=n,s=i);let l=Kf(o||\"center\"),d=(e-u)*l.x/e,m=(t-s)*l.y/t;return{scaleX:u/e,scaleY:s/t,offsetX:d,offsetY:m}}function Xf(e,t){window.getComputedStyle(t).position===\"static\"&&(e.touchedParent||(e.touchedParent=t,e.parentInlinePosition=t.style.position||null),t.style.position=\"relative\")}function Yf(e,t){let{element:n,canvas:i}=e,r=n.parentElement;r&&Xf(e,r);let o=window.getComputedStyle(t);Lo(i.style,o),i.style.pointerEvents=\"none\",i.style.position=\"absolute\",i.style.inset=\"auto\",i.style.left=`${n.offsetLeft}px`,i.style.top=`${n.offsetTop}px`,i.style.right=\"auto\",i.style.bottom=\"auto\",i.style.width=`${n.offsetWidth}px`,i.style.height=`${n.offsetHeight}px`,i.style.display=\"block\",i.style.opacity=e.sourceOpacityForCanvas,i.style.visibility=e.sourceVisibleForCanvas?\"visible\":\"hidden\";let a=n.getBoundingClientRect(),u=Math.max(0,Math.round(n.offsetWidth||a.width)),s=Math.max(0,Math.round(n.offsetHeight||a.height));return u<=0||s<=0?(i.style.display=\"none\",null):(i.width!==u&&(i.width=u),i.height!==s&&(i.height=s),{width:u,height:s})}function Qf(e,t,n,i,r,o,a,u,s){e.uniform1i(t.source,0),e.uniform1i(t.blurSource,1),e.uniform1i(t.lut,2),e.uniform2f(t.resolution,a.width,a.height),e.uniform2f(t.uvScale,u.scaleX,u.scaleY),e.uniform2f(t.uvOffset,u.offsetX,u.offsetY),e.uniform1f(t.blurReady,r?1:0),e.uniform1f(t.lutEnabled,i?1:0),e.uniform1f(t.lutSize,i?.size??2),e.uniform2f(t.lutTextureSize,i?.textureWidth??1,i?.textureHeight??1),e.uniform3f(t.lutDomainMin,i?.domainMin[0]??0,i?.domainMin[1]??0,i?.domainMin[2]??0),e.uniform3f(t.lutDomainMax,i?.domainMax[0]??1,i?.domainMax[1]??1,i?.domainMax[2]??1),e.uniform1f(t.lutIntensity,n.lut?.intensity??0),e.uniform1f(t.exposure,n.adjust.exposure),e.uniform1f(t.contrast,n.adjust.contrast),e.uniform1f(t.highlights,n.adjust.highlights),e.uniform1f(t.shadows,n.adjust.shadows),e.uniform1f(t.whites,n.adjust.whites),e.uniform1f(t.blacks,n.adjust.blacks),e.uniform1f(t.temperature,n.adjust.temperature),e.uniform1f(t.tint,n.adjust.tint),e.uniform1f(t.vibrance,n.adjust.vibrance),e.uniform1f(t.saturation,n.adjust.saturation),e.uniform1f(t.vignette,n.details.vignette),e.uniform1f(t.vignetteMidpoint,n.details.vignetteMidpoint),e.uniform1f(t.vignetteRoundness,n.details.vignetteRoundness),e.uniform1f(t.vignetteFeather,n.details.vignetteFeather),e.uniform1f(t.grain,n.details.grain),e.uniform1f(t.grainSize,n.details.grainSize),e.uniform1f(t.grainRoughness,n.details.grainRoughness),e.uniform1f(t.grainSeed,s),e.uniform1f(t.blur,n.effects.blur),e.uniform1f(t.pixelate,n.effects.pixelate),e.uniform1f(t.intensity,n.intensity),e.uniform1f(t.compareEnabled,o.enabled?1:0),e.uniform1f(t.comparePosition,o.position),e.uniform1f(t.compareSoftness,o.softness),e.uniform1f(t.compareLineWidth,o.lineWidth)}function Zf(e){if(!e.sourceHidden){let t=e.element.getAttribute(Sn);t!==null?(e.sourceInlineOpacity=t===\"\"?null:t,e.sourceInlineOpacityPriority=\"\"):(e.sourceInlineOpacity=e.element.style.getPropertyValue(\"opacity\")||null,e.sourceInlineOpacityPriority=e.element.style.getPropertyPriority(\"opacity\"))}e.element.setAttribute(Dt,\"true\"),e.element.style.setProperty(\"opacity\",\"0\",\"important\"),e.sourceHidden=!0}function De(e){if(e.destroyed||e.contextLost)return!1;let t=$f(e.element);if(!t)return e.hasDrawn||(e.canvas.style.display=\"none\"),!1;let n=Vf(t);if(!n)return!1;let i=t instanceof HTMLElement?t:e.element,r=e.element.style.getPropertyValue(\"opacity\"),o=e.element.style.getPropertyPriority(\"opacity\"),a=e.sourceHidden&&r===\"0\"&&o===\"important\",u=e.element.style.getPropertyValue(\"visibility\"),s=jf(t);if(s&&qf(e,t),s||!a){let S=window.getComputedStyle(s?t:e.element);e.sourceOpacityForCanvas=S.opacity||\"1\",e.sourceVisibleForCanvas=(s||u!==\"hidden\")&&S.visibility!==\"hidden\"}let l=Yf(e,i);if(!l)return!1;let d=window.getComputedStyle(i),m=Jf(l.width,l.height,n.width,n.height,d.objectFit,d.objectPosition),{gl:f,program:x}=e;try{let S=Uf(e);f.activeTexture(f.TEXTURE0),f.bindTexture(f.TEXTURE_2D,x.texture),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,!0),f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,t);let y=!1,b=Math.min(1,Math.max(0,e.grading.effects.blur));if(b>0){let _=Hf(e);if(_){let T=Gf(f,_.scratch,_.blur,l.width,l.height);Wf(f,_,x.texture,_.blur,T,.75+Math.pow(b,1.35)*32,b>.55?3:2),y=!0}}else e.effectError=null,e.effectTargets&&Ja(e);f.bindFramebuffer(f.FRAMEBUFFER,null),f.viewport(0,0,l.width,l.height),f.useProgram(x.program),f.activeTexture(f.TEXTURE0),f.bindTexture(f.TEXTURE_2D,x.texture),f.activeTexture(f.TEXTURE1),f.bindTexture(f.TEXTURE_2D,e.effectTargets?.blur.texture??x.texture),f.activeTexture(f.TEXTURE2),f.bindTexture(f.TEXTURE_2D,x.lutTexture);let A=e.grainSeed+(e.element instanceof HTMLVideoElement?Math.floor(e.element.currentTime*60):0);return Qf(f,x,e.grading,S,y,e.compare,l,m,A),f.bindBuffer(f.ARRAY_BUFFER,x.quad),f.enableVertexAttribArray(x.position),f.vertexAttribPointer(x.position,2,f.FLOAT,!1,0,0),f.drawArrays(f.TRIANGLE_STRIP,0,4),Zf(e),e.hasDrawn=!0,e.drawError=null,!0}catch(S){return e.drawError=S instanceof Error?S.message:\"Shader draw failed\",M(\"runtime.colorGrading.drawEntry\",S),!1}}function He(e,t,n,i){t.addEventListener(n,i),e.cleanup.push(()=>t.removeEventListener(n,i))}function em(e){e.animationFrame!==null&&(window.cancelAnimationFrame(e.animationFrame),e.animationFrame=null),e.videoFrameHandle!==null&&e.element instanceof HTMLVideoElement&&(e.element.cancelVideoFrameCallback?.(e.videoFrameHandle),e.videoFrameHandle=null)}function sn(e){if(e.destroyed||!(e.element instanceof HTMLVideoElement)||e.videoFrameHandle!==null||e.animationFrame!==null)return;let t=e.element,n=t;if(typeof n.requestVideoFrameCallback==\"function\"){e.videoFrameHandle=n.requestVideoFrameCallback(()=>{e.videoFrameHandle=null,De(e),!e.destroyed&&!t.paused&&!t.ended&&sn(e)});return}e.animationFrame=window.requestAnimationFrame(()=>{e.animationFrame=null,De(e),!e.destroyed&&!t.paused&&!t.ended&&sn(e)})}function tm(e){let t=()=>{De(e)};if(He(e,e.element,\"load\",t),He(e,e.element,\"loadedmetadata\",t),He(e,e.element,\"loadeddata\",t),He(e,e.element,\"seeked\",t),He(e,e.element,\"timeupdate\",t),He(e,window,\"resize\",t),e.element instanceof HTMLVideoElement&&(He(e,e.element,\"play\",()=>sn(e)),He(e,e.element,\"pause\",t)),He(e,e.canvas,\"webglcontextlost\",n=>{n.preventDefault(),e.contextLost=!0,e.drawError=\"WebGL context lost\",e.canvas.style.display=\"none\",Sr(e)}),He(e,e.canvas,\"webglcontextrestored\",()=>{if(e.contextLost=!1,!Bf(e)){e.contextLost=!0,e.drawError=\"WebGL context restore failed\",Sr(e);return}e.drawError=null,De(e)}),typeof ResizeObserver<\"u\"&&(e.resizeObserver=new ResizeObserver(t),e.resizeObserver.observe(e.element)),typeof MutationObserver<\"u\"){let n=()=>{let a=e.element.style;return`${a.transform}|${a.translate}|${a.rotate}|${a.scale}|${a.left}|${a.top}|${a.width}|${a.height}`},i=n(),r=!1,o=new MutationObserver(()=>{r||n()!==i&&(r=!0,requestAnimationFrame(()=>{r=!1,i=n(),De(e)}))});o.observe(e.element,{attributes:!0,attributeFilter:[\"style\"]}),e.cleanup.push(()=>o.disconnect())}}function nm(e){if(!e.destroyed){e.destroyed=!0,em(e),e.resizeObserver?.disconnect();for(let t of e.cleanup)t();e.cleanup.length=0,e.canvas.remove(),Xa(e),Sr(e),e.touchedParent&&(e.parentInlinePosition===null?e.touchedParent.style.removeProperty(\"position\"):e.touchedParent.style.position=e.parentInlinePosition)}}function im(e){let t=document.createElement(\"canvas\");return e.id&&(t.id=`${Fo}${e.id}`),t.className=vf,t.setAttribute(_f,\"true\"),t.setAttribute(\"data-hyperframes-ignore\",\"\"),t.setAttribute(\"data-hyperframes-picker-ignore\",\"\"),t.setAttribute(\"data-hf-ignore\",\"\"),t.setAttribute(\"aria-hidden\",\"true\"),t.style.pointerEvents=\"none\",t.style.display=\"none\",e.parentNode?.insertBefore(t,e.nextSibling),t}function Qa(){let e=new WeakMap,t=new Set,n=null,i=!1,r=(y,b,A)=>{let _=e.get(y);if(_)return _.grading=b,_.source=A,De(_),y instanceof HTMLVideoElement&&!y.paused&&sn(_),!0;let T=im(y),z=$a(T);if(!z)return T.remove(),!1;let P={element:y,canvas:T,gl:z.gl,program:z.program,grading:b,compare:{...on},lut:null,lutLoadingSrc:null,lutError:null,drawError:null,effectTargets:null,effectError:null,source:A,animationFrame:null,videoFrameHandle:null,resizeObserver:null,cleanup:[],touchedParent:null,parentInlinePosition:null,sourceHidden:!1,sourceInlineOpacity:null,sourceInlineOpacityPriority:\"\",sourceOpacityForCanvas:window.getComputedStyle(y).opacity||\"1\",sourceVisibleForCanvas:window.getComputedStyle(y).visibility!==\"hidden\",hasDrawn:!1,contextLost:!1,grainSeed:Pf(y),destroyed:!1};return e.set(y,P),t.add(y),tm(P),De(P),y instanceof HTMLVideoElement&&!y.paused&&sn(P),!0},o=(y,b)=>{if(i)return!1;let A=br(y);if(!A)return!1;let _=e.get(A);if(!_){let T=xr(A);if(!It(T)||!r(A,T,\"attribute\"))return!1;_=e.get(A)}return _?(_.compare=Df(b),De(_),!0):!1},a=y=>{let b=e.get(y);b&&(nm(b),e.delete(y),t.delete(y))},u=()=>{if(i)return 0;let y=new Set;document.querySelectorAll(`video[${Ue}], img[${Ue}]`).forEach(A=>{if(!ut(A))return;y.add(A);let _=xr(A);It(_)?r(A,_,\"attribute\"):a(A)});for(let A of Array.from(t)){let _=e.get(A);_&&(!A.isConnected||_.source===\"attribute\"&&!y.has(A))&&a(A)}return t.size},s=()=>{if(i)return 0;let y=0;for(let b of Array.from(t,A=>e.get(A)))b&&De(b)&&(y+=1);return y},l=(y,b)=>{if(i)return!1;let A=br(y);if(!A)return!1;let _=Ei(b);return It(_)?r(A,_,\"live\"):(a(A),!0)},d=(y,b)=>{if(!ut(y))return!1;let A=e.get(y);return A?(A.sourceVisibleForCanvas=b,!0):!1},m=y=>{let b=br(y);if(!b)return{state:\"missing\",message:\"Media not found\"};let A=e.get(b);if(A)return A.effectError?{state:\"unavailable\",message:A.effectError}:A.drawError?{state:\"unavailable\",message:A.drawError}:A.lutError?{state:\"unavailable\",message:`LUT error: ${A.lutError}`}:A.grading.lut&&A.lutLoadingSrc?{state:\"pending\",message:\"Loading LUT\"}:A.canvas.style.display===\"none\"?{state:\"pending\",message:\"Waiting for media frame\"}:{state:\"active\",message:A.lut?\"Shader + LUT active\":\"Shader active\"};let _=xr(b);return It(_)?{state:\"unavailable\",message:\"WebGL unavailable\"}:{state:\"inactive\",message:\"No grading applied\"}},f=()=>{if(!i){i=!0,n?.disconnect(),n=null;for(let y of Array.from(t))a(y)}};document.body&&(n=new MutationObserver(()=>u()),n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Ue]}));let x={refresh:u,redraw:s,setGrading:l,setCompare:o,setSourceVisibility:d,getStatus:m,destroy:f},S=window;return S.__hf=S.__hf||{},S.__hf.colorGrading=x,u(),x}var Vn=class{constructor(t){he(this,\"_baseTime\",0);he(this,\"_playStartMs\",null);he(this,\"_rate\",1);he(this,\"_duration\",1/0);he(this,\"_nowMs\");he(this,\"_audioSource\",null);this._baseTime=t?.initialTime??0,this._rate=t?.rate??1,this._duration=t?.duration??1/0,this._nowMs=t?.nowMs??(()=>performance.now())}now(){if(this._playStartMs===null)return this._baseTime;if(this._audioSource){let i=null;if(\"currentTimeSeconds\"in this._audioSource)i=this._audioSource.currentTimeSeconds;else{let{el:r,compositionStart:o,mediaStart:a}=this._audioSource;!r.paused&&Number.isFinite(r.currentTime)&&(i=(r.currentTime-a)/(r.playbackRate>0?r.playbackRate:1)*this._rate+o)}if(i!==null)return Number.isFinite(this._duration)&&i>=this._duration?this._duration:Math.max(0,i)}let t=(this._nowMs()-this._playStartMs)/1e3,n=this._baseTime+t*this._rate;return Number.isFinite(this._duration)&&n>=this._duration?this._duration:Math.max(0,n)}play(){return this._playStartMs!==null||Number.isFinite(this._duration)&&this._baseTime>=this._duration?!1:(this._playStartMs=this._nowMs(),!0)}pause(){return this._playStartMs===null?!1:(this._baseTime=this.now(),this._playStartMs=null,!0)}seek(t){let n=Number.isFinite(this._duration)?Math.max(0,Math.min(t,this._duration)):Math.max(0,t);this._baseTime=n,this._playStartMs!==null&&(this._playStartMs=this._nowMs())}isPlaying(){return this._playStartMs!==null}setRate(t){let n=Number.isFinite(t)&&t>0?Math.max(.1,Math.min(5,t)):1;this._playStartMs!==null&&(this._baseTime=this.now(),this._playStartMs=this._nowMs()),this._rate=n}getRate(){return this._rate}setDuration(t){this._duration=Number.isFinite(t)&&t>0?t:1/0,this._baseTime>this._duration&&(this._baseTime=this._duration)}getDuration(){return this._duration}attachAudioSource(t){this._audioSource=t}detachAudioSource(){this._audioSource&&this._playStartMs!==null&&(this._baseTime=this.now(),this._playStartMs=this._nowMs()),this._audioSource=null}hasAudioSource(){return this._audioSource!==null}getSource(){if(this._audioSource&&this._playStartMs!==null){if(\"currentTimeSeconds\"in this._audioSource)return\"audio\";let{el:t}=this._audioSource;if(!t.paused&&Number.isFinite(t.currentTime))return\"audio\"}return\"monotonic\"}snapshot(){return{time:this.now(),playing:this.isPlaying(),rate:this._rate,duration:this._duration,source:this.getSource()}}reachedEnd(){return Number.isFinite(this._duration)&&this.now()>=this._duration}};function Za(e){return!Number.isFinite(e)||e<=0?1:e}function rm(e,t){t||e.paused||!pn().__hfDebug||console.debug(\"[hyperframes] webAudioTransport claimed fallback-playing element:\",e.currentSrc||e.getAttribute(\"src\")||\"\")}function om(e,t){let{elapsed:n,mediaStart:i,scheduledAt:r,safeRate:o,clipDuration:a}=t,u=Number.isFinite(a)&&a>0,s=a*o;if(n>=0){let d=s-n;return u&&d<=0?!1:(u?e.start(0,n+i,d):e.start(0,n+i),!0)}let l=-n/o;return u?e.start(r+l,i,s):e.start(r+l,i),!0}var zn=class{constructor(){he(this,\"_ctx\",null);he(this,\"_bufferCache\",new Map);he(this,\"_failedSrcs\",new Set);he(this,\"_activeSources\",[]);he(this,\"_masterGain\",null);he(this,\"_rateAnchorCtx\",0);he(this,\"_rateAnchorComp\",0);he(this,\"_rate\",1);he(this,\"_paused\",!0);he(this,\"_playGeneration\",0)}async init(){try{return this._ctx=new AudioContext,this._masterGain=this._ctx.createGain(),this._masterGain.connect(this._ctx.destination),!0}catch{return!1}}get context(){return this._ctx}getTime(){return!this._ctx||this._paused?-1:this._rateAnchorComp+(this._ctx.currentTime-this._rateAnchorCtx)*this._rate}async decodeAudioElement(t){let n=t.currentSrc||t.getAttribute(\"src\");if(!n)return null;if(this._bufferCache.has(n))return this._bufferCache.get(n);if(this._failedSrcs.has(n)||!this._ctx)return null;let i;try{let r=await fetch(n,{cache:\"no-store\"});if(!r.ok)return M(\"webAudioTransport.fetch\",new Error(`${r.status} ${n}`)),null;i=await r.arrayBuffer()}catch(r){return M(\"webAudioTransport.fetch\",r),null}try{let r=await this._ctx.decodeAudioData(i);return this._bufferCache.set(n,r),r}catch(r){return this._failedSrcs.add(n),M(\"webAudioTransport.decode\",r),null}}startGeneration(){return this._playGeneration+=1,this._playGeneration}currentGeneration(){return this._playGeneration}async schedulePlayback(t,n,i,r,o,a,u,s=1,l=Number.POSITIVE_INFINITY){if(!this._ctx||!this._masterGain||u!==this._playGeneration)return null;try{if(this._ctx.state===\"suspended\"&&await this._ctx.resume(),u!==this._playGeneration)return null;let d=Za(s),m=this._ctx.createBufferSource();m.buffer=n,m.playbackRate.value=d;let f=this._ctx.createGain();f.gain.value=a,m.connect(f),f.connect(this._masterGain);let x=o-i,S=this._ctx.currentTime;if(this._rate=d,this._rateAnchorCtx=S,this._rateAnchorComp=o,!om(m,{elapsed:x,mediaStart:r,scheduledAt:S,safeRate:d,clipDuration:l}))return m.disconnect(),f.disconnect(),null;let y=t.muted;t.muted=!0,rm(t,y);let b={el:t,sourceNode:m,gainNode:f,compositionStart:i,mediaStart:r,scheduledAt:S,priorMuted:y,bounded:Number.isFinite(l)&&l>0};return this._activeSources.push(b),this._paused=!1,m.addEventListener(\"ended\",()=>{let A=this._activeSources.indexOf(b);A!==-1&&(this._activeSources.splice(A,1),t.muted=y,this._activeSources.length===0&&(this._paused=!0))}),b}catch(d){return M(\"webAudioTransport.schedule\",d),null}}setRate(t){let n=Za(t);if(n===this._rate)return!1;this._ctx&&!this._paused&&(this._rateAnchorComp=this.getTime(),this._rateAnchorCtx=this._ctx.currentTime),this._rate=n;for(let i of this._activeSources)try{i.sourceNode.playbackRate.value=n}catch(r){M(\"webAudioTransport.setRate\",r)}return!0}hasBoundedActiveSources(){return this._activeSources.some(t=>t.bounded)}stopAll(){for(let t of this._activeSources){try{t.sourceNode.stop(),t.sourceNode.disconnect(),t.gainNode.disconnect()}catch{}t.el.muted=t.priorMuted}this._activeSources=[],this._paused=!0}setVolume(t){this._masterGain&&(this._masterGain.gain.value=Math.max(0,Math.min(1,t)))}setElementVolume(t,n){let i=Math.max(0,Math.min(1,n));for(let r of this._activeSources)if(r.el===t)try{r.gainNode.gain.value=i}catch(o){M(\"webAudioTransport.setElementVolume\",o)}}setMuted(t){this._masterGain&&(this._masterGain.gain.value=t?0:1)}isActive(){return this._activeSources.length>0&&!this._paused}ownsElement(t){return!this._paused&&this._activeSources.some(n=>n.el===t)}destroy(){if(this.stopAll(),this._bufferCache.clear(),this._failedSrcs.clear(),this._ctx)try{this._ctx.close()}catch{}this._ctx=null,this._masterGain=null}};var el=\"data-hf-studio-manual-edit-gesture\";function tl(e){return!Number.isInteger(e.tick)||e.tick<=0||e.tick%60!==0?!1:!(e.isPlaying&&e.hasCapturedTimeline&&e.currentTimeSeconds<2)}var Ar=\"data-hf-authored-duration\",wr=\"data-hf-authored-end\";function sm(){let e=window.__HF_EXPORT_RENDER_SEEK_CONFIG,t=e?.fps,n=e?.fpsSource,i=Number(t);return!e||t==null?{fps:null,source:\"default\",rawFpsSource:n,rawFps:t,fallbackReason:\"missing\"}:!Number.isFinite(i)||i<=0?{fps:null,source:\"default\",rawFpsSource:n,rawFps:t,fallbackReason:\"invalid\"}:{fps:i,source:n===\"render-options\"||n===\"default\"?n:\"unknown\",rawFpsSource:n,rawFps:t,fallbackReason:e.fpsFallbackReason}}function nl(){let e=Do();Hn(document),pr(document);let t=sm();e.canonicalFps=t.fps??e.canonicalFps,Kr(e.canonicalFps),window.__HF_EXPORT_RENDER_SEEK_CONFIG&&console.info(\"[hyperframes] render runtime fps\",{canonicalFps:e.canonicalFps,source:t.source,rawFpsSource:t.rawFpsSource,rawFps:t.rawFps,fallbackReason:t.fallbackReason});let n=null,i=null,r=null,o=[],a=new Set,u=null;if(typeof window.__hfRuntimeTeardown==\"function\")try{window.__hfRuntimeTeardown()}catch(c){M(\"runtime.init.site1\",c)}let s=new Vn;e.transportClock=s;let l=new zn,d=!1;l.init().then(c=>{d=c}),(()=>{let c=window.gsap,p=window;if(!(!c?.registerPlugin||p.__hfAutoNoopRegistered))try{c.registerPlugin({name:\"_auto\",init:()=>!1}),p.__hfAutoNoopRegistered=!0}catch{}})(),document.documentElement&&(document.documentElement.style.margin=\"0\",document.documentElement.style.padding=\"0\",document.documentElement.style.overflow=\"hidden\"),document.body&&(document.body.style.margin=\"0\",document.body.style.padding=\"0\",document.body.style.overflow=\"hidden\");try{eo(document)}catch(c){M(\"runtime.init.cssVariables\",c)}window.__timelines=window.__timelines||{};let f=()=>{let c=document.querySelector('[data-composition-id][data-root=\"true\"]');if(c instanceof HTMLElement)return c;let p=Array.from(document.querySelectorAll(\"[data-composition-id]\"));return p.find(g=>!g.parentElement?.closest(\"[data-composition-id]\"))??p[0]??null};if(Array.isArray(window.__timelines)){let c=window.__timelines,p=f()?.getAttribute(\"data-composition-id\")??\"root\",g={};if(c.length===1)g[p]=c[0];else for(let h=0;h<c.length;h++)g[`tl-${h}`]=c[h];window.__timelines=g}let x=f();x&&!x.hasAttribute(\"data-start\")&&x.setAttribute(\"data-start\",\"0\");let S=c=>{o.push(c)},y=(c,p,g)=>{let h=g??`${c}:${JSON.stringify(p)}`;a.has(h)||(a.add(h),xe({source:\"hf-preview\",type:\"diagnostic\",code:c,details:p}))},b=c=>{let p={scale:1,focusX:960,focusY:540},g=[],h=[],E={time:c.getTime(),duration:c.getDuration(),isPlaying:c.isPlaying(),renderMode:!1,timelineDirty:!1};return{play:c.play,pause:c.pause,seek:c.seek,getTime:c.getTime,getDuration:c.getDuration,isPlaying:c.isPlaying,getMainTimeline:()=>null,getElementBounds:()=>{},getElementsAtPoint:()=>{},setElementPosition:()=>{},previewElementPosition:()=>{},setElementKeyframes:()=>{},setElementScale:()=>{},setElementFontSize:()=>{},setElementTextContent:()=>{},setElementTextColor:()=>{},setElementTextShadow:()=>{},setElementTextFontWeight:()=>{},setElementTextFontFamily:()=>{},setElementTextOutline:()=>{},setElementTextHighlight:()=>{},setElementVolume:()=>{},setStageZoom:()=>{},getStageZoom:()=>p,setStageZoomKeyframes:()=>{},getStageZoomKeyframes:()=>g,addElement:()=>!1,removeElement:()=>!1,updateElementTiming:()=>!1,setElementTiming:()=>{},updateElementSrc:()=>!1,updateElementLayer:()=>!1,updateElementBasePosition:()=>!1,markTimelineDirty:()=>{},isTimelineDirty:()=>!1,rebuildTimeline:()=>{},ensureTimeline:()=>{},enableRenderMode:()=>{},disableRenderMode:()=>{},renderSeek:c.renderSeek,getElementVisibility:()=>({visible:!1}),getVisibleElements:()=>h,getRenderState:()=>({...E,time:c.getTime(),duration:c.getDuration(),isPlaying:c.isPlaying()})}},A=1/60,_=.75,T=.05,z=100,P=240,v=c=>{if(c instanceof Error)return c.message||String(c);if(typeof c==\"string\")return c;try{return JSON.stringify(c)}catch{return String(c??\"\")}},w=c=>{let p=c.toLowerCase();return p.includes(\"cannot read properties of null\")||p.includes(\"cannot set properties of null\")?{code:\"runtime_null_dom_access\",category:\"dom-null-access\"}:p.includes(\"failed to execute 'queryselector'\")?{code:\"runtime_invalid_selector\",category:\"selector-invalid\"}:p.includes(\"is not defined\")?{code:\"runtime_reference_missing\",category:\"reference-missing\"}:{code:\"runtime_script_error\",category:\"script-error\"}},C=c=>{if(c==null||c.trim()===\"\")return null;let p=Number.parseFloat(c);return!Number.isFinite(p)||p<=0?null:`${p}px`},F=()=>f(),L=()=>{let c=F();if(!c)return;let p=C(c.getAttribute(\"data-width\")),g=C(c.getAttribute(\"data-height\"));p&&(c.style.width=p),g&&(c.style.height=g),p&&c.style.setProperty(\"--comp-width\",p),g&&c.style.setProperty(\"--comp-height\",g)},R=()=>{let c=F(),p=Array.from(document.querySelectorAll(\"[data-composition-id]\")).filter(g=>g.hasAttribute(\"data-duration\")||g.hasAttribute(\"data-end\"));for(let g of p){if(c&&g===c)continue;let h=g.getAttribute(\"data-duration\"),E=g.getAttribute(\"data-end\");h!=null&&!g.hasAttribute(Ar)&&g.setAttribute(Ar,h),E!=null&&!g.hasAttribute(wr)&&g.setAttribute(wr,E),g.removeAttribute(\"data-duration\"),g.removeAttribute(\"data-end\")}},U=()=>{let c=F();if(!c)return;c.style.position||(c.style.position=\"relative\"),c.style.overflow=\"hidden\";let p=C(c.getAttribute(\"data-width\")),g=C(c.getAttribute(\"data-height\"));p&&(c.style.width=p),g&&(c.style.height=g);let h=Array.from(c.children);for(let E of h){let N=E.tagName.toLowerCase();if(N===\"script\"||N===\"style\"||N===\"link\"||N===\"meta\"||!E.hasAttribute(\"data-start\")||E.hasAttribute(\"data-hf-autostamped\"))continue;let O=(E.style.top===\"0px\"||E.style.top===\"0\")&&(E.style.left===\"0px\"||E.style.left===\"0\")&&E.style.width===\"100%\"&&E.style.height===\"100%\",Q=/translate\\(\\s*-50%\\s*,\\s*-50%\\s*\\)/.test(E.style.transform);if(O&&Q&&!E.hasAttribute(\"data-width\")&&!E.hasAttribute(\"data-height\")){let ye=E.style.top,vt=E.style.left,Se=E.style.width,Tt=E.style.height;E.style.top=\"\",E.style.left=\"\",E.style.width=\"\",E.style.height=\"\";let ne=window.getComputedStyle(E);ne.top!==\"auto\"||ne.bottom!==\"auto\"||ne.left!==\"auto\"||ne.right!==\"auto\"||ne.width!==\"0px\"||ne.height!==\"0px\"||(E.style.top=ye,E.style.left=vt,E.style.width=Se,E.style.height=Tt)}let $=window.getComputedStyle(E),de=$.position;if(de!==\"absolute\"&&de!==\"fixed\"&&(E.style.position=\"absolute\"),!!E.style.top||!!E.style.bottom||$.top!==\"auto\"||$.bottom!==\"auto\"||(E.style.top=\"0\"),!!E.style.left||!!E.style.right||$.left!==\"auto\"||$.right!==\"auto\"||(E.style.left=\"0\"),N!==\"audio\"){let ye=C(E.getAttribute(\"data-width\")),vt=C(E.getAttribute(\"data-height\")),Se=$.width!==\"0px\"&&$.width!==\"auto\",Tt=$.height!==\"0px\"&&$.height!==\"auto\";ye?!E.style.width&&!Se&&(E.style.width=ye):!E.style.width&&$.width===\"0px\"&&(E.style.width=\"100%\"),vt?!E.style.height&&!Tt&&(E.style.height=vt):!E.style.height&&$.height===\"0px\"&&(E.style.height=\"100%\")}}},I=(c,p=0,g)=>$e({timelineRegistry:window.__timelines??{},includeAuthoredTimingAttrs:g?.includeAuthoredTimingAttrs??!0}).resolveStartForElement(c,p),Y=(c,p)=>$e({timelineRegistry:window.__timelines??{},includeAuthoredTimingAttrs:p?.includeAuthoredTimingAttrs??!0}).resolveDurationForElement(c),D=(c,p=0)=>!c.hasAttribute(\"data-hf-auto-start\")&&c.hasAttribute(\"data-start\")?Math.max(0,Number(c.getAttribute(\"data-start\")??0)||0)+p:I(c,p),ie=(c,p)=>{let g=c.tagName.toLowerCase();if(g===\"script\"||g===\"style\"||g===\"link\"||g===\"meta\")return!1;let h=g===\"video\"||g===\"audio\"?D(c,0):I(c,0),E=Y(c),N=c.getAttribute(\"data-composition-id\");if(N){let Q=(window.__timelines??{})[N],$=null;if(Q&&typeof Q.duration==\"function\"){let me=Number(Q.duration());Number.isFinite(me)&&me>0&&($=me)}!(c.hasAttribute(\"data-duration\")||c.hasAttribute(\"data-end\")||c.hasAttribute(Ar)||c.hasAttribute(wr))&&(E==null||E<=0)&&$!=null&&(E=$)}let O=E!=null&&E>0?h+E:Number.POSITIVE_INFINITY;return p>=h&&(Number.isFinite(O)?p<O:!0)},Fe=!!document.querySelector(\"[data-composition-src]\"),j=!1;{let c=document.querySelectorAll(\"[data-composition-id]:not([data-composition-src])\");for(let p of c){let g=p.getAttribute(\"data-composition-id\");if(g&&p.children.length===0&&document.querySelector(`template#${CSS.escape(g)}-template`)){j=!0;break}}}let X=!Fe&&!j,B=c=>{if(!c||typeof c.duration!=\"function\")return null;try{let p=Number(c.duration());return Number.isFinite(p)?Math.max(0,p):null}catch{return null}},V=c=>typeof c==\"number\"&&Number.isFinite(c)&&c>A,_e=c=>{let p=Number(c.getAttribute(\"data-duration\"));if(Number.isFinite(p)&&p>0)return p;let g=Number(c.getAttribute(\"data-playback-start\")??c.getAttribute(\"data-media-start\")??\"0\"),h=Number.isFinite(g)?Math.max(0,g):0;return Number.isFinite(c.duration)&&c.duration>h?Math.max(0,c.duration-h):null},H=()=>{let c=Array.from(document.querySelectorAll(\"video[data-start], audio[data-start]\"));if(c.length===0)return null;let p=0;for(let g of c){let h=D(g,0);if(!Number.isFinite(h))continue;let E=_e(g);E==null||E<=A||(p=Math.max(p,Math.max(0,h)+E))}return p>A?p:null},k=()=>{let c=F();if(!c)return null;let p=window.__timelines??{},g=$e({timelineRegistry:p,includeAuthoredTimingAttrs:!0}),h=0,E=Number.parseFloat(c.getAttribute(\"data-duration\")??\"\");Number.isFinite(E)&&E>0&&(h=E);let N=Array.from(c.querySelectorAll(\"[data-composition-id][data-start]\"));for(let O of N){if(!(O instanceof Element)||O.parentElement?.closest(\"[data-composition-id]\")!==c)continue;let $=g.resolveStartForElement(O,0),de=g.resolveDurationForElement(O);!Number.isFinite($)||de==null||de<=0||(h=Math.max(h,Math.max(0,$)+de))}return h>A?h:null},G=()=>{let c=H();return typeof c!=\"number\"||!Number.isFinite(c)||c<=A?null:c},le=c=>V(c)?Math.max(A,c*_):A,oe=()=>{let c=0;for(let p of e.deterministicAdapters){let g=p.getInferredDurationSeconds;if(typeof g!=\"function\")continue;let h=null;try{h=g()}catch(E){M(\"runtime.init.adapterDuration\",E)}typeof h==\"number\"&&Number.isFinite(h)&&h>0&&(c=Math.max(c,h))}return c>A?c:null},W=(c,p=0)=>{let g=B(c),h=G(),E=k(),N=oe(),O=Math.max(h??0,E??0,N??0),Q=Number.isFinite(p)&&p>A?p:0,$=0;return V(g)?$=Math.max(g,O,Q):V(O)?$=Math.max(O,Q):$=Q,$>0?Math.max(0,$):0},q=()=>{let c=window.__timelines??{},p=ne=>{let Z=Object.entries(c).filter(re=>!!re[1]&&typeof re[1].play==\"function\"&&typeof re[1].pause==\"function\");if(Z.length!==1)return{timeline:null};let ce=Z[0];if(!ce)return{timeline:null};let[fe,pe]=ce;return{timeline:pe,selectedTimelineIds:[fe],selectedDurationSeconds:B(pe),diagnostics:{code:\"root_timeline_sole_registered_fallback\",details:{reason:ne,soleTimelineId:fe}}}},g=$e({timelineRegistry:c,includeAuthoredTimingAttrs:!0}),h=G(),E=k(),N=Math.max(h??0,E??0)||null,O=le(N),Q=ne=>{let Z=document.querySelector(`[data-composition-id=\"${CSS.escape(ne)}\"]`);return Z?g.resolveStartForElement(Z,0):0},$=ne=>{let Z=window.gsap;if(!Z||typeof Z.timeline!=\"function\")return null;let ce=Z.timeline({paused:!0});for(let fe of ne)ce.add(fe.timeline,Q(fe.compositionId));return ce},de=(ne,Z)=>{if(!V(ne))return null;let ce=window.gsap;if(!ce||typeof ce.timeline!=\"function\")return null;let fe=ce.timeline({paused:!0});if(Z)try{fe.add(Z,0)}catch(re){M(\"runtime.init.site2\",re)}let pe=fe;if(typeof pe.to==\"function\")try{pe.to({},{duration:ne})}catch(re){M(\"runtime.init.site3\",re)}return fe},me=(ne,Z)=>{let ce=ne;if(typeof ce.getChildren!=\"function\")return[];try{let fe=ce.getChildren(!0,!0,!0)??[];if(!Array.isArray(fe))return[];let pe=[];for(let re of Z)if(!fe.some(Le=>Le===re.timeline))try{let Le=Q(re.compositionId);ne.add(re.timeline,Le),pe.push(re.compositionId)}catch(Le){M(\"runtime.init.site4\",Le)}return pe}catch{return[]}},se=F(),te=se?.getAttribute(\"data-composition-id\")??null;if(!te)return p(\"root_missing_composition_id\");let ye=c[te]??null,Se=(()=>{if(!se)return[];let ne=new Set,Z=Array.from(se.querySelectorAll(\"[data-composition-id]\")),ce=[];for(let fe of Z){let pe=fe.getAttribute(\"data-composition-id\");if(!pe||pe===te||ne.has(pe))continue;ne.add(pe);let re=c[pe]??null;if(!re||typeof re.play!=\"function\"||typeof re.pause!=\"function\")continue;let Ce=B(re);ce.push({compositionId:pe,timeline:re,durationSeconds:Ce??0})}return ce})(),Tt=ne=>{for(let Z of ne){let ce=Z.timeline;if(typeof ce.paused==\"function\")try{ce.paused(!1)}catch(fe){M(\"runtime.init.site5\",fe)}}};if(Se.length>0&&Tt(Se),ye){let ne=Se.length>0?me(ye,Se):[];if((Se.length>0||!document.querySelector(\"[data-composition-id]:not([data-composition-id='\"+te+\"'])\"))&&(K=!0),ne.length>0)try{let re=ye.time();ye.seek(re,!1)}catch{}let Z=B(ye);if(!V(Z)&&Se.length>0){let re=Se.map(ql=>ql.compositionId),Ce=$(Se),Le=B(Ce);if(Ce&&V(Le))return{timeline:Ce,selectedTimelineIds:re,selectedDurationSeconds:Le,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_unusable_fallback\",details:{rootCompositionId:te,rootDurationSeconds:Z,fallbackKind:\"composite_by_root_children\",minCandidateDurationSeconds:O,selectedDurationSeconds:Le,mediaDurationFloorSeconds:h,authoredCompositionDurationFloorSeconds:E,selectedTimelineIds:re,autoNestedChildren:ne}}};let oi=de(N??0,ye),si=B(oi);if(oi&&V(si))return{timeline:oi,selectedTimelineIds:[te],selectedDurationSeconds:si,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_unusable_media_floor_fallback\",details:{rootCompositionId:te,rootDurationSeconds:Z,fallbackKind:\"media_duration_floor\",mediaDurationFloorSeconds:h,authoredCompositionDurationFloorSeconds:E,selectedDurationSeconds:si,selectedTimelineIds:[te],autoNestedChildren:ne}}}}if(!V(Z)&&Se.length===0){let re=de(N??0,ye),Ce=B(re);if(re&&V(Ce))return{timeline:re,selectedTimelineIds:[te],selectedDurationSeconds:Ce,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_unusable_media_floor_fallback\",details:{rootCompositionId:te,rootDurationSeconds:Z,fallbackKind:\"media_duration_floor\",mediaDurationFloorSeconds:h,authoredCompositionDurationFloorSeconds:E,selectedDurationSeconds:Ce,selectedTimelineIds:[te]}}}}let ce=se?.getAttribute(\"data-duration\"),fe=ce?parseFloat(ce):null,pe=Math.max(V(fe)?fe:0,E??0);if(pe>0&&V(pe)&&V(Z)&&pe>=Z+.5){let re=ye;if(typeof re.to==\"function\")try{re.to({},{duration:0},pe)}catch(Le){M(\"runtime.init.site6\",Le)}let Ce=B(ye);if(V(Ce))return{timeline:ye,selectedTimelineIds:[te],selectedDurationSeconds:Ce,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_padded_to_declared_duration\",details:{rootCompositionId:te,rootDurationSeconds:Z,rootDeclaredDur:fe,authoredCompositionDurationFloorSeconds:E,newDur:Ce}}}}return{timeline:ye,selectedTimelineIds:[te],selectedDurationSeconds:Z,mediaDurationFloorSeconds:h,diagnostics:ne.length>0?{code:\"root_timeline_auto_nested_children\",details:{rootCompositionId:te,selectedDurationSeconds:Z,autoNestedChildren:ne}}:void 0}}if(Se.length>0){let ne=Se.map(fe=>fe.compositionId),Z=$(Se),ce=B(Z);if(Z)return{timeline:Z,selectedTimelineIds:ne,selectedDurationSeconds:ce,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_missing_fallback\",details:{rootCompositionId:te,fallbackKind:\"composite_by_root_children\",minCandidateDurationSeconds:O,selectedDurationSeconds:ce,mediaDurationFloorSeconds:h,selectedTimelineIds:ne}}}}return p(\"root_composition_id_unmatched_in_registry\")},K=!1,Ae=()=>{if(!X)return!1;let c=e.capturedTimeline,p=B(c),g=V(p);if(c&&g&&K)return!1;let h=q();if(!h.timeline)return!1;if(c&&c===h.timeline)return typeof c.timeScale==\"function\"&&c.timeScale(e.playbackRate),!1;e.capturedTimeline=h.timeline,typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);let E=W(e.capturedTimeline,0);if(E<=0&&typeof e.capturedTimeline.progress==\"function\"&&(e.capturedTimeline.progress(1,!0),e.capturedTimeline.progress(0,!1),e.capturedTimeline.pause()),E>0){try{s.setDuration(E)}catch{}if(typeof e.capturedTimeline.totalTime==\"function\"){typeof e.capturedTimeline.progress==\"function\"&&e.capturedTimeline.progress(1e-4,!0);let O=Math.max(0,e.currentTime||0);e.capturedTimeline.totalTime(O,!1),e.capturedTimeline.pause()}let N=window.__hfStudioManualEditsApply;typeof N==\"function\"&&N(),Hn(document)}if(h.diagnostics&&xe({source:\"hf-preview\",type:\"diagnostic\",code:h.diagnostics.code,details:h.diagnostics.details}),xe({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_bound\",details:{selectedTimelineIds:h.selectedTimelineIds??[],selectedDurationSeconds:h.selectedDurationSeconds??null,mediaDurationFloorSeconds:h.mediaDurationFloorSeconds??null}}),window.parent!==window){let N=F(),O=E>0?E:0,Q=String(O>0?O:1),$=new Set,de=new Set(document.querySelectorAll(\"[data-start]\")),me=se=>{let te=se.parentElement;for(;te&&te!==N;){if(de.has(te))return!0;te=te.parentElement}return!1};if(e.capturedTimeline.getChildren)try{for(let se of e.capturedTimeline.getChildren(!0))if(typeof se.targets==\"function\")for(let te of se.targets())te instanceof HTMLElement&&te!==N&&(te.hasAttribute(\"data-start\")||me(te)||$.has(te)||($.add(te),te.setAttribute(\"data-start\",\"0\"),te.setAttribute(\"data-duration\",Q),te.setAttribute(\"data-hf-autostamped\",\"1\")))}catch{}if(N instanceof HTMLElement)for(let se of N.querySelectorAll(\"[id]\"))se instanceof HTMLElement&&se!==N&&(se.hasAttribute(\"data-start\")||me(se)||$.has(se)||se.tagName===\"SCRIPT\"||se.tagName===\"STYLE\"||se.tagName===\"LINK\"||($.add(se),se.setAttribute(\"data-start\",\"0\"),se.setAttribute(\"data-duration\",Q),se.setAttribute(\"data-hf-autostamped\",\"1\")))}for(let N of wt)un.delete(N),kr(N);return!0};window.__hfForceTimelineRebind=()=>{K=!1,Ae(),Ir(e.currentTime)};let we=()=>{let c=F();if(!(c instanceof HTMLElement))return;let p=c.getBoundingClientRect(),g=Number(c.getAttribute(\"data-width\")),h=Number(c.getAttribute(\"data-height\")),E=window.getComputedStyle(c),N=Number.isFinite(g)&&g>0&&Number.isFinite(h)&&h>0,O=p.width<=0||p.height<=0||c.clientWidth<=0||c.clientHeight<=0;!N||!O||y(\"root_stage_layout_zero\",{compositionId:c.getAttribute(\"data-composition-id\")??null,declaredWidth:g,declaredHeight:h,rectWidth:Math.round(p.width),rectHeight:Math.round(p.height),clientWidth:c.clientWidth,clientHeight:c.clientHeight,display:E.display,visibility:E.visibility,overflow:E.overflow},`root-stage-layout-zero:${c.getAttribute(\"data-composition-id\")??\"unknown\"}`)},At=()=>{e.tornDown||(u!=null&&window.cancelAnimationFrame(u),u=window.requestAnimationFrame(()=>{u=null,we()}))},Ge=()=>{i=c=>{let p=v(c.error??c.message).slice(0,P);if(!p)return;let g=w(p);xe({source:\"hf-preview\",type:\"diagnostic\",code:g.code,details:{category:g.category,message:p,filename:c.filename||null,line:Number.isFinite(c.lineno)?c.lineno:null,column:Number.isFinite(c.colno)?c.colno:null}})},r=c=>{let p=v(c.reason).slice(0,P);if(!p)return;let g=w(p);xe({source:\"hf-preview\",type:\"diagnostic\",code:`${g.code}_unhandled_rejection`,details:{category:`${g.category}-unhandled-rejection`,message:p}})},window.addEventListener(\"error\",i),window.addEventListener(\"unhandledrejection\",r)},Ml=()=>{let c=Array.from(document.querySelectorAll(\"img, video, audio, source, link[rel='stylesheet']\"));for(let g of c){let h=()=>{if(!(g instanceof Element))return;let E=g.tagName.toLowerCase(),N=g.getAttribute(\"src\")??g.getAttribute(\"href\")??g.getAttribute(\"poster\")??null,O=E===\"link\"?\"runtime_stylesheet_load_failed\":\"runtime_asset_load_failed\";y(O,{tagName:E,assetUrl:N,currentSrc:(g instanceof HTMLImageElement||g instanceof HTMLMediaElement)&&g.currentSrc||null,readyState:g instanceof HTMLMediaElement?g.readyState:null,networkState:g instanceof HTMLMediaElement?g.networkState:null},`${O}:${E}:${N??\"unknown\"}`)};g.addEventListener(\"error\",h),S(()=>{g.removeEventListener(\"error\",h)})}let p=document.fonts;p&&p.ready.then(()=>{if(e.tornDown)return;let g=Array.from(p).filter(h=>h.status===\"error\").map(h=>h.family).filter(h=>!!h).slice(0,10);g.length!==0&&y(\"runtime_font_load_issue\",{failedFamilies:g,totalFaces:Array.from(p).length},`runtime-font-load-issue:${g.join(\"|\")}`)}).catch(()=>{})},Nl=(c,p)=>{if(!c.timeline)return!1;let g=e.capturedTimeline;if(g&&g===c.timeline)return!1;let h=Math.max(0,e.currentTime||0),E=e.isPlaying;e.capturedTimeline=c.timeline,typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);try{e.capturedTimeline.pause(),e.capturedTimeline.seek(h,!1),E&&e.capturedTimeline.play()}catch(N){M(\"runtime.init.site7\",N)}return xe({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_loop_guard_rebind\",details:{reason:p,previousTime:h,selectedTimelineIds:c.selectedTimelineIds??[],selectedDurationSeconds:c.selectedDurationSeconds??null,mediaDurationFloorSeconds:c.mediaDurationFloorSeconds??null}}),!0},tt=null,Rr=!1,wt=new Set,un=new WeakMap,cn=()=>{e.tornDown||(tt!=null&&window.clearTimeout(tt),tt=window.setTimeout(()=>{if(e.tornDown)return;tt=null;let c=q();if(!c.timeline||!V(c.mediaDurationFloorSeconds??null))return;if(!e.capturedTimeline){Ae()&&(nt(),ve(!0));return}if(Rr)return;let g=B(e.capturedTimeline),h=c.selectedDurationSeconds??B(c.timeline);V(h)&&(!V(g)||h>=g+T)&&Nl(c,\"manual\")&&(Rr=!0,xe({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_rebind_after_media_metadata\",details:{previousDurationSeconds:g??null,selectedDurationSeconds:h??null,selectedTimelineIds:c.selectedTimelineIds??[],mediaDurationFloorSeconds:c.mediaDurationFloorSeconds??null}}),nt(),ve(!0))},z))},Ll=()=>{for(let c of wt)c.removeEventListener(\"loadedmetadata\",cn),c.removeEventListener(\"durationchange\",cn);wt.clear()},Xn=()=>{if(e.tornDown)return;let c=Array.from(document.querySelectorAll(\"video, audio\"));for(let p of c){if(wt.has(p))continue;wt.add(p);let g=Number.parseFloat(p.dataset.volume??\"\");Number.isFinite(g)&&(p.volume=Math.max(0,Math.min(1,g))),p.addEventListener(\"loadedmetadata\",cn),p.addEventListener(\"durationchange\",cn),p.preload!==\"auto\"&&(p.preload=\"auto\"),p.readyState<HTMLMediaElement.HAVE_FUTURE_DATA&&p.load(),kr(p)}},kr=c=>{un.has(c)||Eo(c,e.capturedTimeline,W(e.capturedTimeline,0),un)},Yn=new WeakMap,Dr=c=>{let p=Yn.get(c);if(p!==void 0)return p;let g=window.getComputedStyle(c).position,h=g===\"static\"||g===\"relative\"||g===\"sticky\";return Yn.set(c,h),h},Qn=new WeakMap,Rl=c=>{let p=Qn.get(c);if(p!==void 0)return p;let g=c.querySelector(\"[data-start]\")===null;return Qn.set(c,g),g},kl=()=>{Yn=new WeakMap,Qn=new WeakMap},Zn=new WeakMap,dn=new WeakSet,Ir=c=>{let p=Array.from(document.querySelectorAll(\"[data-start]\")),g=F();for(let h of p){if(!(h instanceof HTMLElement))continue;if(h.hasAttribute(\"data-hidden\")){dn.has(h)||(Zn.set(h,h.style.getPropertyValue(\"display\")),dn.add(h)),h.style.display=\"none\",(h instanceof HTMLVideoElement||h instanceof HTMLImageElement)&&n?.setSourceVisibility(h,!1);continue}if(dn.has(h)){let N=Zn.get(h);N?h.style.display=N:h.style.removeProperty(\"display\"),Zn.delete(h),dn.delete(h)}let E=ie(h,c);if(E){let N=h.parentElement;for(;N&&N!==g;){if(N instanceof HTMLElement&&N.hasAttribute(\"data-start\")&&!ie(N,c)){E=!1;break}N=N.parentElement}}h.style.visibility=E?\"visible\":\"hidden\",(h instanceof HTMLVideoElement||h instanceof HTMLImageElement)&&n?.setSourceVisibility(h,E),E?Dr(h)&&h.style.removeProperty(\"display\"):Dr(h)&&Rl(h)&&(h.style.display=\"none\")}},Me=()=>{let c=h=>{let E=h.closest(\"[data-composition-id]\"),N=E?I(E,0):null,O=E?Y(E,{includeAuthoredTimingAttrs:!0}):null;return{compositionRoot:E,inheritedStart:N,inheritedDuration:O}},p=wo({shouldIncludeElement:h=>h.hasAttribute(\"data-start\")||!!c(h).compositionRoot,resolveStartSeconds:h=>{let E=c(h);return D(h,E.inheritedStart??0)},resolveDurationSeconds:h=>{let E=c(h),N=D(h,E.inheritedStart??0),O=Number.parseFloat(h.dataset.playbackStart??h.dataset.mediaStart??\"0\")||0,Q=E.inheritedStart!=null&&E.inheritedDuration!=null&&E.inheritedDuration>0?Math.max(0,E.inheritedStart+E.inheritedDuration-N):null,$=Number.isFinite(h.duration)&&h.duration>O?Math.max(0,h.duration-O):null,de=Number.parseFloat(h.dataset.duration??\"\"),me=Number.isFinite(de)&&de>0?de:null;return Ao({isVideo:h.tagName===\"VIDEO\",sourceDuration:$,hostRemaining:Q,explicitDuration:me})}});for(let h of p.mediaClips){let E=un.get(h.el);E&&(h.volumeKeyframes=E)}let g=e.mediaForceSyncNextTick;g&&(e.mediaForceSyncNextTick=!1),e.nativeMediaSyncDisabled||Co({clips:p.mediaClips,timeSeconds:e.currentTime,playing:e.isPlaying,playbackRate:e.playbackRate,outputMuted:e.mediaOutputMuted||!e.webAudioMediaDisabled&&!e.nativeMediaSyncDisabled&&l.isActive(),userMuted:e.bridgeMuted,userVolume:e.bridgeVolume,forceSync:g,onElementVolume:(h,E)=>l.setElementVolume(h,E),isWebAudioOwned:h=>l.ownsElement(h),onAutoplayBlocked:()=>{e.mediaAutoplayBlockedPosted||(e.mediaAutoplayBlockedPosted=!0,xe({source:\"hf-preview\",type:\"media-autoplay-blocked\"}))}}),Ir(e.currentTime)},ve=c=>{let p=Math.max(0,Math.round((e.currentTime||0)*e.canonicalFps)),g=Date.now();(c||p!==e.bridgeLastPostedFrame||e.isPlaying!==e.bridgeLastPostedPlaying||e.bridgeMuted!==e.bridgeLastPostedMuted||g-e.bridgeLastPostedAt>=e.bridgeMaxPostIntervalMs)&&(e.bridgeLastPostedFrame=p,e.bridgeLastPostedPlaying=e.isPlaying,e.bridgeLastPostedMuted=e.bridgeMuted,e.bridgeLastPostedAt=g,xe({source:\"hf-preview\",type:\"state\",frame:p,isPlaying:e.isPlaying,muted:e.bridgeMuted,playbackRate:e.playbackRate}))},ei=\"\",Pr=0,Dl=()=>{let c=\"\";for(let p of document.querySelectorAll(\"[data-start]\"))c+=`${p.id}:${p.tagName}|`;return c},nt=()=>{R(),L(),U();let c=F();if(c){let h=C(c.getAttribute(\"data-width\")),E=C(c.getAttribute(\"data-height\")),N=h?parseInt(h,10):0,O=E?parseInt(E,10):0;N>0&&O>0&&xe({source:\"hf-preview\",type:\"stage-size\",width:N,height:O})}Ae();let p=Go({canonicalFps:e.canonicalFps});window.__clipManifest=p;let g=Dl();if(ei!==g&&kl(),!window.__clipTree||ei!==g){let h=window;window.__clipTree=Io({startResolver:$e({timelineRegistry:h.__timelines??{},includeAuthoredTimingAttrs:!0}),timelineRegistry:h.__timelines??{},rootDuration:p.durationInFrames/e.canonicalFps}),ei=g}xe(p),At()},ti=c=>Number.isFinite(c)&&c>0?c:0,Il=c=>{let p=ti(Number(c));if(p<=0)return;let g=F(),h=ti(Number.parseFloat(g?.getAttribute(\"data-duration\")??\"\")),E=Math.max(Pr,ti(s.getDuration()),h);p<=E||(Pr=p,g?.setAttribute(\"data-duration\",String(p)),s.setDuration(p),nt(),ve(!0))},Pe=(c,p=0)=>{for(let g of e.deterministicAdapters){try{c===\"discover\"&&g.discover(),c===\"pause\"&&g.pause(),c===\"play\"&&g.play&&g.play()}catch(h){M(\"runtime.init.site8\",h)}if(c===\"discover\")try{g.seek({time:p,suppressEvents:!0})}catch(h){M(\"runtime.init.site9\",h)}}},it=()=>{window.__renderReady=!1},Ct=null,Ft=!0,Pl=()=>{let c=[];for(let p of e.deterministicAdapters){let g=p.getReadyPromise;if(typeof g==\"function\")try{let h=g();h&&c.push(h)}catch(h){M(\"runtime.init.adapterReady\",h)}}return c},Ol=()=>{let c=Pl();if(c.length===0)return Ct=null,Ft=!0,!0;let p=c[0];if(!p)return!0;let g=c.length===1?p:Promise.all(c);return g!==Ct&&(Ct=g,Ft=!1,Promise.resolve(g).then(()=>{Ct===g&&(Ft=!0,it())},h=>{Ct===g&&(Ft=!0,M(\"runtime.init.adapterReady\",h),it())})),Ft};if(X)lr();else{let c={injectedStyles:e.injectedCompStyles,injectedScripts:e.injectedCompScripts,injectedLinks:e.injectedCompLinks,parseDimensionPx:C,onDiagnostic:({code:p,details:g})=>{xe({source:\"hf-preview\",type:\"diagnostic\",code:p,details:g})}};va(c).then(()=>_a(c)).finally(()=>{X=!0,Xn(),Ml(),lr(),pr(document),it()})}let fn=No({postMessage:c=>xe(c)});fn.installPickerApi();let We=Qa();n=We,S(()=>{We.destroy(),n=null});let ni=c=>{let p=Number(c);!Number.isFinite(p)||p<=0?e.playbackRate=1:e.playbackRate=Math.max(.1,Math.min(5,p)),e.mediaForceSyncNextTick=!0,e.capturedTimeline&&typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);let g=document.querySelectorAll(\"video, audio\");for(let h of g)if(h instanceof HTMLMediaElement)try{h.playbackRate=e.playbackRate}catch(E){M(\"runtime.init.site10\",E)}},Or={play:()=>{let c=e.capturedTimeline;if(s.isPlaying())return;let p=W(c,0);if(p>0)s.setDuration(p),s.reachedEnd()&&(s.seek(0),e.currentTime=0,rt(0));else{let g=F(),h=Number(g?.getAttribute(\"data-duration\")??0);h>0&&s.setDuration(h)}c&&c.pause(),s.play()&&(e.isPlaying=!0,e.mediaForceSyncNextTick=!0,Ur(s.now()),d&&!e.nativeMediaSyncDisabled&&!e.webAudioMediaDisabled&&Vr(),Pe(\"play\"),Me(),We.redraw(),ve(!0))},pause:()=>{if(!s.isPlaying())return;l.stopAll(),s.detachAudioSource(),s.pause(),e.isPlaying=!1,e.currentTime=s.now(),e.mediaForceSyncNextTick=!0,Ur(e.currentTime);let c=e.capturedTimeline;c&&c.pause(),Pe(\"pause\"),Me(),We.redraw(),ve(!0)},seek:(c,p)=>{let g=ft(Math.max(0,Number(c)||0),e.canonicalFps);l.stopAll(),s.detachAudioSource();let h=s.isPlaying();h&&s.pause(),s.seek(g),e.currentTime=s.now(),e.isPlaying=!1,e.mediaForceSyncNextTick=!0;let E=e.capturedTimeline;if(E&&E.pause(),rt(e.currentTime),Pe(\"pause\"),p?.keepPlaying&&h){Or.play();return}Me(),We.redraw(),ve(!0)},renderSeek:(c,p)=>{let g=ft(Math.max(0,Number(c)||0),e.canonicalFps);l.stopAll(),s.detachAudioSource(),s.isPlaying()&&s.pause(),s.seek(g),e.currentTime=s.now(),e.isPlaying=!1,e.mediaForceSyncNextTick=!0,rt(e.currentTime,{activateChildren:!0,suppressEvents:p?.suppressEvents}),Me(),We.redraw(),ve(!0)},getTime:()=>s.now(),getDuration:()=>{let c=s.getDuration();return Number.isFinite(c)?c:0},isPlaying:()=>s.isPlaying(),setPlaybackRate:c=>{ni(c),s.setRate(e.playbackRate),zr()},getPlaybackRate:()=>e.playbackRate},Br=W(e.capturedTimeline,0);Br>0&&s.setDuration(Br);let Ne=ko({getTimeline:()=>e.capturedTimeline,setTimeline:c=>{e.capturedTimeline=c},getTimelineRegistry:()=>window.__timelines??{},getIsPlaying:()=>e.isPlaying,setIsPlaying:c=>{e.isPlaying!==c&&(e.mediaForceSyncNextTick=!0),e.isPlaying=c},getPlaybackRate:()=>e.playbackRate,setPlaybackRate:ni,getCanonicalFps:()=>e.canonicalFps,onSyncMedia:(c,p)=>{e.currentTime=Math.max(0,Number(c)||0),e.isPlaying!==p&&(e.mediaForceSyncNextTick=!0),e.isPlaying=p,Me()},onStatePost:ve,onDeterministicSeek:(c,p)=>{for(let g of e.deterministicAdapters)if(!(g.name===\"gsap\"&&e.capturedTimeline))try{g.seek({time:Number(c)||0,suppressEvents:p?.suppressEvents})}catch(h){M(\"runtime.init.site11\",h)}},onDeterministicPause:()=>Pe(\"pause\"),onDeterministicPlay:()=>Pe(\"play\"),onRenderFrameSeek:()=>{We.redraw()},onShowNativeVideos:()=>{},getSafeDuration:()=>W(e.capturedTimeline,0),transport:Or});window.__player=b(Ne),window.__playerReady=!0,Xr(xe),ot(\"composition_loaded\",{duration:Ne.getDuration(),compositionId:document.querySelector(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")??null}),e.controlBridgeHandler=Jr({onPlay:()=>{Ne.play(),ot(\"composition_played\",{time:Ne.getTime()})},onPause:()=>{Ne.pause(),ot(\"composition_paused\",{time:Ne.getTime()})},onStopMedia:()=>{l.stopAll();let c=document.querySelectorAll(\"video, audio\");for(let p of c)p instanceof HTMLMediaElement&&!p.paused&&p.pause()},onSeek:(c,p)=>{Ne.seek(c),ot(\"composition_seeked\",{time:c})},onSetMuted:c=>{e.bridgeMuted=c;let p=c||e.mediaOutputMuted;l.setMuted(p);let g=document.querySelectorAll(\"video, audio\");for(let h of g)h instanceof HTMLMediaElement&&(h.muted=p||h.defaultMuted)},onSetVolume:c=>{e.bridgeVolume=c,l.setVolume(c);let p=document.querySelectorAll(\"video, audio\");for(let g of p){if(!(g instanceof HTMLMediaElement))continue;let h=parseFloat(g.dataset.volume??\"\"),E=Number.isFinite(h)?h:1;g.volume=E*c}},onSetMediaOutputMuted:c=>{e.mediaOutputMuted=c;let p=c||e.bridgeMuted;l.setMuted(p);let g=document.querySelectorAll(\"video, audio\");for(let h of g)h instanceof HTMLMediaElement&&(h.muted=p||h.defaultMuted)},onSetNativeMediaSyncDisabled:c=>{e.nativeMediaSyncDisabled!==c&&(e.nativeMediaSyncDisabled=c,e.mediaForceSyncNextTick=!0,c?(l.stopAll(),s.detachAudioSource()):Me())},onSetWebAudioMediaDisabled:c=>{e.webAudioMediaDisabled!==c&&(e.webAudioMediaDisabled=c,e.mediaForceSyncNextTick=!0,c&&(l.stopAll(),s.detachAudioSource()),Me())},onSetPlaybackRate:c=>{ni(c),e.transportClock&&e.transportClock.setRate(e.playbackRate),zr()},onSetRootDuration:Il,onSetColorGrading:(c,p)=>{We.setGrading(c,p)},onSetColorGradingCompare:(c,p)=>{We.setCompare(c,p)},onTick:()=>{if(e.tornDown||!s.isPlaying())return;let c=s.now();if(e.currentTime=c,rt(c),s.reachedEnd()){l.stopAll(),s.detachAudioSource(),s.pause(),e.isPlaying=!1;let p=s.getDuration();Number.isFinite(p)&&(s.seek(p),e.currentTime=p,rt(p)),Pe(\"pause\"),Me(),ve(!0)}},onEnablePickMode:()=>fn.enablePickMode(),onDisablePickMode:()=>fn.disablePickMode(),getCanonicalFps:()=>e.canonicalFps}),e.deterministicAdapters=[yo(),no({resolveStartSeconds:c=>I(c,0)}),ro(),so(),lo(),uo(),co(),fo(),mo(),po(),ho(),io({getTimeline:()=>e.capturedTimeline})],xo(),bo(),window.__hfReseekGpu=c=>{let p=Math.max(0,Number(c)||0);window.__hfThreeTime=p,window.__hfTypegpuTime=p,ao(p)},Ge(),Xn(),Pe(\"discover\");let Bl=()=>{let c=e.capturedTimeline,p=Ae();e.capturedTimeline&&(p||e.capturedTimeline!==c||!Ne._timeline)&&(Ne._timeline=e.capturedTimeline);let g=W(e.capturedTimeline,0);if(g>0&&s.setDuration(g),Pe(\"discover\",e.currentTime),!e.capturedTimeline){let h=window.__timelines??{},E=Object.keys(h).filter(N=>h[N]);if(E.length>0){let O=F()?.getAttribute(\"data-composition-id\")??null;y(\"root_timeline_unbound_registry_present\",{reason:O?\"root data-composition-id has no matching key in window.__timelines\":\"root composition element has no data-composition-id attribute\",rootCompositionId:O,registeredTimelineKeys:E},\"root_timeline_unbound_registry_present\"),console.warn(\"[hyperframes] Root timeline not bound \\u2014 render will freeze at t=0. \"+(O?`Root data-composition-id is \"${O}\" but window.__timelines has no such key. `:\"Root composition element has no data-composition-id. \")+`Registered timeline keys: [${E.join(\", \")}]. Register the root timeline under its data-composition-id (window.__timelines[\"${O??\"<root-id>\"}\"] = tl).`)}}window.__renderReady=!0,nt(),ve(!0)},ct=null,Hl=()=>{if(ct)return;let c=()=>{window.removeEventListener(\"hf-timelines-built\",c),ct=null,it()};ct=c,window.addEventListener(\"hf-timelines-built\",c)};S(()=>{ct&&(window.removeEventListener(\"hf-timelines-built\",ct),ct=null)}),it=()=>{if(!X){window.__renderReady=!1;return}if(window.__hfTimelinesBuilding){window.__renderReady=!1,Hl();return}if(Pe(\"discover\",e.currentTime),!Ol()){window.__renderReady=!1;return}Bl()},it(),X&&setTimeout(()=>{it()},0);let mn=0,ii=!1,Gl=(c,p,g,h)=>{try{let E=h?.suppressEvents===!0;c.pause(),typeof c.totalTime==\"function\"?c.totalTime(p,E):c.seek(p,E)}catch(E){M(g,E)}},Wl=(c,p)=>{let g=window.__timelines??{},h=F()?.getAttribute(\"data-composition-id\")??null;for(let[E,N]of Object.entries(g)){if(!N||E===h)continue;let O=document.querySelector(`[data-composition-id=\"${CSS.escape(E)}\"]`);if(!O)continue;let Q=I(O,0);if(!Number.isFinite(Q))continue;let $=Y(O,{includeAuthoredTimingAttrs:!0}),de=B(N),me=$!=null&&$>0?$:de,se=Math.max(0,me!=null&&me>0?Math.min(me,c-Q):c-Q);Gl(N,se,\"runtime.init.transport.childTimeline\",p)}},Ul=c=>{let p=window.__timelines??{};for(let g of Object.values(p))if(!(!g||g===c))try{g.play()}catch(h){M(\"runtime.init.activateSiblings\",h)}},Hr=c=>typeof c==\"object\"&&c!==null,_t=new WeakMap,Vl=[\"onStart\",\"onUpdate\",\"onComplete\",\"onReverseComplete\",\"onRepeat\"],Gr=(c,p)=>{let g=c[p];if(typeof g!=\"function\")return null;try{let h=Number(g.call(c));return Number.isFinite(h)?h:null}catch(h){return M(\"runtime.init.gsapCallbackDuration\",h),null}},zl=c=>{let p=_t.get(c);if(p!=null)return p;if(!(\"getChildren\"in c)||typeof c.getChildren!=\"function\")return!1;let g;try{g=c.getChildren(!0,!0,!0)}catch(h){return M(\"runtime.init.gsapCallbackChildren\",h),_t.set(c,!1),!1}if(!Array.isArray(g))return _t.set(c,!1),!1;for(let h of g){if(!Hr(h))continue;let E=h.vars;if(!Hr(E)||!Vl.some($=>typeof E[$]==\"function\"))continue;let Q=Gr(h,\"totalDuration\")??Gr(h,\"duration\");if(Q!=null&&Q<=1e-6)return _t.set(c,!0),!0}return _t.set(c,!1),!1},rt=(c,p)=>{let g=e.capturedTimeline,h=p?.suppressEvents===!0;if(g){p?.activateChildren&&Ul(g);let E=g,N=c;if(typeof E.totalDuration==\"function\")try{let O=Number(E.totalDuration());Number.isFinite(O)&&O>0&&c>O&&(N=O)}catch(O){M(\"runtime.init.transport.clampDuration\",O)}try{typeof g.totalTime==\"function\"?(g.totalTime(N,h),!h&&!zl(g)&&(g.totalTime(N+.001,!0),g.totalTime(N,!0))):g.seek(N,h)}catch(O){M(\"runtime.init.transport.seek\",O)}}else Wl(c,p);for(let E of e.deterministicAdapters)if(!(E.name===\"gsap\"&&g))try{E.seek({time:c,suppressEvents:h})}catch(N){M(\"runtime.init.transport.adapter\",N)}},jl=()=>{try{return document.querySelector(`[${el}]`)!=null}catch{return!1}},Wr=()=>{if(!(e.tornDown||ii)){ii=!0;try{if(e.transportRafId=window.requestAnimationFrame(Wr),mn+=1,tl({tick:mn,isPlaying:s.isPlaying(),hasCapturedTimeline:e.capturedTimeline!=null,currentTimeSeconds:s.now()})){let p=e.capturedTimeline;if(Ae()){e.capturedTimeline&&!Ne._timeline&&(Ne._timeline=e.capturedTimeline),e.capturedTimeline&&e.capturedTimeline!==p&&e.capturedTimeline.pause();let g=W(e.capturedTimeline,0);g>0&&s.setDuration(g),nt()}}if(mn%20===0&&nt(),mn%30===0&&Xn(),e.capturedTimeline){let p=W(e.capturedTimeline,0);p>0&&(!s.isPlaying()||p>=s.getDuration())&&s.setDuration(p)}if(s.isPlaying()&&!e.mediaOutputMuted)if(!e.nativeMediaSyncDisabled&&!e.webAudioMediaDisabled&&l.isActive()&&l.context){let p=l.getTime();p>=0&&s.attachAudioSource({currentTimeSeconds:p})}else{let p=document.querySelectorAll(\"audio[data-start]\"),g=!1;for(let h of p){if(!(h instanceof HTMLMediaElement)||!h.isConnected)continue;let E=Number.parseFloat(h.dataset.start??\"\"),N=Number.parseFloat(h.dataset.duration??\"\"),O=Number.isFinite(N)&&N>0?E+N:1/0,Q=Number.parseFloat(h.dataset.playbackStart??h.dataset.mediaStart??\"0\")||0;if(Number.isFinite(E)&&e.currentTime>=E&&e.currentTime<O){h.paused?!h.error&&h.readyState<HTMLMediaElement.HAVE_FUTURE_DATA&&(s.attachAudioSource({currentTimeSeconds:e.currentTime}),g=!0):(s.attachAudioSource({el:h,compositionStart:E,mediaStart:Q}),g=!0);break}}!g&&s.hasAudioSource()&&s.detachAudioSource()}else s.hasAudioSource()&&s.detachAudioSource();let c=s.now();if(e.currentTime=c,(s.isPlaying()||!jl())&&rt(c),s.isPlaying()&&s.reachedEnd()){l.stopAll(),s.detachAudioSource(),s.pause(),e.isPlaying=!1;let p=s.getDuration();Number.isFinite(p)&&(s.seek(p),e.currentTime=p,rt(p)),Pe(\"pause\"),Me(),ve(!0);return}s.isPlaying()&&Me(),ve(!1)}finally{ii=!1}}},Ur=c=>{let p=document.querySelectorAll(\"video, audio\");for(let g of p){if(!(g instanceof HTMLMediaElement)||!g.isConnected)continue;let h=Number.parseFloat(g.dataset.start??\"\");if(!Number.isFinite(h))continue;let E=Number.parseFloat(g.dataset.duration??\"\"),N=Number.isFinite(E)&&E>0?h+E:1/0;if(c<h||c>=N)continue;let O=Number.parseFloat(g.dataset.playbackStart??g.dataset.mediaStart??\"0\")||0,Q=c-h+O;if(Q>=0)try{g.currentTime=Q}catch{}}},Vr=()=>{if(e.nativeMediaSyncDisabled||e.webAudioMediaDisabled)return;let c=l.startGeneration(),p=document.querySelectorAll(\"audio[data-start]\");for(let g of p){if(!(g instanceof HTMLMediaElement)||!g.isConnected)continue;let h=Number.parseFloat(g.dataset.start??\"\");if(!Number.isFinite(h))continue;let E=Number.parseFloat(g.dataset.playbackStart??g.dataset.mediaStart??\"0\")||0,N=Number.parseFloat(g.dataset.volume??\"\"),O=Number.isFinite(N)?N:1,Q=Number.parseFloat(g.dataset.duration??\"\"),$=Number.isFinite(Q)&&Q>0?Q:Number.POSITIVE_INFINITY,de=g.closest(\"[data-composition-id]\");if(de){let me=I(de,0),se=Y(de,{includeAuthoredTimingAttrs:!0});se!=null&&se>0&&($=Math.min($,Math.max(0,me+se-h)))}l.decodeAudioElement(g).then(me=>{!me||!s.isPlaying()||l.schedulePlayback(g,me,h,E,s.now(),O*e.bridgeVolume,c,e.playbackRate,$)})}},zr=()=>{l.setRate(e.playbackRate)&&!e.nativeMediaSyncDisabled&&!e.webAudioMediaDisabled&&d&&s.isPlaying()&&l.hasBoundedActiveSources()&&(l.stopAll(),Vr())};if(e.capturedTimeline){let c=W(e.capturedTimeline,0);c>0&&s.setDuration(c),e.capturedTimeline.pause()}ka(window),e.transportRafId=window.requestAnimationFrame(Wr),nt(),ve(!0);let ri=()=>{if(!e.tornDown){e.tornDown=!0,e.transportRafId!=null&&(window.cancelAnimationFrame(e.transportRafId),e.transportRafId=null),e.transportClock=null,l.destroy(),tt!=null&&(window.clearTimeout(tt),tt=null),u!=null&&(window.cancelAnimationFrame(u),u=null),Ll(),e.controlBridgeHandler&&(window.removeEventListener(\"message\",e.controlBridgeHandler),e.controlBridgeHandler=null),i&&(window.removeEventListener(\"error\",i),i=null),r&&(window.removeEventListener(\"unhandledrejection\",r),r=null),e.beforeUnloadHandler&&(window.removeEventListener(\"beforeunload\",e.beforeUnloadHandler),e.beforeUnloadHandler=null),fn.disablePickMode();for(let c of e.deterministicAdapters)if(!(!c||typeof c.revert!=\"function\"))try{c.revert()}catch(p){M(\"runtime.init.site12\",p)}e.deterministicAdapters=[];for(let c of o.splice(0))try{c()}catch(p){M(\"runtime.init.site13\",p)}for(let c of e.injectedCompStyles)try{c.remove()}catch(p){M(\"runtime.init.site14\",p)}e.injectedCompStyles=[];for(let c of e.injectedCompLinks)try{c.remove()}catch(p){M(\"runtime.init.site15\",p)}e.injectedCompLinks=[];for(let c of e.injectedCompScripts)try{c.remove()}catch(p){M(\"runtime.init.site16\",p)}e.injectedCompScripts=[],e.capturedTimeline=null,window.__hfRuntimeTeardown===ri&&(window.__hfRuntimeTeardown=null)}};window.__hfRuntimeTeardown=ri,e.beforeUnloadHandler=ri,window.addEventListener(\"beforeunload\",e.beforeUnloadHandler)}var il=[\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"S\",\"B\",\"S\",\"WS\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"B\",\"B\",\"S\",\"WS\",\"ON\",\"ON\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ES\",\"CS\",\"ES\",\"CS\",\"CS\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"CS\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"CS\",\"ON\",\"ET\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"ON\",\"ON\",\"BN\",\"ON\",\"ON\",\"ET\",\"ET\",\"EN\",\"EN\",\"ON\",\"L\",\"ON\",\"ON\",\"ON\",\"EN\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\"],Cr=[[697,698,\"ON\"],[706,719,\"ON\"],[722,735,\"ON\"],[741,749,\"ON\"],[751,767,\"ON\"],[768,879,\"NSM\"],[884,885,\"ON\"],[894,894,\"ON\"],[900,901,\"ON\"],[903,903,\"ON\"],[1014,1014,\"ON\"],[1155,1161,\"NSM\"],[1418,1418,\"ON\"],[1421,1422,\"ON\"],[1423,1423,\"ET\"],[1424,1424,\"R\"],[1425,1469,\"NSM\"],[1470,1470,\"R\"],[1471,1471,\"NSM\"],[1472,1472,\"R\"],[1473,1474,\"NSM\"],[1475,1475,\"R\"],[1476,1477,\"NSM\"],[1478,1478,\"R\"],[1479,1479,\"NSM\"],[1480,1535,\"R\"],[1536,1541,\"AN\"],[1542,1543,\"ON\"],[1544,1544,\"AL\"],[1545,1546,\"ET\"],[1547,1547,\"AL\"],[1548,1548,\"CS\"],[1549,1549,\"AL\"],[1550,1551,\"ON\"],[1552,1562,\"NSM\"],[1563,1610,\"AL\"],[1611,1631,\"NSM\"],[1632,1641,\"AN\"],[1642,1642,\"ET\"],[1643,1644,\"AN\"],[1645,1647,\"AL\"],[1648,1648,\"NSM\"],[1649,1749,\"AL\"],[1750,1756,\"NSM\"],[1757,1757,\"AN\"],[1758,1758,\"ON\"],[1759,1764,\"NSM\"],[1765,1766,\"AL\"],[1767,1768,\"NSM\"],[1769,1769,\"ON\"],[1770,1773,\"NSM\"],[1774,1775,\"AL\"],[1776,1785,\"EN\"],[1786,1808,\"AL\"],[1809,1809,\"NSM\"],[1810,1839,\"AL\"],[1840,1866,\"NSM\"],[1867,1957,\"AL\"],[1958,1968,\"NSM\"],[1969,1983,\"AL\"],[1984,2026,\"R\"],[2027,2035,\"NSM\"],[2036,2037,\"R\"],[2038,2041,\"ON\"],[2042,2044,\"R\"],[2045,2045,\"NSM\"],[2046,2069,\"R\"],[2070,2073,\"NSM\"],[2074,2074,\"R\"],[2075,2083,\"NSM\"],[2084,2084,\"R\"],[2085,2087,\"NSM\"],[2088,2088,\"R\"],[2089,2093,\"NSM\"],[2094,2136,\"R\"],[2137,2139,\"NSM\"],[2140,2143,\"R\"],[2144,2191,\"AL\"],[2192,2193,\"AN\"],[2194,2198,\"AL\"],[2199,2207,\"NSM\"],[2208,2249,\"AL\"],[2250,2273,\"NSM\"],[2274,2274,\"AN\"],[2275,2306,\"NSM\"],[2362,2362,\"NSM\"],[2364,2364,\"NSM\"],[2369,2376,\"NSM\"],[2381,2381,\"NSM\"],[2385,2391,\"NSM\"],[2402,2403,\"NSM\"],[2433,2433,\"NSM\"],[2492,2492,\"NSM\"],[2497,2500,\"NSM\"],[2509,2509,\"NSM\"],[2530,2531,\"NSM\"],[2546,2547,\"ET\"],[2555,2555,\"ET\"],[2558,2558,\"NSM\"],[2561,2562,\"NSM\"],[2620,2620,\"NSM\"],[2625,2626,\"NSM\"],[2631,2632,\"NSM\"],[2635,2637,\"NSM\"],[2641,2641,\"NSM\"],[2672,2673,\"NSM\"],[2677,2677,\"NSM\"],[2689,2690,\"NSM\"],[2748,2748,\"NSM\"],[2753,2757,\"NSM\"],[2759,2760,\"NSM\"],[2765,2765,\"NSM\"],[2786,2787,\"NSM\"],[2801,2801,\"ET\"],[2810,2815,\"NSM\"],[2817,2817,\"NSM\"],[2876,2876,\"NSM\"],[2879,2879,\"NSM\"],[2881,2884,\"NSM\"],[2893,2893,\"NSM\"],[2901,2902,\"NSM\"],[2914,2915,\"NSM\"],[2946,2946,\"NSM\"],[3008,3008,\"NSM\"],[3021,3021,\"NSM\"],[3059,3064,\"ON\"],[3065,3065,\"ET\"],[3066,3066,\"ON\"],[3072,3072,\"NSM\"],[3076,3076,\"NSM\"],[3132,3132,\"NSM\"],[3134,3136,\"NSM\"],[3142,3144,\"NSM\"],[3146,3149,\"NSM\"],[3157,3158,\"NSM\"],[3170,3171,\"NSM\"],[3192,3198,\"ON\"],[3201,3201,\"NSM\"],[3260,3260,\"NSM\"],[3276,3277,\"NSM\"],[3298,3299,\"NSM\"],[3328,3329,\"NSM\"],[3387,3388,\"NSM\"],[3393,3396,\"NSM\"],[3405,3405,\"NSM\"],[3426,3427,\"NSM\"],[3457,3457,\"NSM\"],[3530,3530,\"NSM\"],[3538,3540,\"NSM\"],[3542,3542,\"NSM\"],[3633,3633,\"NSM\"],[3636,3642,\"NSM\"],[3647,3647,\"ET\"],[3655,3662,\"NSM\"],[3761,3761,\"NSM\"],[3764,3772,\"NSM\"],[3784,3790,\"NSM\"],[3864,3865,\"NSM\"],[3893,3893,\"NSM\"],[3895,3895,\"NSM\"],[3897,3897,\"NSM\"],[3898,3901,\"ON\"],[3953,3966,\"NSM\"],[3968,3972,\"NSM\"],[3974,3975,\"NSM\"],[3981,3991,\"NSM\"],[3993,4028,\"NSM\"],[4038,4038,\"NSM\"],[4141,4144,\"NSM\"],[4146,4151,\"NSM\"],[4153,4154,\"NSM\"],[4157,4158,\"NSM\"],[4184,4185,\"NSM\"],[4190,4192,\"NSM\"],[4209,4212,\"NSM\"],[4226,4226,\"NSM\"],[4229,4230,\"NSM\"],[4237,4237,\"NSM\"],[4253,4253,\"NSM\"],[4957,4959,\"NSM\"],[5008,5017,\"ON\"],[5120,5120,\"ON\"],[5760,5760,\"WS\"],[5787,5788,\"ON\"],[5906,5908,\"NSM\"],[5938,5939,\"NSM\"],[5970,5971,\"NSM\"],[6002,6003,\"NSM\"],[6068,6069,\"NSM\"],[6071,6077,\"NSM\"],[6086,6086,\"NSM\"],[6089,6099,\"NSM\"],[6107,6107,\"ET\"],[6109,6109,\"NSM\"],[6128,6137,\"ON\"],[6144,6154,\"ON\"],[6155,6157,\"NSM\"],[6158,6158,\"BN\"],[6159,6159,\"NSM\"],[6277,6278,\"NSM\"],[6313,6313,\"NSM\"],[6432,6434,\"NSM\"],[6439,6440,\"NSM\"],[6450,6450,\"NSM\"],[6457,6459,\"NSM\"],[6464,6464,\"ON\"],[6468,6469,\"ON\"],[6622,6655,\"ON\"],[6679,6680,\"NSM\"],[6683,6683,\"NSM\"],[6742,6742,\"NSM\"],[6744,6750,\"NSM\"],[6752,6752,\"NSM\"],[6754,6754,\"NSM\"],[6757,6764,\"NSM\"],[6771,6780,\"NSM\"],[6783,6783,\"NSM\"],[6832,6877,\"NSM\"],[6880,6891,\"NSM\"],[6912,6915,\"NSM\"],[6964,6964,\"NSM\"],[6966,6970,\"NSM\"],[6972,6972,\"NSM\"],[6978,6978,\"NSM\"],[7019,7027,\"NSM\"],[7040,7041,\"NSM\"],[7074,7077,\"NSM\"],[7080,7081,\"NSM\"],[7083,7085,\"NSM\"],[7142,7142,\"NSM\"],[7144,7145,\"NSM\"],[7149,7149,\"NSM\"],[7151,7153,\"NSM\"],[7212,7219,\"NSM\"],[7222,7223,\"NSM\"],[7376,7378,\"NSM\"],[7380,7392,\"NSM\"],[7394,7400,\"NSM\"],[7405,7405,\"NSM\"],[7412,7412,\"NSM\"],[7416,7417,\"NSM\"],[7616,7679,\"NSM\"],[8125,8125,\"ON\"],[8127,8129,\"ON\"],[8141,8143,\"ON\"],[8157,8159,\"ON\"],[8173,8175,\"ON\"],[8189,8190,\"ON\"],[8192,8202,\"WS\"],[8203,8205,\"BN\"],[8207,8207,\"R\"],[8208,8231,\"ON\"],[8232,8232,\"WS\"],[8233,8233,\"B\"],[8234,8238,\"BN\"],[8239,8239,\"CS\"],[8240,8244,\"ET\"],[8245,8259,\"ON\"],[8260,8260,\"CS\"],[8261,8286,\"ON\"],[8287,8287,\"WS\"],[8288,8303,\"BN\"],[8304,8304,\"EN\"],[8308,8313,\"EN\"],[8314,8315,\"ES\"],[8316,8318,\"ON\"],[8320,8329,\"EN\"],[8330,8331,\"ES\"],[8332,8334,\"ON\"],[8352,8399,\"ET\"],[8400,8432,\"NSM\"],[8448,8449,\"ON\"],[8451,8454,\"ON\"],[8456,8457,\"ON\"],[8468,8468,\"ON\"],[8470,8472,\"ON\"],[8478,8483,\"ON\"],[8485,8485,\"ON\"],[8487,8487,\"ON\"],[8489,8489,\"ON\"],[8494,8494,\"ET\"],[8506,8507,\"ON\"],[8512,8516,\"ON\"],[8522,8525,\"ON\"],[8528,8543,\"ON\"],[8585,8587,\"ON\"],[8592,8721,\"ON\"],[8722,8722,\"ES\"],[8723,8723,\"ET\"],[8724,9013,\"ON\"],[9083,9108,\"ON\"],[9110,9257,\"ON\"],[9280,9290,\"ON\"],[9312,9351,\"ON\"],[9352,9371,\"EN\"],[9450,9899,\"ON\"],[9901,10239,\"ON\"],[10496,11123,\"ON\"],[11126,11263,\"ON\"],[11493,11498,\"ON\"],[11503,11505,\"NSM\"],[11513,11519,\"ON\"],[11647,11647,\"NSM\"],[11744,11775,\"NSM\"],[11776,11869,\"ON\"],[11904,11929,\"ON\"],[11931,12019,\"ON\"],[12032,12245,\"ON\"],[12272,12287,\"ON\"],[12288,12288,\"WS\"],[12289,12292,\"ON\"],[12296,12320,\"ON\"],[12330,12333,\"NSM\"],[12336,12336,\"ON\"],[12342,12343,\"ON\"],[12349,12351,\"ON\"],[12441,12442,\"NSM\"],[12443,12444,\"ON\"],[12448,12448,\"ON\"],[12539,12539,\"ON\"],[12736,12773,\"ON\"],[12783,12783,\"ON\"],[12829,12830,\"ON\"],[12880,12895,\"ON\"],[12924,12926,\"ON\"],[12977,12991,\"ON\"],[13004,13007,\"ON\"],[13175,13178,\"ON\"],[13278,13279,\"ON\"],[13311,13311,\"ON\"],[19904,19967,\"ON\"],[42128,42182,\"ON\"],[42509,42511,\"ON\"],[42607,42610,\"NSM\"],[42611,42611,\"ON\"],[42612,42621,\"NSM\"],[42622,42623,\"ON\"],[42654,42655,\"NSM\"],[42736,42737,\"NSM\"],[42752,42785,\"ON\"],[42888,42888,\"ON\"],[43010,43010,\"NSM\"],[43014,43014,\"NSM\"],[43019,43019,\"NSM\"],[43045,43046,\"NSM\"],[43048,43051,\"ON\"],[43052,43052,\"NSM\"],[43064,43065,\"ET\"],[43124,43127,\"ON\"],[43204,43205,\"NSM\"],[43232,43249,\"NSM\"],[43263,43263,\"NSM\"],[43302,43309,\"NSM\"],[43335,43345,\"NSM\"],[43392,43394,\"NSM\"],[43443,43443,\"NSM\"],[43446,43449,\"NSM\"],[43452,43453,\"NSM\"],[43493,43493,\"NSM\"],[43561,43566,\"NSM\"],[43569,43570,\"NSM\"],[43573,43574,\"NSM\"],[43587,43587,\"NSM\"],[43596,43596,\"NSM\"],[43644,43644,\"NSM\"],[43696,43696,\"NSM\"],[43698,43700,\"NSM\"],[43703,43704,\"NSM\"],[43710,43711,\"NSM\"],[43713,43713,\"NSM\"],[43756,43757,\"NSM\"],[43766,43766,\"NSM\"],[43882,43883,\"ON\"],[44005,44005,\"NSM\"],[44008,44008,\"NSM\"],[44013,44013,\"NSM\"],[64285,64285,\"R\"],[64286,64286,\"NSM\"],[64287,64296,\"R\"],[64297,64297,\"ES\"],[64298,64335,\"R\"],[64336,64450,\"AL\"],[64451,64466,\"ON\"],[64467,64829,\"AL\"],[64830,64847,\"ON\"],[64848,64911,\"AL\"],[64912,64913,\"ON\"],[64914,64967,\"AL\"],[64968,64975,\"ON\"],[64976,65007,\"BN\"],[65008,65020,\"AL\"],[65021,65023,\"ON\"],[65024,65039,\"NSM\"],[65040,65049,\"ON\"],[65056,65071,\"NSM\"],[65072,65103,\"ON\"],[65104,65104,\"CS\"],[65105,65105,\"ON\"],[65106,65106,\"CS\"],[65108,65108,\"ON\"],[65109,65109,\"CS\"],[65110,65118,\"ON\"],[65119,65119,\"ET\"],[65120,65121,\"ON\"],[65122,65123,\"ES\"],[65124,65126,\"ON\"],[65128,65128,\"ON\"],[65129,65130,\"ET\"],[65131,65131,\"ON\"],[65136,65278,\"AL\"],[65279,65279,\"BN\"],[65281,65282,\"ON\"],[65283,65285,\"ET\"],[65286,65290,\"ON\"],[65291,65291,\"ES\"],[65292,65292,\"CS\"],[65293,65293,\"ES\"],[65294,65295,\"CS\"],[65296,65305,\"EN\"],[65306,65306,\"CS\"],[65307,65312,\"ON\"],[65339,65344,\"ON\"],[65371,65381,\"ON\"],[65504,65505,\"ET\"],[65506,65508,\"ON\"],[65509,65510,\"ET\"],[65512,65518,\"ON\"],[65520,65528,\"BN\"],[65529,65533,\"ON\"],[65534,65535,\"BN\"],[65793,65793,\"ON\"],[65856,65932,\"ON\"],[65936,65948,\"ON\"],[65952,65952,\"ON\"],[66045,66045,\"NSM\"],[66272,66272,\"NSM\"],[66273,66299,\"EN\"],[66422,66426,\"NSM\"],[67584,67870,\"R\"],[67871,67871,\"ON\"],[67872,68096,\"R\"],[68097,68099,\"NSM\"],[68100,68100,\"R\"],[68101,68102,\"NSM\"],[68103,68107,\"R\"],[68108,68111,\"NSM\"],[68112,68151,\"R\"],[68152,68154,\"NSM\"],[68155,68158,\"R\"],[68159,68159,\"NSM\"],[68160,68324,\"R\"],[68325,68326,\"NSM\"],[68327,68408,\"R\"],[68409,68415,\"ON\"],[68416,68863,\"R\"],[68864,68899,\"AL\"],[68900,68903,\"NSM\"],[68904,68911,\"AL\"],[68912,68921,\"AN\"],[68922,68927,\"AL\"],[68928,68937,\"AN\"],[68938,68968,\"R\"],[68969,68973,\"NSM\"],[68974,68974,\"ON\"],[68975,69215,\"R\"],[69216,69246,\"AN\"],[69247,69290,\"R\"],[69291,69292,\"NSM\"],[69293,69311,\"R\"],[69312,69327,\"AL\"],[69328,69336,\"ON\"],[69337,69369,\"AL\"],[69370,69375,\"NSM\"],[69376,69423,\"R\"],[69424,69445,\"AL\"],[69446,69456,\"NSM\"],[69457,69487,\"AL\"],[69488,69505,\"R\"],[69506,69509,\"NSM\"],[69510,69631,\"R\"],[69633,69633,\"NSM\"],[69688,69702,\"NSM\"],[69714,69733,\"ON\"],[69744,69744,\"NSM\"],[69747,69748,\"NSM\"],[69759,69761,\"NSM\"],[69811,69814,\"NSM\"],[69817,69818,\"NSM\"],[69826,69826,\"NSM\"],[69888,69890,\"NSM\"],[69927,69931,\"NSM\"],[69933,69940,\"NSM\"],[70003,70003,\"NSM\"],[70016,70017,\"NSM\"],[70070,70078,\"NSM\"],[70089,70092,\"NSM\"],[70095,70095,\"NSM\"],[70191,70193,\"NSM\"],[70196,70196,\"NSM\"],[70198,70199,\"NSM\"],[70206,70206,\"NSM\"],[70209,70209,\"NSM\"],[70367,70367,\"NSM\"],[70371,70378,\"NSM\"],[70400,70401,\"NSM\"],[70459,70460,\"NSM\"],[70464,70464,\"NSM\"],[70502,70508,\"NSM\"],[70512,70516,\"NSM\"],[70587,70592,\"NSM\"],[70606,70606,\"NSM\"],[70608,70608,\"NSM\"],[70610,70610,\"NSM\"],[70625,70626,\"NSM\"],[70712,70719,\"NSM\"],[70722,70724,\"NSM\"],[70726,70726,\"NSM\"],[70750,70750,\"NSM\"],[70835,70840,\"NSM\"],[70842,70842,\"NSM\"],[70847,70848,\"NSM\"],[70850,70851,\"NSM\"],[71090,71093,\"NSM\"],[71100,71101,\"NSM\"],[71103,71104,\"NSM\"],[71132,71133,\"NSM\"],[71219,71226,\"NSM\"],[71229,71229,\"NSM\"],[71231,71232,\"NSM\"],[71264,71276,\"ON\"],[71339,71339,\"NSM\"],[71341,71341,\"NSM\"],[71344,71349,\"NSM\"],[71351,71351,\"NSM\"],[71453,71453,\"NSM\"],[71455,71455,\"NSM\"],[71458,71461,\"NSM\"],[71463,71467,\"NSM\"],[71727,71735,\"NSM\"],[71737,71738,\"NSM\"],[71995,71996,\"NSM\"],[71998,71998,\"NSM\"],[72003,72003,\"NSM\"],[72148,72151,\"NSM\"],[72154,72155,\"NSM\"],[72160,72160,\"NSM\"],[72193,72198,\"NSM\"],[72201,72202,\"NSM\"],[72243,72248,\"NSM\"],[72251,72254,\"NSM\"],[72263,72263,\"NSM\"],[72273,72278,\"NSM\"],[72281,72283,\"NSM\"],[72330,72342,\"NSM\"],[72344,72345,\"NSM\"],[72544,72544,\"NSM\"],[72546,72548,\"NSM\"],[72550,72550,\"NSM\"],[72752,72758,\"NSM\"],[72760,72765,\"NSM\"],[72850,72871,\"NSM\"],[72874,72880,\"NSM\"],[72882,72883,\"NSM\"],[72885,72886,\"NSM\"],[73009,73014,\"NSM\"],[73018,73018,\"NSM\"],[73020,73021,\"NSM\"],[73023,73029,\"NSM\"],[73031,73031,\"NSM\"],[73104,73105,\"NSM\"],[73109,73109,\"NSM\"],[73111,73111,\"NSM\"],[73459,73460,\"NSM\"],[73472,73473,\"NSM\"],[73526,73530,\"NSM\"],[73536,73536,\"NSM\"],[73538,73538,\"NSM\"],[73562,73562,\"NSM\"],[73685,73692,\"ON\"],[73693,73696,\"ET\"],[73697,73713,\"ON\"],[78912,78912,\"NSM\"],[78919,78933,\"NSM\"],[90398,90409,\"NSM\"],[90413,90415,\"NSM\"],[92912,92916,\"NSM\"],[92976,92982,\"NSM\"],[94031,94031,\"NSM\"],[94095,94098,\"NSM\"],[94178,94178,\"ON\"],[94180,94180,\"NSM\"],[113821,113822,\"NSM\"],[113824,113827,\"BN\"],[117760,117973,\"ON\"],[118e3,118009,\"EN\"],[118010,118012,\"ON\"],[118016,118451,\"ON\"],[118458,118480,\"ON\"],[118496,118512,\"ON\"],[118528,118573,\"NSM\"],[118576,118598,\"NSM\"],[119143,119145,\"NSM\"],[119155,119162,\"BN\"],[119163,119170,\"NSM\"],[119173,119179,\"NSM\"],[119210,119213,\"NSM\"],[119273,119274,\"ON\"],[119296,119361,\"ON\"],[119362,119364,\"NSM\"],[119365,119365,\"ON\"],[119552,119638,\"ON\"],[120513,120513,\"ON\"],[120539,120539,\"ON\"],[120571,120571,\"ON\"],[120597,120597,\"ON\"],[120629,120629,\"ON\"],[120655,120655,\"ON\"],[120687,120687,\"ON\"],[120713,120713,\"ON\"],[120745,120745,\"ON\"],[120771,120771,\"ON\"],[120782,120831,\"EN\"],[121344,121398,\"NSM\"],[121403,121452,\"NSM\"],[121461,121461,\"NSM\"],[121476,121476,\"NSM\"],[121499,121503,\"NSM\"],[121505,121519,\"NSM\"],[122880,122886,\"NSM\"],[122888,122904,\"NSM\"],[122907,122913,\"NSM\"],[122915,122916,\"NSM\"],[122918,122922,\"NSM\"],[123023,123023,\"NSM\"],[123184,123190,\"NSM\"],[123566,123566,\"NSM\"],[123628,123631,\"NSM\"],[123647,123647,\"ET\"],[124140,124143,\"NSM\"],[124398,124399,\"NSM\"],[124643,124643,\"NSM\"],[124646,124646,\"NSM\"],[124654,124655,\"NSM\"],[124661,124661,\"NSM\"],[124928,125135,\"R\"],[125136,125142,\"NSM\"],[125143,125251,\"R\"],[125252,125258,\"NSM\"],[125259,126063,\"R\"],[126064,126143,\"AL\"],[126144,126207,\"R\"],[126208,126287,\"AL\"],[126288,126463,\"R\"],[126464,126703,\"AL\"],[126704,126705,\"ON\"],[126706,126719,\"AL\"],[126720,126975,\"R\"],[126976,127019,\"ON\"],[127024,127123,\"ON\"],[127136,127150,\"ON\"],[127153,127167,\"ON\"],[127169,127183,\"ON\"],[127185,127221,\"ON\"],[127232,127242,\"EN\"],[127243,127247,\"ON\"],[127279,127279,\"ON\"],[127338,127343,\"ON\"],[127405,127405,\"ON\"],[127584,127589,\"ON\"],[127744,128728,\"ON\"],[128732,128748,\"ON\"],[128752,128764,\"ON\"],[128768,128985,\"ON\"],[128992,129003,\"ON\"],[129008,129008,\"ON\"],[129024,129035,\"ON\"],[129040,129095,\"ON\"],[129104,129113,\"ON\"],[129120,129159,\"ON\"],[129168,129197,\"ON\"],[129200,129211,\"ON\"],[129216,129217,\"ON\"],[129232,129240,\"ON\"],[129280,129623,\"ON\"],[129632,129645,\"ON\"],[129648,129660,\"ON\"],[129664,129674,\"ON\"],[129678,129734,\"ON\"],[129736,129736,\"ON\"],[129741,129756,\"ON\"],[129759,129770,\"ON\"],[129775,129784,\"ON\"],[129792,129938,\"ON\"],[129940,130031,\"ON\"],[130032,130041,\"EN\"],[130042,130042,\"ON\"],[131070,131071,\"BN\"],[196606,196607,\"BN\"],[262142,262143,\"BN\"],[327678,327679,\"BN\"],[393214,393215,\"BN\"],[458750,458751,\"BN\"],[524286,524287,\"BN\"],[589822,589823,\"BN\"],[655358,655359,\"BN\"],[720894,720895,\"BN\"],[786430,786431,\"BN\"],[851966,851967,\"BN\"],[917502,917759,\"BN\"],[917760,917999,\"NSM\"],[918e3,921599,\"BN\"],[983038,983039,\"BN\"],[1048574,1048575,\"BN\"],[1114110,1114111,\"BN\"]];function am(e){if(e<=255)return il[e];let t=0,n=Cr.length-1;for(;t<=n;){let i=t+n>>1,r=Cr[i];if(e<r[0]){n=i-1;continue}if(e>r[1]){t=i+1;continue}return r[2]}return\"L\"}function lm(e){let t=e.length;if(t===0)return null;let n=new Array(t),i=!1;for(let l=0;l<t;){let d=e.charCodeAt(l),m=d,f=1;if(d>=55296&&d<=56319&&l+1<t){let S=e.charCodeAt(l+1);S>=56320&&S<=57343&&(m=(d-55296<<10)+(S-56320)+65536,f=2)}let x=am(m);(x===\"R\"||x===\"AL\"||x===\"AN\")&&(i=!0);for(let S=0;S<f;S++)n[l+S]=x;l+=f}if(!i)return null;let r=0;for(let l=0;l<t;l++){let d=n[l];if(d===\"L\"){r=0;break}if(d===\"R\"||d===\"AL\"){r=1;break}}let o=new Int8Array(t);for(let l=0;l<t;l++)o[l]=r;let a=r&1?\"R\":\"L\",u=a,s=u;for(let l=0;l<t;l++)n[l]===\"NSM\"?n[l]=s:s=n[l];s=u;for(let l=0;l<t;l++){let d=n[l];d===\"EN\"?n[l]=s===\"AL\"?\"AN\":\"EN\":(d===\"R\"||d===\"L\"||d===\"AL\")&&(s=d)}for(let l=0;l<t;l++)n[l]===\"AL\"&&(n[l]=\"R\");for(let l=1;l<t-1;l++)n[l]===\"ES\"&&n[l-1]===\"EN\"&&n[l+1]===\"EN\"&&(n[l]=\"EN\"),n[l]===\"CS\"&&(n[l-1]===\"EN\"||n[l-1]===\"AN\")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!==\"EN\")continue;let d;for(d=l-1;d>=0&&n[d]===\"ET\";d--)n[d]=\"EN\";for(d=l+1;d<t&&n[d]===\"ET\";d++)n[d]=\"EN\"}for(let l=0;l<t;l++){let d=n[l];(d===\"WS\"||d===\"ES\"||d===\"ET\"||d===\"CS\")&&(n[l]=\"ON\")}s=u;for(let l=0;l<t;l++){let d=n[l];d===\"EN\"?n[l]=s===\"L\"?\"L\":\"EN\":(d===\"R\"||d===\"L\")&&(s=d)}for(let l=0;l<t;l++){if(n[l]!==\"ON\")continue;let d=l+1;for(;d<t&&n[d]===\"ON\";)d++;let m=l>0?n[l-1]:u,f=d<t?n[d]:u,x=m!==\"L\"?\"R\":\"L\";if(x===(f!==\"L\"?\"R\":\"L\"))for(let y=l;y<d;y++)n[y]=x;l=d-1}for(let l=0;l<t;l++)n[l]===\"ON\"&&(n[l]=a);for(let l=0;l<t;l++){let d=n[l];(o[l]&1)===0?d===\"R\"?o[l]++:(d===\"AN\"||d===\"EN\")&&(o[l]+=2):(d===\"L\"||d===\"AN\"||d===\"EN\")&&o[l]++}return o}function rl(e,t){let n=lm(e);if(n===null)return null;let i=new Int8Array(t.length);for(let r=0;r<t.length;r++)i[r]=n[t[r]];return i}var um=/[ \\t\\n\\r\\f]+/g,cm=/[\\t\\n\\r\\f]| {2,}|^ | $/;function dm(e){let t=e??\"normal\";return t===\"pre-wrap\"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function fm(e){if(!cm.test(e))return e;let t=e.replace(um,\" \");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function mm(e){return/[\\r\\f]/.test(e)?e.replace(/\\r\\n/g,`\n`).replace(/[\\r\\f]/g,`\n`):e.replace(/\\r\\n/g,`\n`)}var Fr=null,pm;function hm(){return Fr===null&&(Fr=new Intl.Segmenter(pm,{granularity:\"word\"})),Fr}var gm=/\\p{Script=Arabic}/u,jn=/\\p{M}/u,fl=/\\p{Nd}/u;function ol(e){return gm.test(e)}function sl(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=44032&&e<=55215||e>=65280&&e<=65519}function Ie(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){let i=e.charCodeAt(t+1);if(i>=56320&&i<=57343){let r=(n-55296<<10)+(i-56320)+65536;if(sl(r))return!0;t++;continue}}if(sl(n))return!0}}return!1}function xm(e){let t=Kn(e);return t!==null&&($n.has(t)||Ze.has(t))}var bm=new Set([\"\\xA0\",\"\\u202F\",\"\\u2060\",\"\\uFEFF\"]);function ym(e){return Ie(e)}function Sm(e){let t=Kn(e);return t!==null&&bm.has(t)}function qn(e){return!xm(e)&&!Sm(e)}var $n=new Set([\"\\uFF0C\",\"\\uFF0E\",\"\\uFF01\",\"\\uFF1A\",\"\\uFF1B\",\"\\uFF1F\",\"\\u3001\",\"\\u3002\",\"\\u30FB\",\"\\uFF09\",\"\\u3015\",\"\\u3009\",\"\\u300B\",\"\\u300D\",\"\\u300F\",\"\\u3011\",\"\\u3017\",\"\\u3019\",\"\\u301B\",\"\\u30FC\",\"\\u3005\",\"\\u303B\",\"\\u309D\",\"\\u309E\",\"\\u30FD\",\"\\u30FE\"]),ln=new Set(['\"',\"(\",\"[\",\"{\",\"\\u201C\",\"\\u2018\",\"\\xAB\",\"\\u2039\",\"\\uFF08\",\"\\u3014\",\"\\u3008\",\"\\u300A\",\"\\u300C\",\"\\u300E\",\"\\u3010\",\"\\u3016\",\"\\u3018\",\"\\u301A\"]),vr=new Set([\"'\",\"\\u2019\"]),Ze=new Set([\".\",\",\",\"!\",\"?\",\":\",\";\",\"\\u060C\",\"\\u061B\",\"\\u061F\",\"\\u0964\",\"\\u0965\",\"\\u104A\",\"\\u104B\",\"\\u104C\",\"\\u104D\",\"\\u104F\",\")\",\"]\",\"}\",\"%\",'\"',\"\\u201D\",\"\\u2019\",\"\\xBB\",\"\\u203A\",\"\\u2026\"]),Em=new Set([\":\",\".\",\"\\u060C\",\"\\u061B\"]),Am=new Set([\"\\u104F\"]),wm=new Set([\"\\u201D\",\"\\u2019\",\"\\xBB\",\"\\u203A\",\"\\u300D\",\"\\u300F\",\"\\u3011\",\"\\u300B\",\"\\u3009\",\"\\u3015\",\"\\uFF09\"]);function Cm(e){if(Tr(e))return!0;let t=!1;for(let n of e){if(Ze.has(n)){t=!0;continue}if(!(t&&jn.test(n)))return!1}return t}function Fm(e){for(let t of e)if(!$n.has(t)&&!Ze.has(t))return!1;return e.length>0}function _m(e){if(Tr(e))return!0;for(let t of e)if(!ln.has(t)&&!vr.has(t)&&!jn.test(t))return!1;return e.length>0}function Tr(e){let t=!1;for(let n of e)if(!(n===\"\\\\\"||jn.test(n))){if(ln.has(n)||Ze.has(n)||vr.has(n)){t=!0;continue}return!1}return t}function ml(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let i=e.charCodeAt(n);if(i<56320||i>57343)return n;let r=n-1;if(r<0)return n;let o=e.charCodeAt(r);return o>=55296&&o<=56319?r:n}function Kn(e){if(e.length===0)return null;let t=ml(e,e.length);return e.slice(t)}function vm(e){let t=Array.from(e),n=t.length;for(;n>0;){let i=t[n-1];if(jn.test(i)){n--;continue}if(ln.has(i)||vr.has(i)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(\"\"),tail:t.slice(n).join(\"\")}}function Tm(e,t,n){return n===\"text\"&&!t&&e.length===1&&e!==\"-\"&&e!==\"\\u2014\"?e:null}function al(e,t,n,i){let r=t[i],o=e[i];if(r==null)return o;let a=n[i];if(o.length===a)return o;let u=r.repeat(a);return e[i]=u,u}function ll(e,t){return e&&t!==null&&Em.has(t)}function Mm(e){let t=Kn(e);return t!==null&&Am.has(t)}function Nm(e){if(e.length<2||e[0]!==\" \")return null;let t=e.slice(1);return/^\\p{M}+$/u.test(t)?{space:\" \",marks:t}:null}function Jn(e){let t=e.length;for(;t>0;){let n=ml(e,t),i=e.slice(n,t);if(wm.has(i))return!0;if(!Ze.has(i))return!1;t=n}return!1}function Lm(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===\" \")return\"preserved-space\";if(e===\"\t\")return\"tab\";if(t.preserveHardBreaks&&e===`\n`)return\"hard-break\"}return e===\" \"?\"space\":e===\"\\xA0\"||e===\"\\u202F\"||e===\"\\u2060\"||e===\"\\uFEFF\"?\"glue\":e===\"\\u200B\"?\"zero-width-break\":e===\"\\xAD\"?\"soft-hyphen\":\"text\"}var Rm=/[\\x20\\t\\n\\xA0\\xAD\\u200B\\u202F\\u2060\\uFEFF]/;function Te(e){return e.length===1?e[0]:e.join(\"\")}function km(e,t){let n=[];for(let i=e.length-1;i>=0;i--)n.push(e[i]);return n.push(t),Te(n)}function Dm(e,t,n,i){if(!Rm.test(e))return[{text:e,isWordLike:t,kind:\"text\",start:n}];let r=[],o=null,a=[],u=n,s=!1,l=0;for(let d of e){let m=Lm(d,i),f=m===\"text\"&&t;if(o!==null&&m===o&&f===s){a.push(d),l+=d.length;continue}o!==null&&r.push({text:Te(a),isWordLike:s,kind:o,start:u}),o=m,a=[d],u=n+l,s=f,l+=d.length}return o!==null&&r.push({text:Te(a),isWordLike:s,kind:o,start:u}),r}function _r(e){return e===\"space\"||e===\"preserved-space\"||e===\"zero-width-break\"||e===\"hard-break\"}var Im=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function Pm(e,t){let n=e.texts[t];return n.startsWith(\"www.\")?!0:Im.test(n)&&t+1<e.len&&e.kinds[t+1]===\"text\"&&e.texts[t+1]===\"//\"}function Om(e){return e.includes(\"?\")&&(e.includes(\"://\")||e.startsWith(\"www.\"))}function Bm(e){let t=e.texts.slice(),n=e.isWordLike.slice(),i=e.kinds.slice(),r=e.starts.slice();for(let a=0;a<e.len;a++){if(i[a]!==\"text\"||!Pm(e,a))continue;let u=[t[a]],s=a+1;for(;s<e.len&&!_r(i[s]);){u.push(t[s]),n[a]=!0;let l=t[s].includes(\"?\");if(i[s]=\"text\",t[s]=\"\",s++,l)break}t[a]=Te(u)}let o=0;for(let a=0;a<t.length;a++){let u=t[a];u.length!==0&&(o!==a&&(t[o]=u,n[o]=n[a],i[o]=i[a],r[o]=r[a]),o++)}return t.length=o,n.length=o,i.length=o,r.length=o,{len:o,texts:t,isWordLike:n,kinds:i,starts:r}}function Hm(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let a=e.texts[o];if(t.push(a),n.push(e.isWordLike[o]),i.push(e.kinds[o]),r.push(e.starts[o]),!Om(a))continue;let u=o+1;if(u>=e.len||_r(e.kinds[u]))continue;let s=[],l=e.starts[u],d=u;for(;d<e.len&&!_r(e.kinds[d]);)s.push(e.texts[d]),d++;s.length>0&&(t.push(Te(s)),n.push(!0),i.push(\"text\"),r.push(l),o=d-1)}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}var Gm=new Set([\":\",\"-\",\"/\",\"\\xD7\",\",\",\".\",\"+\",\"\\u2013\",\"\\u2014\"]),ul=/^[A-Za-z0-9_]+[,:;]*$/,cl=/[,:;]+$/;function pl(e){for(let t of e)if(fl.test(t))return!0;return!1}function an(e){if(e.length===0)return!1;for(let t of e)if(!(fl.test(t)||Gm.has(t)))return!1;return!0}function Wm(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let a=e.texts[o],u=e.kinds[o];if(u===\"text\"&&an(a)&&pl(a)){let s=[a],l=o+1;for(;l<e.len&&e.kinds[l]===\"text\"&&an(e.texts[l]);)s.push(e.texts[l]),l++;t.push(Te(s)),n.push(!0),i.push(\"text\"),r.push(e.starts[o]),o=l-1;continue}t.push(a),n.push(e.isWordLike[o]),i.push(u),r.push(e.starts[o])}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Um(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let a=e.texts[o],u=e.kinds[o],s=e.isWordLike[o];if(u===\"text\"&&s&&ul.test(a)){let l=[a],d=cl.test(a),m=o+1;for(;d&&m<e.len&&e.kinds[m]===\"text\"&&e.isWordLike[m]&&ul.test(e.texts[m]);){let f=e.texts[m];l.push(f),d=cl.test(f),m++}t.push(Te(l)),n.push(!0),i.push(\"text\"),r.push(e.starts[o]),o=m-1;continue}t.push(a),n.push(s),i.push(u),r.push(e.starts[o])}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Vm(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let a=e.texts[o];if(e.kinds[o]===\"text\"&&a.includes(\"-\")){let u=a.split(\"-\"),s=u.length>1;for(let l=0;l<u.length;l++){let d=u[l];if(!s)break;(d.length===0||!pl(d)||!an(d))&&(s=!1)}if(s){let l=0;for(let d=0;d<u.length;d++){let m=u[d],f=d<u.length-1?`${m}-`:m;t.push(f),n.push(!0),i.push(\"text\"),r.push(e.starts[o]+l),l+=f.length}continue}}t.push(a),n.push(e.isWordLike[o]),i.push(e.kinds[o]),r.push(e.starts[o])}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function zm(e){let t=[],n=[],i=[],r=[],o=0;for(;o<e.len;){let a=[e.texts[o]],u=e.isWordLike[o],s=e.kinds[o],l=e.starts[o];if(s===\"glue\"){let d=[a[0]],m=l;for(o++;o<e.len&&e.kinds[o]===\"glue\";)d.push(e.texts[o]),o++;let f=Te(d);if(o<e.len&&e.kinds[o]===\"text\")a[0]=f,a.push(e.texts[o]),u=e.isWordLike[o],s=\"text\",l=m,o++;else{t.push(f),n.push(!1),i.push(\"glue\"),r.push(m);continue}}else o++;if(s===\"text\")for(;o<e.len&&e.kinds[o]===\"glue\";){let d=[];for(;o<e.len&&e.kinds[o]===\"glue\";)d.push(e.texts[o]),o++;let m=Te(d);if(o<e.len&&e.kinds[o]===\"text\"){a.push(m,e.texts[o]),u=u||e.isWordLike[o],o++;continue}a.push(m)}t.push(Te(a)),n.push(u),i.push(s),r.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function jm(e){let t=e.texts.slice(),n=e.isWordLike.slice(),i=e.kinds.slice(),r=e.starts.slice();for(let o=0;o<t.length-1;o++){if(i[o]!==\"text\"||i[o+1]!==\"text\"||!Ie(t[o])||!Ie(t[o+1]))continue;let a=vm(t[o]);a!==null&&(t[o]=a.head,t[o+1]=a.tail+t[o+1],r[o+1]=r[o]+a.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function dl(e,t,n){let i=hm(),r=0,o=[],a=[],u=[],s=[],l=[],d=[],m=[],f=[],x=[],S=[],y=[],b=[];for(let v of i.segment(e))for(let w of Dm(v.segment,v.isWordLike??!1,v.index,n)){let ie=function(){d[D]!==null&&(a[D]=[al(o,d,m,D)],d[D]=null),a[D].push(w.text),u[D]=u[D]||w.isWordLike,f[D]=f[D]||L,x[D]=x[D]||R,S[D]=I,y[D]=Y,b[D]=ll(x[D],U)},C=w.kind===\"text\",F=Tm(w.text,w.isWordLike,w.kind),L=Ie(w.text),R=ol(w.text),U=Kn(w.text),I=Jn(w.text),Y=Mm(w.text),D=r-1;t.carryCJKAfterClosingQuote&&C&&r>0&&s[D]===\"text\"&&L&&f[D]&&S[D]||C&&r>0&&s[D]===\"text\"&&Fm(w.text)&&f[D]||C&&r>0&&s[D]===\"text\"&&y[D]?ie():C&&r>0&&s[D]===\"text\"&&w.isWordLike&&R&&b[D]?(ie(),u[D]=!0):F!==null&&r>0&&s[D]===\"text\"&&d[D]===F?m[D]=(m[D]??1)+1:C&&!w.isWordLike&&r>0&&s[D]===\"text\"&&(Cm(w.text)||w.text===\"-\"&&u[D])?ie():(o[r]=w.text,a[r]=[w.text],u[r]=w.isWordLike,s[r]=w.kind,l[r]=w.start,d[r]=F,m[r]=F===null?0:1,f[r]=L,x[r]=R,S[r]=I,y[r]=Y,b[r]=ll(R,U),r++)}for(let v=0;v<r;v++){if(d[v]!==null){o[v]=al(o,d,m,v);continue}o[v]=Te(a[v])}for(let v=1;v<r;v++)s[v]===\"text\"&&!u[v]&&Tr(o[v])&&s[v-1]===\"text\"&&(o[v-1]+=o[v],u[v-1]=u[v-1]||u[v],o[v]=\"\");let A=Array.from({length:r},()=>null),_=-1;for(let v=r-1;v>=0;v--){let w=o[v];if(w.length!==0){if(s[v]===\"text\"&&!u[v]&&_m(w)&&_>=0&&s[_]===\"text\"){let C=A[_]??[];C.push(w),A[_]=C,l[_]=l[v],o[v]=\"\";continue}_=v}}for(let v=0;v<r;v++){let w=A[v];w!=null&&(o[v]=km(w,o[v]))}let T=0;for(let v=0;v<r;v++){let w=o[v];w.length!==0&&(T!==v&&(o[T]=w,u[T]=u[v],s[T]=s[v],l[T]=l[v]),T++)}o.length=T,u.length=T,s.length=T,l.length=T;let z=zm({len:T,texts:o,isWordLike:u,kinds:s,starts:l}),P=jm(Um(Vm(Wm(Hm(Bm(z))))));for(let v=0;v<P.len-1;v++){let w=Nm(P.texts[v]);w!==null&&(P.kinds[v]!==\"space\"&&P.kinds[v]!==\"preserved-space\"||P.kinds[v+1]!==\"text\"||!ol(P.texts[v+1])||(P.texts[v]=w.space,P.isWordLike[v]=!1,P.kinds[v]=P.kinds[v]===\"preserved-space\"?\"preserved-space\":\"space\",P.texts[v+1]=w.marks+P.texts[v+1],P.starts[v+1]=P.starts[v]+w.space.length))}return P}function qm(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],i=0;for(let r=0;r<e.len;r++)e.kinds[r]===\"hard-break\"&&(n.push({startSegmentIndex:i,endSegmentIndex:r,consumedEndSegmentIndex:r+1}),i=r+1);return i<e.len&&n.push({startSegmentIndex:i,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function $m(e){if(e.len<=1)return e;let t=[],n=[],i=[],r=[],o=null,a=!1,u=0,s=!1,l=!1;function d(){o!==null&&(t.push(Te(o)),n.push(a),i.push(\"text\"),r.push(u),o=null)}for(let m=0;m<e.len;m++){let f=e.texts[m],x=e.kinds[m],S=e.isWordLike[m],y=e.starts[m];if(x===\"text\"){let b=ym(f),A=qn(f);if(o!==null&&s&&l){o.push(f),a=a||S,s=s||b,l=A;continue}d(),o=[f],a=S,u=y,s=b,l=A;continue}d(),t.push(f),n.push(S),i.push(x),r.push(y)}return d(),{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function hl(e,t,n=\"normal\",i=\"normal\"){let r=dm(n),o=r.mode===\"pre-wrap\"?mm(e):fm(e);if(o.length===0)return{normalized:o,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let a=i===\"keep-all\"?$m(dl(o,t,r)):dl(o,t,r);return{normalized:o,chunks:qm(a,r),...a}}var yt=null,gl=new Map,St=null,Km=96,Jm=/\\p{Emoji_Presentation}/u,Xm=/[\\p{Emoji_Presentation}\\p{Extended_Pictographic}\\p{Regional_Indicator}\\uFE0F\\u20E3]/u,Mr=null,xl=new Map;function Nr(){if(yt!==null)return yt;if(typeof OffscreenCanvas<\"u\")return yt=new OffscreenCanvas(1,1).getContext(\"2d\"),yt;if(typeof document<\"u\")return yt=document.createElement(\"canvas\").getContext(\"2d\"),yt;throw new Error(\"Text measurement requires OffscreenCanvas or a DOM canvas context.\")}function Ym(e){let t=gl.get(e);return t||(t=new Map,gl.set(e,t)),t}function je(e,t){let n=t.get(e);return n===void 0&&(n={width:Nr().measureText(e).width,containsCJK:Ie(e)},t.set(e,n)),n}function Et(){if(St!==null)return St;if(typeof navigator>\"u\")return St={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},St;let e=navigator.userAgent,n=navigator.vendor===\"Apple Computer, Inc.\"&&e.includes(\"Safari/\")&&!e.includes(\"Chrome/\")&&!e.includes(\"Chromium/\")&&!e.includes(\"CriOS/\")&&!e.includes(\"FxiOS/\")&&!e.includes(\"EdgiOS/\"),i=e.includes(\"Chrome/\")||e.includes(\"Chromium/\")||e.includes(\"CriOS/\")||e.includes(\"Edg/\");return St={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:i,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},St}function Qm(e){let t=e.match(/(\\d+(?:\\.\\d+)?)\\s*px/);return t?parseFloat(t[1]):16}function bl(){return Mr===null&&(Mr=new Intl.Segmenter(void 0,{granularity:\"grapheme\"})),Mr}function Zm(e){return Jm.test(e)||e.includes(\"\\uFE0F\")}function yl(e){return Xm.test(e)}function ep(e,t){let n=xl.get(e);if(n!==void 0)return n;let i=Nr();i.font=e;let r=i.measureText(\"\\u{1F600}\").width;if(n=0,r>t+.5&&typeof document<\"u\"&&document.body!==null){let o=document.createElement(\"span\");o.style.font=e,o.style.display=\"inline-block\",o.style.visibility=\"hidden\",o.style.position=\"absolute\",o.textContent=\"\\u{1F600}\",document.body.appendChild(o);let a=o.getBoundingClientRect().width;document.body.removeChild(o),r-a>.5&&(n=r-a)}return xl.set(e,n),n}function tp(e){let t=0,n=bl();for(let i of n.segment(e))Zm(i.segment)&&t++;return t}function np(e,t){return t.emojiCount===void 0&&(t.emojiCount=tp(e)),t.emojiCount}function et(e,t,n){return n===0?t.width:t.width-np(e,t)*n}function Sl(e,t,n,i,r){if(t.breakableFitAdvances!==void 0)return t.breakableFitAdvances;let o=bl(),a=[];for(let d of o.segment(e))a.push(d.segment);if(a.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(r===\"sum-graphemes\"){let d=[];for(let m of a){let f=je(m,n);d.push(et(m,f,i))}return t.breakableFitAdvances=d,t.breakableFitAdvances}if(r===\"pair-context\"||a.length>Km){let d=[],m=null,f=0;for(let x of a){let S=je(x,n),y=et(x,S,i);if(m===null)d.push(y);else{let b=m+x,A=je(b,n);d.push(et(b,A,i)-f)}m=x,f=y}return t.breakableFitAdvances=d,t.breakableFitAdvances}let u=[],s=\"\",l=0;for(let d of a){s+=d;let m=je(s,n),f=et(s,m,i);u.push(f-l),l=f}return t.breakableFitAdvances=u,t.breakableFitAdvances}function El(e,t){let n=Nr();n.font=e;let i=Ym(e),r=Qm(e),o=t?ep(e,r):0;return{cache:i,fontSize:r,emojiCorrection:o}}function ip(e,t){for(;t<e.widths.length;){let n=e.kinds[t];if(n!==\"space\"&&n!==\"zero-width-break\"&&n!==\"soft-hyphen\")break;t++}return t}function rp(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function op(e,t,n,i,r){let o=0,a=t;for(;o<e.length;){let u=a+e[o];if((o+1<e.length?u+r:u)>n+i)break;a=u,o++}return{fitCount:o,fittedWidth:a}}function Al(e,t){return e.simpleLineWalkFastPath?wl(e,t):Cl(e,t)}function wl(e,t,n){let{widths:i,kinds:r,breakableFitAdvances:o}=e;if(i.length===0)return 0;let u=Et().lineFitEpsilon,s=t+u,l=0,d=0,m=!1,f=0,x=0,S=0,y=0,b=-1,A=0;function _(){b=-1,A=0}function T(F=S,L=y,R=d){l++,n?.({startSegmentIndex:f,startGraphemeIndex:x,endSegmentIndex:F,endGraphemeIndex:L,width:R}),d=0,m=!1,_()}function z(F,L){m=!0,f=F,x=0,S=F+1,y=0,d=L}function P(F,L,R){m=!0,f=F,x=L,S=F,y=L+1,d=R}function v(F,L){if(!m){z(F,L);return}d+=L,S=F+1,y=0}function w(F,L){let R=o[F];for(let U=L;U<R.length;U++){let I=R[U];m?d+I>s?(T(),P(F,U,I)):(d+=I,S=F,y=U+1):P(F,U,I)}m&&S===F&&y===R.length&&(S=F+1,y=0)}let C=0;for(;C<i.length&&!(!m&&(C=ip(e,C),C>=i.length));){let F=i[C],L=r[C],R=L===\"space\"||L===\"preserved-space\"||L===\"tab\"||L===\"zero-width-break\"||L===\"soft-hyphen\";if(!m){F>t&&o[C]!==null?w(C,0):z(C,F),R&&(b=C+1,A=d-F),C++;continue}if(d+F>s){if(R){v(C,F),T(C+1,0,d-F),C++;continue}if(b>=0){if(S>b||S===b&&y>0){T();continue}T(b,0,A);continue}if(F>t&&o[C]!==null){T(),w(C,0),C++;continue}T();continue}v(C,F),R&&(b=C+1,A=d-F),C++}return m&&T(),l}function Cl(e,t,n){if(e.simpleLineWalkFastPath)return wl(e,t,n);let{widths:i,lineEndFitAdvances:r,lineEndPaintAdvances:o,kinds:a,breakableFitAdvances:u,discretionaryHyphenWidth:s,tabStopAdvance:l,chunks:d}=e;if(i.length===0||d.length===0)return 0;let m=Et(),f=m.lineFitEpsilon,x=t+f,S=0,y=0,b=!1,A=0,_=0,T=0,z=0,P=-1,v=0,w=0,C=null;function F(){P=-1,v=0,w=0,C=null}function L(j=T,X=z,B=y){S++,n?.({startSegmentIndex:A,startGraphemeIndex:_,endSegmentIndex:j,endGraphemeIndex:X,width:B}),y=0,b=!1,F()}function R(j,X){b=!0,A=j,_=0,T=j+1,z=0,y=X}function U(j,X,B){b=!0,A=j,_=X,T=j,z=X+1,y=B}function I(j,X){if(!b){R(j,X);return}y+=X,T=j+1,z=0}function Y(j,X,B,V){if(!X)return;let _e=j===\"tab\"?0:r[B],H=j===\"tab\"?V:o[B];P=B+1,v=y-V+_e,w=y-V+H,C=j}function D(j,X){let B=u[j];for(let V=X;V<B.length;V++){let _e=B[V];b?y+_e>x?(L(),U(j,V,_e)):(y+=_e,T=j,z=V+1):U(j,V,_e)}b&&T===j&&z===B.length&&(T=j+1,z=0)}function ie(j){if(C!==\"soft-hyphen\")return!1;let X=u[j];if(X==null)return!1;let{fitCount:B,fittedWidth:V}=op(X,y,t,f,s);return B===0?!1:(y=V,T=j,z=B,F(),B===X.length?(T=j+1,z=0,!0):(L(j,B,V+s),D(j,B),!0))}function Fe(j){S++,n?.({startSegmentIndex:j.startSegmentIndex,startGraphemeIndex:0,endSegmentIndex:j.consumedEndSegmentIndex,endGraphemeIndex:0,width:0}),F()}for(let j=0;j<d.length;j++){let X=d[j];if(X.startSegmentIndex===X.endSegmentIndex){Fe(X);continue}b=!1,y=0,A=X.startSegmentIndex,_=0,T=X.startSegmentIndex,z=0,F();let B=X.startSegmentIndex;for(;B<X.endSegmentIndex;){let V=a[B],_e=V===\"space\"||V===\"preserved-space\"||V===\"tab\"||V===\"zero-width-break\"||V===\"soft-hyphen\",H=V===\"tab\"?rp(y,l):i[B];if(V===\"soft-hyphen\"){b&&(T=B+1,z=0,P=B+1,v=y+s,w=y+s,C=V),B++;continue}if(!b){H>t&&u[B]!==null?D(B,0):R(B,H),Y(V,_e,B,H),B++;continue}if(y+H>x){let G=y+(V===\"tab\"?0:r[B]),le=y+(V===\"tab\"?H:o[B]);if(C===\"soft-hyphen\"&&m.preferEarlySoftHyphenBreak&&v<=x){L(P,0,w);continue}if(C===\"soft-hyphen\"&&ie(B)){B++;continue}if(_e&&G<=x){I(B,H),L(B+1,0,le),B++;continue}if(P>=0&&v<=x){if(T>P||T===P&&z>0){L();continue}let oe=P;L(oe,0,w),B=oe;continue}if(H>t&&u[B]!==null){L(),D(B,0),B++;continue}L();continue}I(B,H),Y(V,_e,B,H),B++}if(b){let V=P===X.consumedEndSegmentIndex?w:y;L(X.consumedEndSegmentIndex,0,V)}}return S}var Lr=null;function sp(){return Lr===null&&(Lr=new Intl.Segmenter(void 0,{granularity:\"grapheme\"})),Lr}function ap(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function lp(e,t){let n=[],i=[],r=0,o=!1,a=!1,u=!1;function s(){i.length!==0&&(n.push({text:i.length===1?i[0]:i.join(\"\"),start:r}),i=[],o=!1,a=!1,u=!1)}function l(m,f,x){i=[m],r=f,o=x,a=Jn(m),u=ln.has(m)}function d(m,f){i.push(m),o=o||f;let x=Jn(m);m.length===1&&Ze.has(m)?a=a||x:a=x,u=!1}for(let m of sp().segment(e)){let f=m.segment,x=Ie(f);if(i.length===0){l(f,m.index,x);continue}if(u||$n.has(f)||Ze.has(f)||t.carryCJKAfterClosingQuote&&x&&a){d(f,x);continue}if(!o&&!x){d(f,x);continue}s(),l(f,m.index,x)}return s(),n}function up(e){if(e.length<=1)return e;let t=[],n=[e[0].text],i=e[0].start,r=Ie(e[0].text),o=qn(e[0].text);function a(){t.push({text:n.length===1?n[0]:n.join(\"\"),start:i})}for(let u=1;u<e.length;u++){let s=e[u],l=Ie(s.text),d=qn(s.text);if(r&&o){n.push(s.text),r=r||l,o=d;continue}a(),n=[s.text],i=s.start,r=l,o=d}return a(),t}function cp(e,t,n,i){let r=Et(),{cache:o,emojiCorrection:a}=El(t,yl(e.normalized)),u=et(\"-\",je(\"-\",o),a),l=et(\" \",je(\" \",o),a)*8;if(e.len===0)return ap(n);let d=[],m=[],f=[],x=[],S=e.chunks.length<=1,y=n?[]:null,b=[],A=n?[]:null,_=Array.from({length:e.len});function T(w,C,F,L,R,U,I){R!==\"text\"&&R!==\"space\"&&R!==\"zero-width-break\"&&(S=!1),d.push(C),m.push(F),f.push(L),x.push(R),y?.push(U),b.push(I),A!==null&&A.push(w)}function z(w,C,F,L,R){let U=je(w,o),I=et(w,U,a),Y=C===\"space\"||C===\"preserved-space\"||C===\"zero-width-break\"?0:I,D=C===\"space\"||C===\"zero-width-break\"?0:I;if(R&&L&&w.length>1){let ie=\"sum-graphemes\";an(w)?ie=\"pair-context\":r.preferPrefixWidthsForBreakableRuns&&(ie=\"segment-prefixes\");let Fe=Sl(w,U,o,a,ie);T(w,I,Y,D,C,F,Fe);return}T(w,I,Y,D,C,F,null)}for(let w=0;w<e.len;w++){_[w]=d.length;let C=e.texts[w],F=e.isWordLike[w],L=e.kinds[w],R=e.starts[w];if(L===\"soft-hyphen\"){T(C,0,u,u,L,R,null);continue}if(L===\"hard-break\"){T(C,0,0,0,L,R,null);continue}if(L===\"tab\"){T(C,0,0,0,L,R,null);continue}let U=je(C,o);if(L===\"text\"&&U.containsCJK){let I=lp(C,r),Y=i===\"keep-all\"?up(I):I;for(let D=0;D<Y.length;D++){let ie=Y[D];z(ie.text,\"text\",R+ie.start,F,i===\"keep-all\"||!Ie(ie.text))}continue}z(C,L,R,F,!0)}let P=dp(e.chunks,_,d.length),v=y===null?null:rl(e.normalized,y);return A!==null?{widths:d,lineEndFitAdvances:m,lineEndPaintAdvances:f,kinds:x,simpleLineWalkFastPath:S,segLevels:v,breakableFitAdvances:b,discretionaryHyphenWidth:u,tabStopAdvance:l,chunks:P,segments:A}:{widths:d,lineEndFitAdvances:m,lineEndPaintAdvances:f,kinds:x,simpleLineWalkFastPath:S,segLevels:v,breakableFitAdvances:b,discretionaryHyphenWidth:u,tabStopAdvance:l,chunks:P}}function dp(e,t,n){let i=[];for(let r=0;r<e.length;r++){let o=e[r],a=o.startSegmentIndex<t.length?t[o.startSegmentIndex]:n,u=o.endSegmentIndex<t.length?t[o.endSegmentIndex]:n,s=o.consumedEndSegmentIndex<t.length?t[o.consumedEndSegmentIndex]:n;i.push({startSegmentIndex:a,endSegmentIndex:u,consumedEndSegmentIndex:s})}return i}function fp(e,t,n,i){let r=i?.wordBreak??\"normal\",o=hl(e,Et(),i?.whiteSpace,r);return cp(o,t,n,r)}function Fl(e,t,n){return fp(e,t,!1,n)}function _l(e,t,n){let i=Al(e,t);return{lineCount:i,height:i*n}}var mp={maxWidth:1600,baseFontSize:78,minFontSize:42,fontWeight:900,fontFamily:\"Outfit\",step:2};function vl(e,t){let n={...mp,...t},i=1.2;for(let r=n.baseFontSize;r>=n.minFontSize;r-=n.step){let o=`${n.fontWeight} ${r}px ${n.fontFamily}`,a=Fl(e,o),{lineCount:u}=_l(a,n.maxWidth,r*i);if(u<=1)return{fontSize:r,fits:!0}}return{fontSize:n.minFontSize,fits:!1}}window.__timelines=window.__timelines||{};ja();window.__hyperframes={fitTextFontSize:vl,getVariables:Qr};function Tl(){let e=window;e.__hyperframeRuntimeBootstrapped||(e.__hyperframeRuntimeBootstrapped=!0,nl())}document.readyState===\"loading\"?document.addEventListener(\"DOMContentLoaded\",Tl,{once:!0}):Tl();})();\n";
|
|
2
|
+
const RUNTIME_IIFE = "\"use strict\";(()=>{var gu=Object.create;var pi=Object.defineProperty;var xu=Object.getOwnPropertyDescriptor;var bu=Object.getOwnPropertyNames;var yu=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty;var Eu=(e,t,n)=>t in e?pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Au=(e,t,n,i)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let r of bu(t))!Su.call(e,r)&&r!==n&&pi(e,r,{get:()=>t[r],enumerable:!(i=xu(t,r))||i.enumerable});return e};var wu=(e,t,n)=>(n=e!=null?gu(yu(e)):{},Au(t||!e||!e.__esModule?pi(n,\"default\",{value:e,enumerable:!0}):n,e));var me=(e,t,n)=>Eu(e,typeof t!=\"symbol\"?t+\"\":t,n);var cs=ee((F0,Wi)=>{var J=String,us=function(){return{isColorSupported:!1,reset:J,bold:J,dim:J,italic:J,underline:J,inverse:J,hidden:J,strikethrough:J,black:J,red:J,green:J,yellow:J,blue:J,magenta:J,cyan:J,white:J,gray:J,bgBlack:J,bgRed:J,bgGreen:J,bgYellow:J,bgBlue:J,bgMagenta:J,bgCyan:J,bgWhite:J,blackBright:J,redBright:J,greenBright:J,yellowBright:J,blueBright:J,magentaBright:J,cyanBright:J,whiteBright:J,bgBlackBright:J,bgRedBright:J,bgGreenBright:J,bgYellowBright:J,bgBlueBright:J,bgMagentaBright:J,bgCyanBright:J,bgWhiteBright:J}};Wi.exports=us();Wi.exports.createColors=us});var Vi=ee(()=>{});var Mn=ee((M0,ms)=>{\"use strict\";var ds=cs(),fs=Vi(),zt=class e extends Error{constructor(t,n,i,r,o,a){super(t),this.name=\"CssSyntaxError\",this.reason=t,o&&(this.file=o),r&&(this.source=r),a&&(this.plugin=a),typeof n<\"u\"&&typeof i<\"u\"&&(typeof n==\"number\"?(this.line=n,this.column=i):(this.line=n.line,this.column=n.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+\": \":\"\",this.message+=this.file?this.file:\"<css input>\",typeof this.line<\"u\"&&(this.message+=\":\"+this.line+\":\"+this.column),this.message+=\": \"+this.reason}showSourceCode(t){if(!this.source)return\"\";let n=this.source;t==null&&(t=ds.isColorSupported);let i=f=>f,r=f=>f,o=f=>f;if(t){let{bold:f,gray:p,red:d}=ds.createColors(!0);r=x=>f(d(x)),i=x=>p(x),fs&&(o=x=>fs(x))}let a=n.split(/\\r?\\n/),u=Math.max(this.line-3,0),s=Math.min(this.line+2,a.length),l=String(s).length;return a.slice(u,s).map((f,p)=>{let d=u+1+p,x=\" \"+(\" \"+d).slice(-l)+\" | \";if(d===this.line){if(f.length>160){let y=20,b=Math.max(0,this.column-y),A=Math.max(this.column+y,this.endColumn+y),_=f.slice(b,A),M=i(x.replace(/\\d/g,\" \"))+f.slice(0,Math.min(this.column-1,y-1)).replace(/[^\\t]/g,\" \");return r(\">\")+i(x)+o(_)+`\n `+M+r(\"^\")}let S=i(x.replace(/\\d/g,\" \"))+f.slice(0,this.column-1).replace(/[^\\t]/g,\" \");return r(\">\")+i(x)+o(f)+`\n `+S+r(\"^\")}return\" \"+i(x)+o(f)}).join(`\n`)}toString(){let t=this.showSourceCode();return t&&(t=`\n\n`+t+`\n`),this.name+\": \"+this.message+t}};ms.exports=zt;zt.default=zt});var zi=ee((N0,hs)=>{\"use strict\";var Vc=/(<)(\\/?style\\b)/gi,zc=/(<)(!--)/g;function Ye(e){return typeof e!=\"string\"||!e.includes(\"<\")?e:e.replace(Vc,\"\\\\3c $2\").replace(zc,\"\\\\3c $2\")}var ps={after:`\n`,beforeClose:`\n`,beforeComment:`\n`,beforeDecl:`\n`,beforeOpen:\" \",beforeRule:`\n`,colon:\": \",commentLeft:\" \",commentRight:\" \",emptyBody:\"\",indent:\" \",semicolon:!1};function jc(e){return e[0].toUpperCase()+e.slice(1)}var jt=class{constructor(t){this.builder=t}atrule(t,n){let i=t.raws,r=\"@\"+t.name,o=t.params?this.rawValue(t,\"params\"):\"\";if(typeof i.afterName<\"u\"?r+=i.afterName:o&&(r+=\" \"),t.nodes)this.block(t,r+o);else{let a=(i.between||\"\")+(n?\";\":\"\");this.builder(Ye(r+o+a),t)}}beforeAfter(t,n){let i;t.type===\"decl\"?i=this.raw(t,null,\"beforeDecl\"):t.type===\"comment\"?i=this.raw(t,null,\"beforeComment\"):n===\"before\"?i=this.raw(t,null,\"beforeRule\"):i=this.raw(t,null,\"beforeClose\");let r=t.parent,o=0;for(;r&&r.type!==\"root\";)o+=1,r=r.parent;if(i.includes(`\n`)){let a=this.raw(t,null,\"indent\");if(a.length)for(let u=0;u<o;u++)i+=a}return i}block(t,n){let i=this.raw(t,\"between\",\"beforeOpen\");this.builder(Ye(n+i)+\"{\",t,\"start\");let r;t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,\"after\")):r=this.raw(t,\"after\",\"emptyBody\"),r&&this.builder(Ye(r)),this.builder(\"}\",t,\"end\")}body(t){let n=t.nodes,i=n.length-1;for(;i>0&&n[i].type===\"comment\";)i-=1;let r=this.raw(t,\"semicolon\"),o=t.type===\"document\";for(let a=0;a<n.length;a++){let u=n[a],s=this.raw(u,\"before\");s&&this.builder(o?s:Ye(s)),this.stringify(u,i!==a||r)}}comment(t){let n=this.raw(t,\"left\",\"commentLeft\"),i=this.raw(t,\"right\",\"commentRight\");this.builder(Ye(\"/*\"+n+t.text+i+\"*/\"),t)}decl(t,n){let i=t.raws,r=this.raw(t,\"between\",\"colon\"),o=t.prop+r+this.rawValue(t,\"value\");t.important&&(o+=i.important||\" !important\"),n&&(o+=\";\"),this.builder(Ye(o),t)}document(t){this.body(t)}raw(t,n,i){let r;if(i||(i=n),n&&(r=t.raws[n],typeof r<\"u\"))return r;let o=t.parent;if(i===\"before\"&&(!o||o.type===\"root\"&&o.first===t||o&&o.type===\"document\"))return\"\";if(!o)return ps[i];let a=t.root(),u=a.rawCache||(a.rawCache={});if(typeof u[i]<\"u\")return u[i];if(i===\"before\"||i===\"after\")return this.beforeAfter(t,i);{let s=\"raw\"+jc(i);this[s]?r=this[s](a,t):a.walk(l=>{if(r=l.raws[n],typeof r<\"u\")return!1})}return typeof r>\"u\"&&(r=ps[i]),u[i]=r,r}rawBeforeClose(t){let n;return t.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<\"u\")return n=i.raws.after,n.includes(`\n`)&&(n=n.replace(/[^\\n]+$/,\"\")),!1}),n&&(n=n.replace(/\\S/g,\"\")),n}rawBeforeComment(t,n){let i;return t.walkComments(r=>{if(typeof r.raws.before<\"u\")return i=r.raws.before,i.includes(`\n`)&&(i=i.replace(/[^\\n]+$/,\"\")),!1}),typeof i>\"u\"?i=this.raw(n,null,\"beforeDecl\"):i&&(i=i.replace(/\\S/g,\"\")),i}rawBeforeDecl(t,n){let i;return t.walkDecls(r=>{if(typeof r.raws.before<\"u\")return i=r.raws.before,i.includes(`\n`)&&(i=i.replace(/[^\\n]+$/,\"\")),!1}),typeof i>\"u\"?i=this.raw(n,null,\"beforeRule\"):i&&(i=i.replace(/\\S/g,\"\")),i}rawBeforeOpen(t){let n;return t.walk(i=>{if(i.type!==\"decl\"&&(n=i.raws.between,typeof n<\"u\"))return!1}),n}rawBeforeRule(t){let n;return t.walk(i=>{if(i.nodes&&(i.parent!==t||t.first!==i)&&typeof i.raws.before<\"u\")return n=i.raws.before,n.includes(`\n`)&&(n=n.replace(/[^\\n]+$/,\"\")),!1}),n&&(n=n.replace(/\\S/g,\"\")),n}rawColon(t){let n;return t.walkDecls(i=>{if(typeof i.raws.between<\"u\")return n=i.raws.between.replace(/[^\\s:]/g,\"\"),!1}),n}rawEmptyBody(t){let n;return t.walk(i=>{if(i.nodes&&i.nodes.length===0&&(n=i.raws.after,typeof n<\"u\"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(i=>{let r=i.parent;if(r&&r!==t&&r.parent&&r.parent===t&&typeof i.raws.before<\"u\"){let o=i.raws.before.split(`\n`);return n=o[o.length-1],n=n.replace(/\\S/g,\"\"),!1}}),n}rawSemicolon(t){let n;return t.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type===\"decl\"&&(n=i.raws.semicolon,typeof n<\"u\"))return!1}),n}rawValue(t,n){let i=t[n],r=t.raws[n];return r&&r.value===i?r.raw:i}root(t){if(this.body(t),t.raws.after){let n=t.raws.after,i=t.parent&&t.parent.type===\"document\";this.builder(i?n:Ye(n))}}rule(t){this.block(t,this.rawValue(t,\"selector\")),t.raws.ownSemicolon&&this.builder(Ye(t.raws.ownSemicolon),t,\"end\")}stringify(t,n){if(!this[t.type])throw new Error(\"Unknown AST node type \"+t.type+\". Maybe you need to change PostCSS stringifier.\");this[t.type](t,n)}};hs.exports=jt;jt.default=jt});var $t=ee((L0,gs)=>{\"use strict\";var $c=zi();function ji(e,t){new $c(t).stringify(e)}gs.exports=ji;ji.default=ji});var Nn=ee((R0,$i)=>{\"use strict\";$i.exports.isClean=Symbol(\"isClean\");$i.exports.my=Symbol(\"my\")});var Jt=ee((k0,xs)=>{\"use strict\";var qc=Mn(),Kc=zi(),Jc=$t(),{isClean:qt,my:Yc}=Nn();function qi(e,t){let n=new e.constructor;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||i===\"proxyCache\")continue;let r=e[i],o=typeof r;i===\"parent\"&&o===\"object\"?t&&(n[i]=t):i===\"source\"?n[i]=r:Array.isArray(r)?n[i]=r.map(a=>qi(a,n)):(o===\"object\"&&r!==null&&(r=qi(r)),n[i]=r)}return n}function ze(e,t){if(t&&typeof t.offset<\"u\")return t.offset;let n=1,i=1,r=0;for(let o=0;o<e.length;o++){if(i===t.line&&n===t.column){r=o;break}e[o]===`\n`?(n=1,i+=1):n+=1}return r}var Kt=class{get proxyOf(){return this}constructor(t={}){this.raws={},this[qt]=!1,this[Yc]=!0;for(let n in t)if(n===\"nodes\"){this.nodes=[];for(let i of t[n])typeof i.clone==\"function\"?this.append(i.clone()):this.append(i)}else this[n]=t[n]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\\n\\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\\n\\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let n in t)this[n]=t[n];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let n=qi(this);for(let i in t)n[i]=t[i];return n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}error(t,n={}){if(this.source){let{end:i,start:r}=this.rangeBy(n);return this.source.input.error(t,{column:r.column,line:r.line},{column:i.column,line:i.line},n)}return new qc(t)}getProxyProcessor(){return{get(t,n){return n===\"proxyOf\"?t:n===\"root\"?()=>t.root().toProxy():t[n]},set(t,n,i){return t[n]===i||(t[n]=i,(n===\"prop\"||n===\"value\"||n===\"name\"||n===\"params\"||n===\"important\"||n===\"text\")&&t.markDirty()),!0}}}markClean(){this[qt]=!0}markDirty(){if(this[qt]){this[qt]=!1;let t=this;for(;t=t.parent;)t[qt]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let n=this.source.start;if(t.index)n=this.positionInside(t.index);else if(t.word){let i=\"document\"in this.source.input?this.source.input.document:this.source.input.css,o=i.slice(ze(i,this.source.start),ze(i,this.source.end)).indexOf(t.word);o!==-1&&(n=this.positionInside(o))}return n}positionInside(t){let n=this.source.start.column,i=this.source.start.line,r=\"document\"in this.source.input?this.source.input.document:this.source.input.css,o=ze(r,this.source.start),a=o+t;for(let u=o;u<a;u++)r[u]===`\n`?(n=1,i+=1):n+=1;return{column:n,line:i,offset:a}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let n=\"document\"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:ze(n,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==\"number\"?this.source.end.offset:ze(n,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(t.word){let a=n.slice(ze(n,this.source.start),ze(n,this.source.end)).indexOf(t.word);a!==-1&&(i=this.positionInside(a),r=this.positionInside(a+t.word.length))}else t.start?i={column:t.start.column,line:t.start.line,offset:ze(n,t.start)}:t.index&&(i=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line,offset:ze(n,t.end)}:typeof t.endIndex==\"number\"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<i.line||r.line===i.line&&r.column<=i.column)&&(r={column:i.column+1,line:i.line,offset:i.offset+1}),{end:r,start:i}}raw(t,n){return new Kc().raw(this,t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let n=this,i=!1;for(let r of t)r===this?i=!0:i?(this.parent.insertAfter(n,r),n=r):this.parent.insertBefore(n,r);i||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!==\"document\";)t=t.parent;return t}toJSON(t,n){let i={},r=n==null;n=n||new Map;let o=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a===\"parent\"||a===\"proxyCache\")continue;let u=this[a];if(Array.isArray(u))i[a]=u.map(s=>typeof s==\"object\"&&s.toJSON?s.toJSON(null,n):s);else if(typeof u==\"object\"&&u.toJSON)i[a]=u.toJSON(null,n);else if(a===\"source\"){if(u==null)continue;let s=n.get(u.input);s==null&&(s=o,n.set(u.input,o),o++),i[a]={end:u.end,inputId:s,start:u.start}}else i[a]=u}return r&&(i.inputs=[...n.keys()].map(a=>a.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=Jc){t.stringify&&(t=t.stringify);let n=\"\";return t(this,i=>{n+=i}),n}warn(t,n,i={}){let r={node:this};for(let o in i)r[o]=i[o];return t.warn(n,r)}};xs.exports=Kt;Kt.default=Kt});var Xt=ee((D0,bs)=>{\"use strict\";var Xc=Jt(),Yt=class extends Xc{constructor(t){super(t),this.type=\"comment\"}};bs.exports=Yt;Yt.default=Yt});var Zt=ee((I0,ys)=>{\"use strict\";var Qc=Jt(),Qt=class extends Qc{get variable(){return this.prop.startsWith(\"--\")||this.prop[0]===\"$\"}constructor(t){t&&typeof t.value<\"u\"&&typeof t.value!=\"string\"&&(t={...t,value:String(t.value)}),super(t),this.type=\"decl\"}};ys.exports=Qt;Qt.default=Qt});var Xe=ee((P0,vs)=>{\"use strict\";var Ss=Xt(),Es=Zt(),Zc=Jt(),{isClean:As,my:ws}=Nn(),Ki,Cs,_s,Ji;function Fs(e){return e.map(t=>(t.nodes&&(t.nodes=Fs(t.nodes)),delete t.source,t))}function Ts(e){if(e[As]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Ts(t)}var ke=class e extends Zc{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let n of t){let i=this.normalize(n,this.last);for(let r of i)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),i,r;for(;this.indexes[n]<this.proxyOf.nodes.length&&(i=this.indexes[n],r=t(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[n]+=1;return delete this.indexes[n],r}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,n){return n===\"proxyOf\"?t:t[n]?n===\"each\"||typeof n==\"string\"&&n.startsWith(\"walk\")?(...i)=>t[n](...i.map(r=>typeof r==\"function\"?(o,a)=>r(o.toProxy(),a):r)):n===\"every\"||n===\"some\"?i=>t[n]((r,...o)=>i(r.toProxy(),...o)):n===\"root\"?()=>t.root().toProxy():n===\"nodes\"?t.nodes.map(i=>i.toProxy()):n===\"first\"||n===\"last\"?t[n].toProxy():t[n]:t[n]},set(t,n,i){return t[n]===i||(t[n]=i,(n===\"name\"||n===\"params\"||n===\"selector\")&&t.markDirty()),!0}}}index(t){return typeof t==\"number\"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let i=this.index(t),r=this.normalize(n,this.proxyOf.nodes[i]).reverse();i=this.index(t);for(let a of r)this.proxyOf.nodes.splice(i+1,0,a);let o;for(let a in this.indexes)o=this.indexes[a],i<o&&(this.indexes[a]=o+r.length);return this.markDirty(),this}insertBefore(t,n){let i=this.index(t),r=i===0?\"prepend\":!1,o=this.normalize(n,this.proxyOf.nodes[i],r).reverse();i=this.index(t);for(let u of o)this.proxyOf.nodes.splice(i,0,u);let a;for(let u in this.indexes)a=this.indexes[u],i<=a&&(this.indexes[u]=a+o.length);return this.markDirty(),this}normalize(t,n){if(typeof t==\"string\")t=Fs(Cs(t).nodes);else if(typeof t>\"u\")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let r of t)r.parent&&r.parent.removeChild(r,\"ignore\")}else if(t.type===\"root\"&&this.type!==\"document\"){t=t.nodes.slice(0);for(let r of t)r.parent&&r.parent.removeChild(r,\"ignore\")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>\"u\")throw new Error(\"Value field is missed in node creation\");typeof t.value!=\"string\"&&(t.value=String(t.value)),t=[new Es(t)]}else if(t.selector||t.selectors)t=[new Ji(t)];else if(t.name)t=[new Ki(t)];else if(t.text)t=[new Ss(t)];else throw new Error(\"Unknown node type in node creation\");return t.map(r=>(r[ws]||e.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[As]&&Ts(r),r.raws||(r.raws={}),typeof r.raws.before>\"u\"&&n&&typeof n.raws.before<\"u\"&&(r.raws.before=n.raws.before.replace(/\\S/g,\"\")),r.parent=this.proxyOf,r))}prepend(...t){t=t.reverse();for(let n of t){let i=this.normalize(n,this.first,\"prepend\").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let i in this.indexes)n=this.indexes[i],n>=t&&(this.indexes[i]=n-1);return this.markDirty(),this}replaceValues(t,n,i){return i||(i=n,n={}),this.walkDecls(r=>{n.props&&!n.props.includes(r.prop)||n.fast&&!r.value.includes(n.fast)||(r.value=r.value.replace(t,i))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,i)=>{let r;try{r=t(n,i)}catch(o){throw n.addToError(o)}return r!==!1&&n.walk&&(r=n.walk(t)),r})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((i,r)=>{if(i.type===\"atrule\"&&t.test(i.name))return n(i,r)}):this.walk((i,r)=>{if(i.type===\"atrule\"&&i.name===t)return n(i,r)}):(n=t,this.walk((i,r)=>{if(i.type===\"atrule\")return n(i,r)}))}walkComments(t){return this.walk((n,i)=>{if(n.type===\"comment\")return t(n,i)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((i,r)=>{if(i.type===\"decl\"&&t.test(i.prop))return n(i,r)}):this.walk((i,r)=>{if(i.type===\"decl\"&&i.prop===t)return n(i,r)}):(n=t,this.walk((i,r)=>{if(i.type===\"decl\")return n(i,r)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((i,r)=>{if(i.type===\"rule\"&&t.test(i.selector))return n(i,r)}):this.walk((i,r)=>{if(i.type===\"rule\"&&i.selector===t)return n(i,r)}):(n=t,this.walk((i,r)=>{if(i.type===\"rule\")return n(i,r)}))}};ke.registerParse=e=>{Cs=e};ke.registerRule=e=>{Ji=e};ke.registerAtRule=e=>{Ki=e};ke.registerRoot=e=>{_s=e};vs.exports=ke;ke.default=ke;ke.rebuild=e=>{e.type===\"atrule\"?Object.setPrototypeOf(e,Ki.prototype):e.type===\"rule\"?Object.setPrototypeOf(e,Ji.prototype):e.type===\"decl\"?Object.setPrototypeOf(e,Es.prototype):e.type===\"comment\"?Object.setPrototypeOf(e,Ss.prototype):e.type===\"root\"&&Object.setPrototypeOf(e,_s.prototype),e[ws]=!0,e.nodes&&e.nodes.forEach(t=>{ke.rebuild(t)})}});var Ln=ee((O0,Ns)=>{\"use strict\";var Ms=Xe(),xt=class extends Ms{constructor(t){super(t),this.type=\"atrule\"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};Ns.exports=xt;xt.default=xt;Ms.registerAtRule(xt)});var Rn=ee((B0,ks)=>{\"use strict\";var ed=Xe(),Ls,Rs,ut=class extends ed{constructor(t){super({type:\"document\",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Ls(new Rs,this,t).stringify()}};ut.registerLazyResult=e=>{Ls=e};ut.registerProcessor=e=>{Rs=e};ks.exports=ut;ut.default=ut});var Is=ee((H0,Ds)=>{var td=\"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict\",nd=(e,t=21)=>(n=t)=>{let i=\"\",r=n|0;for(;r--;)i+=e[Math.random()*e.length|0];return i},id=(e=21)=>{let t=\"\",n=e|0;for(;n--;)t+=td[Math.random()*64|0];return t};Ds.exports={nanoid:id,customAlphabet:nd}});var kn=ee(()=>{});var Dn=ee(()=>{});var Yi=ee(()=>{});var Ps=ee(()=>{});var Qi=ee((K0,Hs)=>{\"use strict\";var{existsSync:rd,readFileSync:od}=Ps(),{dirname:Xi,join:sd}=kn(),{SourceMapConsumer:Os,SourceMapGenerator:Bs}=Dn();function ad(e){return Buffer?Buffer.from(e,\"base64\").toString():window.atob(e)}var en=class{constructor(t,n){if(n.map===!1)return;n.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,\"data:\");let i=n.map?n.map.prev:void 0,r=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=Xi(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Os(this.json||this.text)),this.consumerCache}decodeInline(t){let n=/^data:application\\/json;charset=utf-?8;base64,/,i=/^data:application\\/json;base64,/,r=/^data:application\\/json;charset=utf-?8,/,o=/^data:application\\/json,/,a=t.match(r)||t.match(o);if(a)return decodeURIComponent(t.substr(a[0].length));let u=t.match(n)||t.match(i);if(u)return ad(t.substr(u[0].length));let s=t.slice(22);throw s=s.slice(0,s.indexOf(\",\")),new Error(\"Unsupported source map encoding \"+s)}getAnnotationURL(t){return t.replace(/^\\/\\*\\s*# sourceMappingURL=/,\"\").trim()}isMap(t){return typeof t!=\"object\"?!1:typeof t.mappings==\"string\"||typeof t._mappings==\"string\"||Array.isArray(t.sections)}loadAnnotation(t){let n=t.match(/\\/\\*\\s*# sourceMappingURL=/g);if(!n)return;let i=t.lastIndexOf(n.pop()),r=t.indexOf(\"*/\",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(i,r)))}loadFile(t,n,i){if(!(!i&&!this.unsafeMap&&!/\\.map$/i.test(t))&&(this.root=Xi(t),rd(t)))return this.mapFile=t,od(t,\"utf-8\").toString().trim()}loadMap(t,n){if(n===!1)return!1;if(n){if(typeof n==\"string\")return n;if(typeof n==\"function\"){let i=n(t);if(i){let r=this.loadFile(i,t,!0);if(!r)throw new Error(\"Unable to load previous source map: \"+i.toString());return r}}else{if(n instanceof Os)return Bs.fromSourceMap(n).toString();if(n instanceof Bs)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error(\"Unsupported previous source map format: \"+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;t&&(i=sd(Xi(t),i));let r=this.loadFile(i,t,!1);if(r)try{this.json=JSON.parse(r.replace(/^\\)]}'[^\\n]*\\n/,\"\"))}catch{return}return r}}}startWith(t,n){return t?t.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Hs.exports=en;en.default=en});var tn=ee((J0,zs)=>{\"use strict\";var{nanoid:ld}=Is(),{isAbsolute:tr,resolve:nr}=kn(),{SourceMapConsumer:ud,SourceMapGenerator:cd}=Dn(),{fileURLToPath:Gs,pathToFileURL:In}=Yi(),Us=Mn(),dd=Qi(),Zi=Vi(),er=Symbol(\"lineToIndexCache\"),fd=!!(ud&&cd),Ws=!!(nr&&tr);function Vs(e){if(e[er])return e[er];let t=e.css.split(`\n`),n=new Array(t.length),i=0;for(let r=0,o=t.length;r<o;r++)n[r]=i,i+=t[r].length+1;return e[er]=n,n}var bt=class{get from(){return this.file||this.id}constructor(t,n={}){if(t===null||typeof t>\"u\"||typeof t==\"object\"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]===\"\\uFEFF\"||this.css[0]===\"\\uFFFE\"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,n.document&&(this.document=n.document.toString()),n.from&&(!Ws||/^\\w+:\\/\\//.test(n.from)||tr(n.from)?this.file=n.from:this.file=nr(n.from)),Ws&&fd){let i=new dd(this.css,n);if(i.text){this.map=i;let r=i.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=\"<input css \"+ld(6)+\">\"),this.map&&(this.map.file=this.from)}error(t,n,i,r={}){let o,a,u,s,l;if(n&&typeof n==\"object\"){let p=n,d=i;if(typeof p.offset==\"number\"){s=p.offset;let x=this.fromOffset(s);n=x.line,i=x.col}else n=p.line,i=p.column,s=this.fromLineAndColumn(n,i);if(typeof d.offset==\"number\"){u=d.offset;let x=this.fromOffset(u);a=x.line,o=x.col}else a=d.line,o=d.column,u=this.fromLineAndColumn(d.line,d.column)}else if(i)s=this.fromLineAndColumn(n,i);else{s=n;let p=this.fromOffset(s);n=p.line,i=p.col}let f=this.origin(n,i,a,o);return f?l=new Us(t,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,r.plugin):l=new Us(t,a===void 0?n:{column:i,line:n},a===void 0?i:{column:o,line:a},this.css,this.file,r.plugin),l.input={column:i,endColumn:o,endLine:a,endOffset:u,line:n,offset:s,source:this.css},this.file&&(In&&(l.input.url=In(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(t,n){return Vs(this)[t-1]+n-1}fromOffset(t){let n=Vs(this),i=n[n.length-1],r=0;if(t>=i)r=n.length-1;else{let o=n.length-2,a;for(;r<o;)if(a=r+(o-r>>1),t<n[a])o=a-1;else if(t>=n[a+1])r=a+1;else{r=a;break}}return{col:t-n[r]+1,line:r+1}}mapResolve(t){return/^\\w+:\\/\\//.test(t)?t:nr(this.map.consumer().sourceRoot||this.map.root||\".\",t)}origin(t,n,i,r){if(!this.map)return!1;let o=this.map.consumer(),a=o.originalPositionFor({column:n,line:t});if(!a.source)return!1;let u;typeof i==\"number\"&&(u=o.originalPositionFor({column:r,line:i}));let s;tr(a.source)?s=In(a.source):s=new URL(a.source,this.map.consumer().sourceRoot||In(this.map.mapFile));let l={column:a.column,endColumn:u&&u.column,endLine:u&&u.line,line:a.line,url:s.toString()};if(s.protocol===\"file:\")if(Gs)l.file=Gs(s);else throw new Error(\"file: protocol is not available in this PostCSS build\");let f=o.sourceContentFor(a.source);return f&&(l.source=f),l}toJSON(){let t={};for(let n of[\"hasBOM\",\"css\",\"file\",\"id\"])this[n]!=null&&(t[n]=this[n]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}};zs.exports=bt;bt.default=bt;Zi&&Zi.registerInput&&Zi.registerInput(bt)});var yt=ee((Y0,Ks)=>{\"use strict\";var js=Xe(),$s,qs,Qe=class extends js{constructor(t){super(t),this.type=\"root\",this.nodes||(this.nodes=[])}normalize(t,n,i){let r=super.normalize(t);if(n){if(i===\"prepend\")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let o of r)o.raws.before=n.raws.before}return r}removeChild(t,n){let i=this.index(t);return!n&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(t)}toResult(t={}){return new $s(new qs,this,t).stringify()}};Qe.registerLazyResult=e=>{$s=e};Qe.registerProcessor=e=>{qs=e};Ks.exports=Qe;Qe.default=Qe;js.registerRoot(Qe)});var ir=ee((X0,Js)=>{\"use strict\";var nn={comma(e){return nn.split(e,[\",\"],!0)},space(e){let t=[\" \",`\n`,\"\t\"];return nn.split(e,t)},split(e,t,n){let i=[],r=\"\",o=!1,a=0,u=!1,s=\"\",l=!1;for(let f of e)l?l=!1:f===\"\\\\\"?l=!0:u?f===s&&(u=!1):f==='\"'||f===\"'\"?(u=!0,s=f):f===\"(\"?a+=1:f===\")\"?a>0&&(a-=1):a===0&&t.includes(f)&&(o=!0),o?(r!==\"\"&&i.push(r.trim()),r=\"\",o=!1):r+=f;return(n||r!==\"\")&&i.push(r.trim()),i}};Js.exports=nn;nn.default=nn});var Pn=ee((Q0,Xs)=>{\"use strict\";var Ys=Xe(),md=ir(),St=class extends Ys{get selectors(){return md.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\\s*/):null,i=n?n[0]:\",\"+this.raw(\"between\",\"beforeOpen\");this.selector=t.join(i)}constructor(t){super(t),this.type=\"rule\",this.nodes||(this.nodes=[])}};Xs.exports=St;St.default=St;Ys.registerRule(St)});var Zs=ee((Z0,Qs)=>{\"use strict\";var pd=Ln(),hd=Xt(),gd=Zt(),xd=tn(),bd=Qi(),yd=yt(),Sd=Pn();function rn(e,t){if(Array.isArray(e))return e.map(r=>rn(r));let{inputs:n,...i}=e;if(n){t=[];for(let r of n){let o={...r,__proto__:xd.prototype};o.map&&(o.map={...o.map,__proto__:bd.prototype}),t.push(o)}}if(i.nodes&&(i.nodes=e.nodes.map(r=>rn(r,t))),i.source){let{inputId:r,...o}=i.source;i.source=o,r!=null&&(i.source.input=t[r])}if(i.type===\"root\")return new yd(i);if(i.type===\"decl\")return new gd(i);if(i.type===\"rule\")return new Sd(i);if(i.type===\"comment\")return new hd(i);if(i.type===\"atrule\")return new pd(i);throw new Error(\"Unknown node type: \"+e.type)}Qs.exports=rn;rn.default=rn});var or=ee((eg,oa)=>{\"use strict\";var{dirname:On,relative:ta,resolve:na,sep:ia}=kn(),{SourceMapConsumer:ra,SourceMapGenerator:Bn}=Dn(),{pathToFileURL:ea}=Yi(),Ed=tn(),Ad=!!(ra&&Bn),wd=!!(On&&na&&ta&&ia),rr=class{constructor(t,n,i,r){this.stringify=t,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t=\"data:application/json;base64,\"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==\"string\"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation==\"function\"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+\".map\";let n=`\n`;this.css.includes(`\\r\n`)&&(n=`\\r\n`),this.css+=n+\"/*# sourceMappingURL=\"+t+\" */\"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),i=t.root||On(t.file),r;this.mapOpts.sourcesContent===!1?(r=new ra(t.text),r.sourcesContent&&(r.sourcesContent=null)):r=t.consumer(),this.map.applySourceMap(r,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type===\"comment\"&&t.text.startsWith(\"# sourceMappingURL=\")&&this.root.removeChild(n)}else if(this.css){let t;for(;(t=this.css.lastIndexOf(\"/*#\"))!==-1;){let n=this.css.indexOf(\"*/\",t+3);if(n===-1)break;for(;t>0&&this.css[t-1]===`\n`;)t--;this.css=this.css.slice(0,t)+this.css.slice(n+2)}}}}generate(){if(this.clearAnnotation(),wd&&Ad&&this.isMap())return this.generateMap();{let t=\"\";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Bn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Bn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):\"<no source>\"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css=\"\",this.map=new Bn({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,i=\"<no source>\",r={generated:{column:0,line:0},original:{column:0,line:0},source:\"\"},o,a;this.stringify(this.root,(u,s,l)=>{if(this.css+=u,s&&l!==\"end\"&&(r.generated.line=t,r.generated.column=n-1,s.source&&s.source.start?(r.source=this.sourcePath(s),r.original.line=s.source.start.line,r.original.column=s.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),a=u.match(/\\n/g),a?(t+=a.length,o=u.lastIndexOf(`\n`),n=u.length-o):n+=u.length,s&&l!==\"start\"){let f=s.parent||{raws:{}};(!(s.type===\"decl\"||s.type===\"atrule\"&&!s.nodes)||s!==f.last||f.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=t,r.generated.column=n-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=t,r.generated.column=n-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<\"u\"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<\"u\")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<\"u\"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<\"u\"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<\"u\"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):\"to.css\"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\\w+:\\/\\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let i=this.opts.to?On(this.opts.to):\".\";typeof this.mapOpts.annotation==\"string\"&&(i=On(na(i,this.mapOpts.annotation)));let r=ta(i,t);return this.memoizedPaths.set(t,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new Ed(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let i=n.source.input.from;if(i&&!t[i]){t[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):\"<no source>\";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString(\"base64\"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(ea){let i=ea(t).toString();return this.memoizedFileURLs.set(t,i),i}else throw new Error(\"`map.absolute` option is not available in this PostCSS build\")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;ia===\"\\\\\"&&(t=t.replace(/\\\\/g,\"/\"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}};oa.exports=rr});var la=ee((tg,aa)=>{\"use strict\";var Hn=/[\\t\\n\\f\\r \"#'()/;[\\\\\\]{}]/g,Gn=/[\\t\\n\\f\\r !\"#'():;@[\\\\\\]{}]|\\/(?=\\*)/g,Cd=/.[\\r\\n\"'(/\\\\]/,sa=/[\\da-f]/i;aa.exports=function(t,n={}){let i=t.css.valueOf(),r=n.ignoreErrors,o,a,u,s,l,f,p,d,x,S,y=i.length,b=0,A=[],_=[],M=-1;function H(){return b}function k(F){throw t.error(\"Unclosed \"+F,b)}function v(){return _.length===0&&b>=y}function w(F){if(_.length)return _.pop();if(b>=y)return;let L=F?F.ignoreUnclosed:!1;switch(o=i.charCodeAt(b),o){case 10:case 32:case 9:case 13:case 12:{s=b;do s+=1,o=i.charCodeAt(s);while(o===32||o===10||o===9||o===13||o===12);f=[\"space\",i.slice(b,s)],b=s-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let R=String.fromCharCode(o);f=[R,R,b];break}case 40:{if(S=A.length?A.pop()[1]:\"\",x=i.charCodeAt(b+1),S===\"url\"&&x!==39&&x!==34&&x!==32&&x!==10&&x!==9&&x!==12&&x!==13){s=b;do{if(p=!1,s=i.indexOf(\")\",s+1),s===-1)if(r||L){s=b;break}else k(\"bracket\");for(d=s;i.charCodeAt(d-1)===92;)d-=1,p=!p}while(p);f=[\"brackets\",i.slice(b,s+1),b,s],b=s}else b<=M?f=[\"(\",\"(\",b]:(s=i.indexOf(\")\",b+1),a=i.slice(b,s+1),s===-1||Cd.test(a)?(M=s===-1?y:s,f=[\"(\",\"(\",b]):(f=[\"brackets\",a,b,s],b=s));break}case 39:case 34:{l=o===39?\"'\":'\"',s=b;do{if(p=!1,s=i.indexOf(l,s+1),s===-1)if(r||L){s=b+1;break}else k(\"string\");for(d=s;i.charCodeAt(d-1)===92;)d-=1,p=!p}while(p);f=[\"string\",i.slice(b,s+1),b,s],b=s;break}case 64:{Hn.lastIndex=b+1,Hn.test(i),Hn.lastIndex===0?s=i.length-1:s=Hn.lastIndex-2,f=[\"at-word\",i.slice(b,s+1),b,s],b=s;break}case 92:{for(s=b,u=!0;i.charCodeAt(s+1)===92;)s+=1,u=!u;if(o=i.charCodeAt(s+1),u&&o!==47&&o!==32&&o!==10&&o!==9&&o!==13&&o!==12&&(s+=1,sa.test(i.charAt(s)))){for(;sa.test(i.charAt(s+1));)s+=1;i.charCodeAt(s+1)===32&&(s+=1)}f=[\"word\",i.slice(b,s+1),b,s],b=s;break}default:{o===47&&i.charCodeAt(b+1)===42?(s=i.indexOf(\"*/\",b+2)+1,s===0&&(r||L?s=i.length:k(\"comment\")),f=[\"comment\",i.slice(b,s+1),b,s],b=s):(Gn.lastIndex=b+1,Gn.test(i),Gn.lastIndex===0?s=i.length-1:s=Gn.lastIndex-2,f=[\"word\",i.slice(b,s+1),b,s],A.push(f),b=s);break}}return b++,f}function C(F){_.push(F)}return{back:C,endOfFile:v,nextToken:w,position:H}}});var fa=ee((ng,da)=>{\"use strict\";var _d=Ln(),Fd=Xt(),Td=Zt(),vd=yt(),ua=Pn(),Md=la(),ca={empty:!0,space:!0};function Nd(e){for(let t=e.length-1;t>=0;t--){let n=e[t],i=n[3]||n[2];if(i)return i}}var sr=class{constructor(t){this.input=t,this.root=new vd,this.current=this.root,this.spaces=\"\",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new _d;n.name=t[1].slice(1),n.name===\"\"&&this.unnamedAtrule(n,t),this.init(n,t[2]);let i,r,o,a=!1,u=!1,s=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),i=t[0],i===\"(\"||i===\"[\"?l.push(i===\"(\"?\")\":\"]\"):i===\"{\"&&l.length>0?l.push(\"}\"):i===l[l.length-1]&&l.pop(),l.length===0)if(i===\";\"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i===\"{\"){u=!0;break}else if(i===\"}\"){if(s.length>0){for(o=s.length-1,r=s[o];r&&r[0]===\"space\";)r=s[--o];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(t);break}else s.push(t);else s.push(t);if(this.tokenizer.endOfFile()){a=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(n.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(n,\"params\",s),a&&(t=s[s.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between=\"\")):(n.raws.afterName=\"\",n.params=\"\"),u&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let i=0,r;for(let o=n-1;o>=0&&(r=t[o],!(r[0]!==\"space\"&&(i+=1,i===2)));o--);throw this.input.error(\"Missed semicolon\",r[0]===\"word\"?r[3]+1:r[2])}colon(t){let n=0,i,r,o;for(let[a,u]of t.entries()){if(r=u,o=r[0],o===\"(\"&&(n+=1),o===\")\"&&(n-=1),n===0&&o===\":\")if(!i)this.doubleColon(r);else{if(i[0]===\"word\"&&i[1]===\"progid\")continue;return a}i=r}return!1}comment(t){let n=new Fd;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let i=t[1].slice(2,-2);if(!i.trim())n.text=\"\",n.raws.left=i,n.raws.right=\"\";else{let r=i.match(/^(\\s*)([^]*\\S)(\\s*)$/);n.text=r[2],n.raws.left=r[1],n.raws.right=r[3]}}createTokenizer(){this.tokenizer=Md(this.input)}decl(t,n){let i=new Td;this.init(i,t[0][2]);let r=t[t.length-1];for(r[0]===\";\"&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(r[3]||r[2]||Nd(t)),i.source.end.offset++;t[0][0]!==\"word\";)t.length===1&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop=\"\";t.length;){let l=t[0][0];if(l===\":\"||l===\"space\"||l===\"comment\")break;i.prop+=t.shift()[1]}i.raws.between=\"\";let o;for(;t.length;)if(o=t.shift(),o[0]===\":\"){i.raws.between+=o[1];break}else o[0]===\"word\"&&/\\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]===\"_\"||i.prop[0]===\"*\")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let a=[],u;for(;t.length&&(u=t[0][0],!(u!==\"space\"&&u!==\"comment\"));)a.push(t.shift());this.precheckMissedSemicolon(t);for(let l=t.length-1;l>=0;l--){if(o=t[l],o[1].toLowerCase()===\"!important\"){i.important=!0;let f=this.stringFrom(t,l);f=this.spacesFromEnd(t)+f,f!==\" !important\"&&(i.raws.important=f);break}else if(o[1].toLowerCase()===\"important\"){let f=t.slice(0),p=\"\";for(let d=l;d>0;d--){let x=f[d][0];if(p.trim().startsWith(\"!\")&&x!==\"space\")break;p=f.pop()[1]+p}p.trim().startsWith(\"!\")&&(i.important=!0,i.raws.important=p,t=f)}if(o[0]!==\"space\"&&o[0]!==\"comment\")break}t.some(l=>l[0]!==\"space\"&&l[0]!==\"comment\")&&(i.raws.between+=a.map(l=>l[1]).join(\"\"),a=[]),this.raw(i,\"value\",a.concat(t),n),i.value.includes(\":\")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error(\"Double colon\",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new ua;this.init(n,t[2]),n.selector=\"\",n.raws.between=\"\",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.spaces=\"\",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||\"\")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type===\"rule\"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces=\"\",n.source.end=this.getPosition(t[2]),n.source.end.offset+=n.raws.ownSemicolon.length)}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces=\"\",t.type!==\"comment\"&&(this.semicolon=!1)}other(t){let n=!1,i=null,r=!1,o=null,a=[],u=t[1].startsWith(\"--\"),s=[],l=t;for(;l;){if(i=l[0],s.push(l),i===\"(\"||i===\"[\")o||(o=l),a.push(i===\"(\"?\")\":\"]\");else if(u&&r&&i===\"{\")o||(o=l),a.push(\"}\");else if(a.length===0)if(i===\";\")if(r){this.decl(s,u);return}else break;else if(i===\"{\"){this.rule(s);return}else if(i===\"}\"){this.tokenizer.back(s.pop()),n=!0;break}else i===\":\"&&(r=!0);else i===a[a.length-1]&&(a.pop(),a.length===0&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),a.length>0&&this.unclosedBracket(o),n&&r){if(!u)for(;s.length&&(l=s[s.length-1][0],!(l!==\"space\"&&l!==\"comment\"));)this.tokenizer.back(s.pop());this.decl(s,u)}else this.unknownWord(s)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case\"space\":this.spaces+=t[1];break;case\";\":this.freeSemicolon(t);break;case\"}\":this.end(t);break;case\"comment\":this.comment(t);break;case\"at-word\":this.atrule(t);break;case\"{\":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,i,r){let o,a,u=i.length,s=\"\",l=!0,f,p;for(let d=0;d<u;d+=1)o=i[d],a=o[0],a===\"space\"&&d===u-1&&!r?l=!1:a===\"comment\"?(p=i[d-1]?i[d-1][0]:\"empty\",f=i[d+1]?i[d+1][0]:\"empty\",!ca[p]&&!ca[f]?s.slice(-1)===\",\"?l=!1:s+=o[1]:l=!1):s+=o[1];if(!l){let d=i.reduce((x,S)=>x+S[1],\"\");t.raws[n]={raw:d,value:s}}t[n]=s}rule(t){t.pop();let n=new ua;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,\"selector\",t),this.current=n}spacesAndCommentsFromEnd(t){let n,i=\"\";for(;t.length&&(n=t[t.length-1][0],!(n!==\"space\"&&n!==\"comment\"));)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let n,i=\"\";for(;t.length&&(n=t[0][0],!(n!==\"space\"&&n!==\"comment\"));)i+=t.shift()[1];return i}spacesFromEnd(t){let n,i=\"\";for(;t.length&&(n=t[t.length-1][0],n===\"space\");)i=t.pop()[1]+i;return i}stringFrom(t,n){let i=\"\";for(let r=n;r<t.length;r++)i+=t[r][1];return t.splice(n,t.length-n),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error(\"Unclosed block\",t.line,t.column)}unclosedBracket(t){throw this.input.error(\"Unclosed bracket\",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error(\"Unexpected }\",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error(\"Unknown word \"+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,n){throw this.input.error(\"At-rule without name\",{offset:n[2]},{offset:n[2]+n[1].length})}};da.exports=sr});var Wn=ee((ig,ma)=>{\"use strict\";var Ld=Xe(),Rd=tn(),kd=fa();function Un(e,t){let n=new Rd(e,t),i=new kd(n);try{i.parse()}catch(r){throw r}return i.root}ma.exports=Un;Un.default=Un;Ld.registerParse(Un)});var ar=ee((rg,pa)=>{\"use strict\";var on=class{constructor(t,n={}){if(this.type=\"warning\",this.text=t,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+\": \"+this.text:this.text}};pa.exports=on;on.default=on});var Vn=ee((og,ha)=>{\"use strict\";var Dd=ar(),sn=class{get content(){return this.css}constructor(t,n,i){this.processor=t,this.messages=[],this.root=n,this.opts=i,this.css=\"\",this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let i=new Dd(t,n);return this.messages.push(i),i}warnings(){return this.messages.filter(t=>t.type===\"warning\")}};ha.exports=sn;sn.default=sn});var lr=ee((sg,xa)=>{\"use strict\";var ga={};xa.exports=function(t){ga[t]||(ga[t]=!0,typeof console<\"u\"&&console.warn&&console.warn(t))}});var dr=ee((lg,Ea)=>{\"use strict\";var Id=Xe(),Pd=Rn(),Od=or(),Bd=Wn(),ba=Vn(),Hd=yt(),Gd=$t(),{isClean:Be,my:Ud}=Nn(),ag=lr(),Wd={atrule:\"AtRule\",comment:\"Comment\",decl:\"Declaration\",document:\"Document\",root:\"Root\",rule:\"Rule\"},Vd={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},zd={Once:!0,postcssPlugin:!0,prepare:!0},Et=0;function an(e){return typeof e==\"object\"&&typeof e.then==\"function\"}function Sa(e){let t=!1,n=Wd[e.type];return e.type===\"decl\"?t=e.prop.toLowerCase():e.type===\"atrule\"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+\"-\"+t,Et,n+\"Exit\",n+\"Exit-\"+t]:t?[n,n+\"-\"+t,n+\"Exit\",n+\"Exit-\"+t]:e.append?[n,Et,n+\"Exit\"]:[n,n+\"Exit\"]}function ya(e){let t;return e.type===\"document\"?t=[\"Document\",Et,\"DocumentExit\"]:e.type===\"root\"?t=[\"Root\",Et,\"RootExit\"]:t=Sa(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function ur(e){return e[Be]=!1,e.nodes&&e.nodes.forEach(t=>ur(t)),e}var cr={},Ze=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return\"LazyResult\"}constructor(t,n,i){this.stringified=!1,this.processed=!1;let r;if(typeof n==\"object\"&&n!==null&&(n.type===\"root\"||n.type===\"document\"))r=ur(n);else if(n instanceof e||n instanceof ba)r=ur(n.root),n.map&&(typeof i.map>\"u\"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{let o=Bd;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{r=o(n,i)}catch(a){this.processed=!0,this.error=a}r&&!r[Ud]&&Id.rebuild(r)}this.result=new ba(t,r,i),this.helpers={...cr,postcss:cr,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o==\"object\"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error(\"Use process(css).then(cb) to work with async plugins\")}handleError(t,n){let i=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name===\"CssSyntaxError\"&&!t.plugin?(t.plugin=i.postcssPlugin,t.setMessage()):i.postcssVersion}catch(r){console&&console.error&&console.error(r)}return t}prepareVisitors(){this.listeners={};let t=(n,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([n,r])};for(let n of this.plugins)if(typeof n==\"object\")for(let i in n){if(!Vd[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!zd[i])if(typeof n[i]==\"object\")for(let r in n[i])r===\"*\"?t(n,i,n[i][r]):t(n,i+\"-\"+r.toLowerCase(),n[i][r]);else typeof n[i]==\"function\"&&t(n,i,n[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],i=this.runOnRoot(n);if(an(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Be];){t[Be]=!0;let n=[ya(t)];for(;n.length>0;){let i=this.visitTick(n);if(an(i))try{await i}catch(r){let o=n[n.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[n,i]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type===\"document\"){let r=t.nodes.map(o=>i(o,this.helpers));await Promise.all(r)}else await i(t,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t==\"object\"&&t.Once){if(this.result.root.type===\"document\"){let n=this.result.root.nodes.map(i=>t.Once(i,this.helpers));return an(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t==\"function\")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=Gd;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let i=this.result.root.source;if(t.map===void 0&&!(i&&i.input&&i.input.map)){let a=\"\";return n(this.result.root,u=>{a+=u}),this.result.css=a,this.result}let o=new Od(n,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(an(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Be];)t[Be]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type===\"document\")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[i,r]of t){this.result.lastPlugin=i;let o;try{o=r(n,this.helpers)}catch(a){throw this.handleError(a,n.proxyOf)}if(n.type!==\"root\"&&n.type!==\"document\"&&!n.parent)return!0;if(an(o))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:i,visitors:r}=n;if(i.type!==\"root\"&&i.type!==\"document\"&&!i.parent){t.pop();return}if(r.length>0&&n.visitorIndex<r.length){let[a,u]=r[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===r.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=a;try{return u(i.toProxy(),this.helpers)}catch(s){throw this.handleError(s,i)}}if(n.iterator!==0){let a=n.iterator,u;for(;u=i.nodes[i.indexes[a]];)if(i.indexes[a]+=1,!u[Be]){u[Be]=!0,t.push(ya(u));return}n.iterator=0,delete i.indexes[a]}let o=n.events;for(;n.eventIndex<o.length;){let a=o[n.eventIndex];if(n.eventIndex+=1,a===Et){i.nodes&&i.nodes.length&&(i[Be]=!0,n.iterator=i.getIterator());return}else if(this.listeners[a]){n.visitors=this.listeners[a];return}}t.pop()}walkSync(t){t[Be]=!0;let n=Sa(t);for(let i of n)if(i===Et)t.nodes&&t.each(r=>{r[Be]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,t.toProxy()))return}}warnings(){return this.sync().warnings()}};Ze.registerPostcss=e=>{cr=e};Ea.exports=Ze;Ze.default=Ze;Hd.registerLazyResult(Ze);Pd.registerLazyResult(Ze)});var wa=ee((cg,Aa)=>{\"use strict\";var jd=or(),$d=Wn(),qd=Vn(),Kd=$t(),ug=lr(),ln=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,n=$d;try{t=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return\"NoWorkResult\"}constructor(t,n,i){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=i,this._map=void 0;let r=Kd;this.result=new qd(this._processor,void 0,this._opts),this.result.css=n;let o=this;Object.defineProperty(this.result,\"root\",{get(){return o.root}});let a=new jd(r,void 0,this._opts,n);if(a.isMap()){let[u,s]=a.generate();u&&(this.result.css=u),s&&(this.result.map=s)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,n){return this.async().then(t,n)}toString(){return this._css}warnings(){return[]}};Aa.exports=ln;ln.default=ln});var _a=ee((dg,Ca)=>{\"use strict\";var Jd=Rn(),Yd=dr(),Xd=wa(),Qd=yt(),ct=class{constructor(t=[]){this.version=\"8.5.14\",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let i of t)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i==\"object\"&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if(typeof i==\"object\"&&i.postcssPlugin)n.push(i);else if(typeof i==\"function\")n.push(i);else if(!(typeof i==\"object\"&&(i.parse||i.stringify)))throw new Error(i+\" is not a PostCSS plugin\");return n}process(t,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new Xd(this,t,n):new Yd(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};Ca.exports=ct;ct.default=ct;Qd.registerProcessor(ct);Jd.registerProcessor(ct)});var ka=ee((fg,Ra)=>{\"use strict\";var Fa=Ln(),Ta=Xt(),Zd=Xe(),ef=Mn(),va=Zt(),Ma=Rn(),tf=Zs(),nf=tn(),rf=dr(),of=ir(),sf=Jt(),af=Wn(),fr=_a(),lf=Vn(),Na=yt(),La=Pn(),uf=$t(),cf=ar();function ae(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new fr(e)}ae.plugin=function(t,n){let i=!1;function r(...a){console&&console.warn&&!i&&(i=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith(\"cn\")&&console.warn(t+`: \\u91CC\\u9762 postcss.plugin \\u88AB\\u5F03\\u7528. \\u8FC1\\u79FB\\u6307\\u5357:\nhttps://www.w3ctech.com/topic/2226`));let u=n(...a);return u.postcssPlugin=t,u.postcssVersion=new fr().version,u}let o;return Object.defineProperty(r,\"postcss\",{get(){return o||(o=r()),o}}),r.process=function(a,u,s){return ae([r(s)]).process(a,u)},r};ae.stringify=uf;ae.parse=af;ae.fromJSON=tf;ae.list=of;ae.comment=e=>new Ta(e);ae.atRule=e=>new Fa(e);ae.decl=e=>new va(e);ae.rule=e=>new La(e);ae.root=e=>new Na(e);ae.document=e=>new Ma(e);ae.CssSyntaxError=ef;ae.Declaration=va;ae.Container=Zd;ae.Processor=fr;ae.Document=Ma;ae.Comment=Ta;ae.Warning=cf;ae.AtRule=Fa;ae.Result=lf;ae.Input=nf;ae.Rule=La;ae.Root=Na;ae.Node=sf;rf.registerPostcss(ae);Ra.exports=ae;ae.default=ae});function bn(){return globalThis}function T(e,t){if(typeof window>\"u\")return;let n=bn(),i=n.__hf?.onSwallowed;if(i)try{i({label:e,error:t})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${e} swallowed:`,t)}var Cu=[\"seconds-time\",\"rational-fps\",\"seek-keep-playing\",\"composition-manifest-v1\"];function _u(e,t){let n=Math.abs(e),i=Math.abs(t);for(;i!==0;){let r=n%i;n=i,i=r}return n||1}function Fu(e){let t=Number.isFinite(e)&&e>0?e:30,n=Number.isInteger(t)?1:1e6,i=Math.round(t*n),r=_u(i,n);return{numerator:i/r,denominator:n/r}}function hi(e){if(typeof e!=\"object\"||e===null)return null;let t=e;return!Number.isFinite(t.numerator)||!Number.isFinite(t.denominator)||(t.numerator??0)<=0||(t.denominator??0)<=0?null:Number(t.numerator)/Number(t.denominator)}function yn(e){return{protocolVersion:1,capabilities:Cu,fps:Fu(e)}}function Tu(e){return Array.isArray(e)&&e.every(t=>typeof t==\"string\")}function oo(e,t=30){if(typeof e!=\"object\"||e===null)return{status:\"legacy\",fps:t};let n=e;if(n.protocolVersion===void 0)return{status:\"legacy\",fps:t};if(n.protocolVersion!==1)return{status:\"unsupported\",code:\"unsupported_protocol_version\",receivedVersion:n.protocolVersion};let i=hi(n.fps);return i===null||!Tu(n.capabilities)?{status:\"unsupported\",code:\"invalid_protocol_metadata\",receivedVersion:n.protocolVersion}:{status:\"supported\",fps:i,metadata:n}}var so=30;function ao(e){so=Number.isFinite(e)&&e>0?e:30}function ge(e){try{window.parent.postMessage({...e,...yn(so)},\"*\")}catch(t){T(\"bridge.postMessage\",t)}}var vu={play:(e,t)=>t.onPlay(),pause:(e,t)=>t.onPause(),\"stop-media\":(e,t)=>t.onStopMedia(),seek:(e,t)=>t.onSeek(Mu(e,t),e.seekMode??\"commit\"),tick:(e,t)=>t.onTick(),\"set-muted\":(e,t)=>t.onSetMuted(!!e.muted),\"set-volume\":(e,t)=>t.onSetVolume(Math.max(0,Math.min(1,Number(e.volume??1)))),\"set-media-output-muted\":(e,t)=>t.onSetMediaOutputMuted(!!e.muted),\"set-native-media-sync-disabled\":(e,t)=>t.onSetNativeMediaSyncDisabled(!!e.disabled),\"set-web-audio-media-disabled\":(e,t)=>t.onSetWebAudioMediaDisabled(!!e.disabled),\"set-playback-rate\":(e,t)=>t.onSetPlaybackRate(Number(e.playbackRate??1)),\"set-root-duration\":(e,t)=>t.onSetRootDuration(Number(e.durationSeconds??0)),\"set-color-grading\":(e,t)=>t.onSetColorGrading(e.target??null,e.grading??null),\"set-color-grading-compare\":(e,t)=>t.onSetColorGradingCompare(e.target??null,e.compare??null),\"enable-pick-mode\":(e,t)=>t.onEnablePickMode(),\"disable-pick-mode\":(e,t)=>t.onDisablePickMode(),\"flash-elements\":e=>Lu(e)};function Mu(e,t){let n=Number(e.timeSeconds);if(Number.isFinite(n))return Math.max(0,n);let r=hi(e.fps)??t.getCanonicalFps();return Math.max(0,Number(e.frame??0))/r}function Nu(e){let t=oo(e);return t.status!==\"unsupported\"?!1:(ge({source:\"hf-preview\",type:\"diagnostic\",code:`runtime.protocol.${t.code}`,details:{receivedVersion:typeof t.receivedVersion==\"string\"||typeof t.receivedVersion==\"number\"?t.receivedVersion:null}}),!0)}function Lu(e){let t=e.selectors,n=e.duration||800;t&&Ru(t,n)}function lo(e){let t=n=>{let i=n.data;if(!i||i.source!==\"hf-parent\"||i.type!==\"control\"||Nu(i))return;let r=i.action;if(typeof r!=\"string\")return;let o=vu[r];o&&o(i,e)};return window.addEventListener(\"message\",t),ge({source:\"hf-preview\",type:\"ready\"}),t}function Ru(e,t){if(!document.getElementById(\"__hf-flash-styles\")){let n=document.createElement(\"style\");n.id=\"__hf-flash-styles\",n.textContent=`\n .__hf-flash {\n outline: 2px solid rgba(59, 130, 246, 0.6) !important;\n outline-offset: 2px !important;\n animation: __hf-flash-pulse ${t}ms ease-out forwards !important;\n }\n @keyframes __hf-flash-pulse {\n 0% { outline-color: rgba(59, 130, 246, 0.8); }\n 100% { outline-color: transparent; }\n }\n `,document.head.appendChild(n)}for(let n of e)try{document.querySelectorAll(n).forEach(r=>{r.classList.add(\"__hf-flash\"),setTimeout(()=>r.classList.remove(\"__hf-flash\"),t)})}catch(i){T(\"bridge.flashElements.querySelector\",i)}}var gi=null;function uo(e){gi=e}function Ke(e,t){if(gi)try{gi({source:\"hf-preview\",type:\"analytics\",event:e,properties:t??{}})}catch(n){T(\"runtime.analytics.site1\",n)}}function ku(e){let t=e.toLowerCase().replace(/[^a-z0-9]+/g,\"-\"),n=0,i=t.length;for(;n<i&&t[n]===\"-\";)n++;for(;i>n&&t[i-1]===\"-\";)i--;let r=t.slice(n,i);return r.length>0?r:\"node\"}function mt(e){return`--${ku(e)}`}function co(e){let t=new Map;for(let n of e){let i=mt(n),r=t.get(i);r?r.includes(n)||r.push(n):t.set(i,[n])}return[...t.values()].filter(n=>n.length>1)}function fo(){if(typeof document>\"u\")return{};let e=new Set;document.documentElement?.hasAttribute(\"data-composition-variables\")&&e.add(document.documentElement);for(let i of Array.from(document.querySelectorAll(\"[data-composition-variables]\")))e.add(i);let t={};for(let i of e)Object.assign(t,kt(i));let n=En();return{...t,...n}}function kt(e){if(!e)return{};let t=e.getAttribute(\"data-composition-variables\");if(!t)return{};let n;try{n=JSON.parse(t)}catch{return{}}if(!Array.isArray(n))return{};let i={};for(let r of n){if(!r||typeof r!=\"object\")continue;let o=r;typeof o.id!=\"string\"||!(\"default\"in o)||(i[o.id]=o.default)}return i}var xi=\"data-hf-css-vars\";function Sn(e){return\"style\"in e&&typeof e.style?.setProperty==\"function\"}function bi(e,t){if(!Sn(e))return;let n=[];for(let[i,r]of Object.entries(t))if(typeof r==\"string\"&&r!==\"\"||typeof r==\"number\"){let o=mt(i);e.style.setProperty(o,String(r)),n.push(o)}n.length>0&&e.setAttribute(xi,n.join(\" \"))}function mo(e,t,n){let i={};for(let[r,o]of Object.entries(t)){let a=mt(r);((Sn(e)?e.style.getPropertyValue(a):\"\")||(n?n.getComputedStyle(e).getPropertyValue(a):\"\")).trim()===\"\"&&(i[r]=o)}return i}function po(e){if(!Sn(e))return;let t=e.getAttribute(xi);if(t){for(let n of t.split(\" \"))n.startsWith(\"--\")&&e.style.removeProperty(n);e.removeAttribute(xi)}}function ho(e){let t=new Set;e.documentElement?.hasAttribute(\"data-composition-variables\")&&t.add(e.documentElement);for(let r of Array.from(e.querySelectorAll(\"[data-composition-variables]\")))t.add(r);let n=En(),i=[];for(let r of t)i.push(...Du(r,n,e.defaultView));for(let r of co(i))console.warn(`composition variables ${r.join(\", \")} collapse to the same CSS property ${mt(r[0]??\"\")} \\u2014 rename one to avoid cross-talk`)}function Du(e,t,n){if(!Sn(e))return[];let i=kt(e),r={};for(let[o,a]of Object.entries(i)){if(o in t)continue;let u=mt(o);(e.style.getPropertyValue(u)||(n?n.getComputedStyle(e).getPropertyValue(u):\"\")).trim()===\"\"&&(r[o]=a)}for(let[o,a]of Object.entries(t))o in i&&(r[o]=a);return bi(e,r),Object.keys(i)}function go(e){let t=e.getAttribute(\"data-variable-values\");if(!t)return{};let n;try{n=JSON.parse(t)}catch{return{}}return!n||typeof n!=\"object\"||Array.isArray(n)?{}:n}function En(){if(typeof window>\"u\")return{};let e=window.__hfVariables;return!e||typeof e!=\"object\"||Array.isArray(e)?{}:e}function xo(e){let t=[],n=l=>{if(typeof l.getAnimations!=\"function\")return[];try{return l.getAnimations()}catch{return[]}},i=l=>e?.resolveStartSeconds?e.resolveStartSeconds(l):Number.parseFloat(l.getAttribute(\"data-start\")??\"0\")||0,r=(l,f)=>{let p=null;try{p=l.effect?.getComputedTiming?.()??null}catch(x){T(\"runtime.adapters.css.site5\",x)}if(!p)return{};let d=Number(p.endTime);return Number.isFinite(d)?{endSeconds:f+d/1e3}:{unbounded:!0}},o=(l,f)=>{for(let p of l){try{p.currentTime=f}catch(d){T(\"runtime.adapters.css.site1\",d)}try{p.pause()}catch(d){T(\"runtime.adapters.css.site2\",d)}}},a=l=>{for(let f of l)try{f.play()}catch(p){T(\"runtime.adapters.css.site3\",p)}},u=l=>{for(let f of l)try{f.pause()}catch(p){T(\"runtime.adapters.css.site4\",p)}},s=l=>{l.baseDelay?l.el.style.animationDelay=l.baseDelay:l.el.style.removeProperty(\"animation-delay\"),l.basePlayState?l.el.style.animationPlayState=l.basePlayState:l.el.style.removeProperty(\"animation-play-state\")};return{name:\"css\",discover:()=>{t=[];let l=document.querySelectorAll(\"*\");for(let f of l){if(!(f instanceof HTMLElement))continue;let p=window.getComputedStyle(f);!p.animationName||p.animationName===\"none\"||t.push({el:f,baseDelay:f.style.animationDelay||\"\",basePlayState:f.style.animationPlayState||\"\",animations:n(f)})}},getInferredDurationSeconds:()=>{let l=0;for(let f of t){if(!f.el.isConnected)continue;let p=i(f.el);for(let d of n(f.el)){let x=r(d,p);x.endSeconds!=null&&(l=Math.max(l,x.endSeconds))}}return l>0?l:null},seek:l=>{let f=Number(l.time)||0;for(let p of t){if(!p.el.isConnected)continue;let d=i(p.el),x=Math.max(0,f-d)*1e3,S=p.animations;if(S.length>0){o(S,x);continue}p.el.style.animationPlayState=\"paused\",p.el.style.animationDelay=`-${(x/1e3).toFixed(3)}s`}},pause:()=>{for(let l of t){if(!l.el.isConnected)continue;let f=l.animations;f.length>0&&u(f),s(l)}},play:()=>{for(let l of t)l.el.isConnected&&(s(l),a(l.animations))},revert:()=>{t=[]}}}function bo(e){return{name:\"gsap\",discover:()=>{},seek:t=>{let n=e.getTimeline();if(!n)return;n.pause();let i=Math.max(0,Number(t.time)||0),r=t.suppressEvents===!0;typeof n.totalTime==\"function\"?(n.totalTime(i+.001,!0),n.totalTime(i,r)):n.seek(i,r)},pause:()=>{let t=e.getTimeline();t&&t.pause()}}}function yo(){return{name:\"animejs\",discover:()=>{try{let e=window.anime;if(!e||typeof e.running>\"u\")return;let t=e.running;if(!Array.isArray(t)||t.length===0)return;let n=window.__hfAnime??[],i=new Set(n);for(let r of t)i.has(r)||n.push(r);window.__hfAnime=n}catch(e){T(\"runtime.adapters.animejs.site1\",e)}},seek:e=>{let t=Math.max(0,(Number(e.time)||0)*1e3),n=window.__hfAnime;if(!(!n||n.length===0))for(let i of n)try{typeof i.seek==\"function\"&&i.seek(t)}catch(r){T(\"runtime.adapters.animejs.site2\",r)}},pause:()=>{let e=window.__hfAnime;if(!(!e||e.length===0))for(let t of e)try{typeof t.pause==\"function\"&&t.pause()}catch(n){T(\"runtime.adapters.animejs.site3\",n)}},play:()=>{let e=window.__hfAnime;if(!(!e||e.length===0))for(let t of e)try{typeof t.play==\"function\"&&t.play()}catch(n){T(\"runtime.adapters.animejs.site4\",n)}},revert:()=>{}}}function Eo(){return{name:\"lottie\",discover:()=>{try{let e=window.lottie;if(e&&typeof e.getRegisteredAnimations==\"function\"){let t=e.getRegisteredAnimations();if(Array.isArray(t)&&t.length>0){let n=window.__hfLottie??[],i=new Set(n);for(let r of t)i.has(r)||n.push(r);window.__hfLottie=n}}}catch(e){T(\"runtime.adapters.lottie.site1\",e)}},seek:e=>{let t=Math.max(0,Number(e.time)||0),n=window.__hfLottie;if(!(!n||n.length===0))for(let i of n)try{if(yi(i))i.goToAndStop(t*1e3,!1);else if(Si(i)){if(typeof i.setCurrentRawFrameValue==\"function\"){let r=i.totalFrames??0,o=i.frameRate??30,a=t*o;r>0&&i.setCurrentRawFrameValue(Math.min(a,r-1))}else if(typeof i.seek==\"function\"){let r=i.duration??1,o=Math.min(100,t/r*100);i.seek(o)}}}catch(r){T(\"runtime.adapters.lottie.site2\",r)}},pause:()=>{let e=window.__hfLottie;if(!(!e||e.length===0))for(let t of e)try{(yi(t)||Si(t))&&t.pause()}catch(n){T(\"runtime.adapters.lottie.site3\",n)}},revert:()=>{},getInferredDurationSeconds:()=>{let e=window.__hfLottie;if(!e||e.length===0)return null;let t=0,n=!1;for(let i of e){let r=null;try{r=Iu(i)}catch(o){T(\"runtime.adapters.lottie.site4\",o)}r!=null&&(n=!0,t=Math.max(t,r))}return n?t:null}}}function So(e,t){return!Number.isFinite(e)||!e||e<=0||!Number.isFinite(t)||!t||t<=0?null:e/t}function Iu(e){return yi(e)?So(e.totalFrames,e.frameRate):Si(e)?Number.isFinite(e.duration)&&(e.duration??0)>0?e.duration??null:So(e.totalFrames,e.frameRate):null}function yi(e){return typeof e==\"object\"&&e!==null&&typeof e.goToAndStop==\"function\"}function Si(e){return typeof e==\"object\"&&e!==null&&typeof e.pause==\"function\"&&(\"totalFrames\"in e||\"duration\"in e)}var Ei=-1;function An(e){if(e!==Ei){Ei=e;try{window.dispatchEvent(new CustomEvent(\"hf-seek\",{detail:{time:e}}))}catch(t){T(\"runtime.adapters.seek-dispatch.site1\",t)}}}function Ao(e){Ei=e;try{window.dispatchEvent(new CustomEvent(\"hf-seek\",{detail:{time:e}}))}catch(t){T(\"runtime.adapters.seek-dispatch.force\",t)}}function wo(){let e=null,t=0,n=null,i=null,r=null,o=null,a=()=>{if(typeof window>\"u\")return null;let f=window.THREE?.DefaultLoadingManager;return!f||typeof f!=\"object\"||typeof f.itemsLoaded!=\"number\"||typeof f.itemsTotal!=\"number\"?null:f},u=l=>{o||l.itemsTotal<=l.itemsLoaded||(o=new Promise(f=>{l.onLoad=function(){try{r?.call(this)}finally{o=null,l.onLoad=r??null,f()}}}))},s=l=>{n!==l&&(n=l,i=l.onStart??null,r=l.onLoad??null,l.onStart=function(f,p,d){try{i?.call(this,f,p,d)}finally{u(l)}})};return{name:\"three\",discover:()=>{let l=a();l&&(s(l),u(l))},seek:l=>{e=Math.max(0,Number(l.time)||0),t=e,window.__hfThreeTime=e,An(e)},pause:()=>{e==null&&(e=Math.max(0,t))},play:()=>{e=null},revert:()=>{e=null,t=0},getReadyPromise:()=>{let l=a();return!l||l.itemsTotal<=l.itemsLoaded?null:(o||u(l),o)}}}function Oe(e){let t=null,n=new WeakSet;return{name:e.name,discover:()=>{},seek:()=>{},pause:()=>{},play:()=>{},revert:()=>{},getReadyPromise:()=>{let i=e.getInstances();if(i.length===0)return null;let r=i.filter(o=>!n.has(o));return r.length===0?null:t||(t=Promise.allSettled(r.map(o=>e.waitFor(o).then(()=>{n.add(o)}))).then(()=>{t=null}),t)}}}function Co(){return Oe({name:\"mapbox\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfMapbox;return Array.isArray(e)?e:[]},waitFor:e=>new Promise(t=>{if(e.loaded()){t();return}e.on(\"load\",t)})})}function _o(){return Oe({name:\"leaflet\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfLeaflet;return Array.isArray(e)?e:[]},waitFor:e=>new Promise(t=>e.whenReady(t))})}function Fo(){return Oe({name:\"google-maps\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfGoogleMaps;return Array.isArray(e)?e:[]},waitFor:e=>new Promise(t=>{let n=e.addListener(\"tilesloaded\",()=>{n.remove(),t()})})})}function To(){return Oe({name:\"maplibre\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfMaplibre;return Array.isArray(e)?e:[]},waitFor:e=>new Promise(t=>{if(e.loaded()){t();return}e.on(\"load\",t)})})}function vo(){return Oe({name:\"d3\",getInstances:()=>{if(typeof window>\"u\")return[];let e=window.__hfD3;return Array.isArray(e)?e:[]},waitFor:e=>e.end()})}function Mo(){let e=null,t=0;return{name:\"typegpu\",discover:()=>{},seek:n=>{e=Math.max(0,Number(n.time)||0),t=e,window.__hfTypegpuTime=e,An(e)},pause:()=>{e==null&&(e=Math.max(0,t))},play:()=>{e=null},revert:()=>{e=null,t=0}}}function No(e){let t=e.nextElementSibling;if(t instanceof HTMLImageElement&&t.classList.contains(\"__render_frame__\")&&t.complete&&t.naturalWidth>0)return t;if(e.id){let n=document.getElementById(`__render_frame_${e.id}__`);if(n instanceof HTMLImageElement&&n.complete&&n.naturalWidth>0)return n}return null}function Lo(){let e=globalThis.GPUQueue;if(!e?.prototype?.copyExternalImageToTexture)return;let t=e.prototype.copyExternalImageToTexture;e.prototype.copyExternalImageToTexture=function(n,i,r){if(n?.source instanceof HTMLVideoElement){let o=No(n.source);if(o)return t.call(this,{...n,source:o},i,r)}return t.call(this,n,i,r)}}function Ro(){let e=[globalThis.WebGL2RenderingContext,globalThis.WebGLRenderingContext],t=[\"texImage2D\",\"texSubImage2D\"];for(let n of e){let i=n?.prototype;if(i)for(let r of t){let o=i[r];if(typeof o!=\"function\"||o.__hfVideoPatched)continue;let a=function(...u){let s=u.length-1,l=u[s];if(l instanceof HTMLVideoElement){let f=No(l);f&&(u[s]=f)}return o.apply(this,u)};a.__hfVideoPatched=!0,i[r]=a}}}function ko(){let e=!1,t=0,n=!1,i,r,o,a=new Set,u=new WeakMap,s=()=>{if(!document.getAnimations)return[];try{return document.getAnimations()}catch{return[]}},l=b=>{let A=Number(b.currentTime);return Number.isFinite(A)&&A>0?A:0},f=(b,A)=>A<=0?b:b>=A?Math.max(0,b-A):b,p=(b,A)=>{let _=u.get(b);if(_)return _;let M={compositionTimeMs:A,animationTimeMs:e?f(l(b),A):l(b)};return u.set(b,M),M},d=(b,A)=>{if(!a.has(b)){a.add(b);let _=()=>{a.delete(b)};try{b.addEventListener(\"finish\",_,{once:!0}),b.addEventListener(\"cancel\",_,{once:!0})}catch(M){T(\"runtime.adapters.waapi.site4\",M)}}p(b,A)},x=(b,A)=>{for(let _ of b)d(_,A)},S=()=>{if(n||typeof Element>\"u\")return;let b=Element.prototype;if(typeof b.animate!=\"function\"||b.__hfOriginalAnimate)return;let A=b.animate;try{Object.defineProperty(b,\"__hfOriginalAnimate\",{value:A,configurable:!0});let _=function(...M){let H=A.apply(this,M);return d(H,t),H};b.animate=_,i=b,r=A,o=_,n=!0}catch{}},y=b=>{let A=null;try{A=b.effect?.getComputedTiming?.()??null}catch(H){T(\"runtime.adapters.waapi.site4\",H)}if(!A)return{};let _=Number(A.endTime);return Number.isFinite(_)?{endSeconds:(u.get(b)?.compositionTimeMs??0)/1e3+_/1e3}:{unbounded:!0}};return{name:\"waapi\",discover:()=>{e=!0,S(),x(s(),t)},seek:b=>{let A=Math.max(0,(Number(b.time)||0)*1e3);t=A,(!e||a.size>0)&&x(s(),e?A:0);for(let _ of a){let M=e?p(_,A):p(_,0),H=M.animationTimeMs+Math.max(0,A-M.compositionTimeMs);try{_.currentTime=H}catch(k){T(\"runtime.adapters.waapi.site1\",k)}try{_.pause()}catch(k){T(\"runtime.adapters.waapi.site2\",k)}}},pause:()=>{e||x(s(),t);for(let b of a)try{b.pause()}catch(A){T(\"runtime.adapters.waapi.site3\",A)}},revert:()=>{if(a.clear(),u=new WeakMap,e=!1,t=0,i&&r&&o&&i.animate===o)try{i.animate=r,i.__hfOriginalAnimate===r&&delete i.__hfOriginalAnimate}catch(b){T(\"runtime.adapters.waapi.site5\",b)}i=void 0,r=void 0,o=void 0,n=!1},getInferredDurationSeconds:()=>{let b=0;for(let A of s()){let _=y(A);_.endSeconds!=null&&(b=Math.max(b,_.endSeconds))}return b>0?b:null}}}function Do(e,t){if(e.length===0)return 1;let n=0;for(;n<e.length-2&&t>=e[n+1].time;)n+=1;let i=e[n],r=e[n+1]??i,o=r.time-i.time,a=o<=0?0:Math.min(1,Math.max(0,(t-i.time)/o));return i.volume+(r.volume-i.volume)*a}function Pu(e,t,n,i){let r=Number.parseFloat(e.dataset.start??\"0\")||0,o=Number.parseFloat(e.dataset.end??\"\"),a=Number.parseFloat(e.dataset.duration??\"\"),u=Number.isFinite(o)&&o>r?o:Number.isFinite(a)&&a>0?r+a:n,s=Number.parseFloat(e.dataset.volume??\"\"),l=Number.isFinite(s)?Math.max(0,Math.min(1,s)):1;e.volume=l;let f=1/Math.min(60,Math.max(1,i)),p=Math.max(0,r),d=Math.min(n,u),x=[];for(let y=p;y<=d+1e-6;y+=f){let b=Math.min(d,y);t(b);let A=Number(e.volume);if(!Number.isFinite(A))continue;let _=Math.max(0,Math.min(1,A)),M=x.at(-1);if((!M||Math.abs(M.volume-_)>1e-4||b===d)&&x.push({time:Number(b.toFixed(6)),volume:Number(_.toFixed(6))}),b===d)break}return x.some(y=>Math.abs(y.volume-l)>1e-4)?x:null}function Io(e,t,n,i){if(!t||!(e instanceof HTMLAudioElement)&&!(e instanceof HTMLVideoElement)||n<=0)return;let r=u=>{try{typeof t.totalTime==\"function\"?t.totalTime(u,!0):typeof t.seek==\"function\"&&t.seek(u,!0)}catch{}},o=typeof t.totalTime==\"function\"?Number(t.totalTime()):typeof t.seek==\"function\"?Number(t.seek()):0,a=Pu(e,r,n,60);Number.isFinite(o)&&r(o),a&&i.set(e,a)}function Pt(e){let t=e.defaultPlaybackRate;return Number.isFinite(t)&&t>0?Math.max(.1,Math.min(5,t)):1}function Po(e){let t=e.isVideo?e.explicitDuration??e.sourceDuration:e.sourceDuration,n=(e.isVideo?[t,e.hostRemaining]:[t,e.hostRemaining,e.explicitDuration]).filter(i=>i!=null&&Number.isFinite(i)&&i>0);return n.length>0?Math.min(...n):null}function Oo(e){let t=Array.from(document.querySelectorAll(\"video, audio\")),n=e?.shouldIncludeElement?t.filter(a=>e.shouldIncludeElement?.(a)):t.filter(a=>a.hasAttribute(\"data-start\")),i=[],r=[],o=0;for(let a of n){let u=e?.resolveStartSeconds?e.resolveStartSeconds(a):Number.parseFloat(a.dataset.start??\"0\");if(!Number.isFinite(u))continue;let s=Number.parseFloat(a.dataset.playbackStart??a.dataset.mediaStart??\"0\")||0,l=Pt(a),f=a.loop,p=Number.isFinite(a.duration)&&a.duration>0?a.duration:null,d=e?.resolveDurationSeconds?.(a)??Number.parseFloat(a.dataset.duration??\"\");(!Number.isFinite(d)||d<=0)&&p!=null&&(d=Math.max(0,(p-s)/l));let x=Number.isFinite(d)&&d>0?u+d:Number.POSITIVE_INFINITY,S=Number.parseFloat(a.dataset.volume??\"\"),y={el:a,start:u,mediaStart:s,duration:Number.isFinite(d)&&d>0?d:Number.POSITIVE_INFINITY,end:x,volume:Number.isFinite(S)?S:null,playbackRate:l,loop:f,sourceDuration:p};i.push(y),a.tagName===\"VIDEO\"&&r.push(y),Number.isFinite(x)&&(o=Math.max(o,x))}return{timedMediaEls:n,mediaClips:i,videoClips:r,maxMediaEnd:o}}var Ai=new WeakMap,It=new WeakMap,wi=new WeakSet,pt=new WeakSet;function Ou(e){if(pt.has(e))return;pt.add(e);let t=()=>pt.delete(e);e.addEventListener(\"playing\",t,{once:!0}),e.addEventListener(\"pause\",t,{once:!0}),e.addEventListener(\"error\",t,{once:!0})}var Bu=3;function Hu(e){return e.error!=null||e.networkState===Bu}var Ci=new WeakMap;function Dt(e){return Number.isFinite(e)?Math.max(0,Math.min(1,e)):1}function _i(e){Ai.delete(e),It.delete(e),wi.delete(e),Ci.delete(e)}function Bo(e){let t=!!(e.outputMuted||e.userMuted);for(let n of e.clips){let{el:i}=n;if(!i.isConnected)continue;let r=(e.timeSeconds-n.start)*n.playbackRate+n.mediaStart,o=i.tagName===\"VIDEO\"&&!n.loop,a=o&&n.sourceDuration!=null&&r>=n.sourceDuration&&e.timeSeconds>=n.start&&e.timeSeconds<n.end;a&&n.sourceDuration!=null&&(r=n.sourceDuration);let u=o&&n.sourceDuration!=null&&r>=n.mediaStart&&r<n.sourceDuration;if(e.timeSeconds>=n.start&&e.timeSeconds<n.end&&r>=0&&(!i.ended||n.loop||a||u)){if(n.loop&&n.sourceDuration!=null&&n.sourceDuration>0){let P=n.sourceDuration-n.mediaStart;P>0&&r>=n.sourceDuration&&(r=n.mediaStart+(r-n.mediaStart)%P)}let l=Dt(e.userVolume??1),f=Dt(n.volume??1),p=Ci.get(i),d=Dt(i.volume),x;n.volumeKeyframes&&n.volumeKeyframes.length>0?x=Dt(Do(n.volumeKeyframes,r)):p===void 0||Math.abs(d-p)>1e-4?x=d:x=f;let S=Dt(x*l);i.volume=S,Ci.set(i,S),e.onElementVolume?.(i,S),(t||e.isWebAudioOwned?.(i))&&(i.muted=!0),i.preload!==\"auto\"&&(i.preload=\"auto\");try{i.playbackRate=n.playbackRate*e.playbackRate}catch(P){T(\"runtime.media.site1\",P)}let y=.04,b=2,A=i.currentTime||0,_=Math.abs(A-r),M=r-A,H=Ai.get(i);Ai.set(i,M);let k=H===void 0,v=!k&&Math.abs(M-H)>.5,w=_>3,C=a&&_>.001||i.ended&&u&&_>.001||_>.5&&(k||v||w),F=i.tagName===\"VIDEO\"&&!i.paused,L=H!==void 0&&Math.abs(M-H)<.004,R=!1;if(!F&&!C&&!k&&L&&_>y){let P=(It.get(i)??0)+1;It.set(i,P),P>=b&&(R=!0,It.set(i,0))}else _<=y&&It.set(i,0);let z=!F&&e.forceSync&&_>.02;if(C||R||z){if(!(i.tagName===\"VIDEO\"&&i.id&&!!document.getElementById(`__render_frame_${i.id}__`))){try{i.currentTime=r}catch(X){T(\"runtime.media.site2\",X)}if(Math.abs(i.currentTime-r)>.5&&!wi.has(i)){wi.add(i),i.load();try{i.currentTime=r}catch(X){T(\"runtime.media.site3\",X)}}}pt.delete(i)}a?i.paused||i.pause():e.playing&&i.paused&&!pt.has(i)&&!Hu(i)?(Ou(i),i.play().catch(P=>{pt.delete(i),(P&&typeof P==\"object\"&&\"name\"in P?String(P.name??\"\"):\"\")===\"NotAllowedError\"&&e.onAutoplayBlocked?.()})):!e.playing&&!i.paused&&i.pause();continue}_i(i),i.paused||i.pause()}}var Gu=\"hf-proxy\",Ho=\"runtime_media_proxy_fallback\",Go=\"runtime_media_proxy_unavailable\",Ot=new WeakSet,Uo=new WeakSet;function wn(e){return e.currentSrc||e.src}function Fi(e){return window.__HF_EXPORT_RENDER_SEEK_CONFIG?!0:e instanceof HTMLVideoElement&&!!e.id&&!!document.getElementById(`__render_frame_${e.id}__`)}function Ti(e){let t=wn(e);if(!t)return null;let n;try{n=new URL(t,document.baseURI)}catch{return null}if(n.origin!==window.location.origin)return null;try{return decodeURIComponent(n.pathname)}catch{return n.pathname}}function Uu(e,t){let n=null;for(let i of Object.keys(t))e.endsWith(i)&&(n===null||i.length>n.length)&&(n=i);return n?t[n]??null:null}function Wu(e,t){let n=e.normalize(\"NFC\").toLowerCase(),i=-1,r=null,o=!1;for(let[a,u]of Object.entries(t)){let s=a.normalize(\"NFC\").toLowerCase();n.endsWith(s)&&(s.length>i?(i=s.length,r=u,o=!1):s.length===i&&(o=!0))}return o?null:r}function vi(e,t){return t[e]??Uu(e,t)??Wu(e,t)}function Vu(e,t){let n=new URL(e,document.baseURI);return n.searchParams.set(Gu,t?t.hasAlpha?\"vp9\":\"h264\":\"auto\"),n.href}var zu={cross_origin:\"video reports zero decodable width but its source is cross-origin; no local proxy can be served for it\",proxy_playback_failed:\"the authoring proxy itself failed to decode; render output is unaffected\",browser_safe_codec:\"the file errored but its codec is browser-decodable; a proxy cannot help (the file itself is likely corrupt)\",invalid_source_url:\"the media source URL is malformed and cannot be proxied\"};function at(e,t,n){if(Uo.has(e))return;Uo.add(e);let i=zu[t];ge({source:\"hf-preview\",type:\"diagnostic\",code:Go,details:{asset:n,codecName:null,reason:t,note:i}}),console.info(`[hyperframes] ${Go}: \"${n}\" (${t}): ${i}`)}function Mi(e,t=null,n=\"reactive\"){if(Ot.has(e))return;let i=wn(e),r;try{r=Vu(i,t)}catch(u){T(\"runtime.mediaProxy.swap\",u),at(e,\"invalid_source_url\",i);return}Ot.add(e),_i(e),e.src=r,e.load();let o=t?.codecName??null;ge({source:\"hf-preview\",type:\"diagnostic\",code:Ho,details:{asset:i,codecName:o,trigger:n,note:\"render output is unaffected; only this preview element was swapped to an authoring proxy\"}}),console.info(`[hyperframes] ${Ho}: \"${i}\" uses a codec (${o??\"unknown\"}) this browser can't decode; auto-swapped to an authoring proxy for this preview only. Render output is unaffected.`)}function Wo(e){if(Fi(e)||!(e instanceof HTMLVideoElement)||Ot.has(e))return;let t=window.__HF_MEDIA_CODEC_MAP__;if(!t)return;let n=Ti(e);if(n===null)return;let i=vi(n,t);if(!i||!i.browserHostile)return;let r=i.representativeMime?e.canPlayType(i.representativeMime):\"\";r===\"probably\"||r===\"maybe\"||Mi(e,i,\"proactive\")}function Vo(e){if(Fi(e)||!(e instanceof HTMLVideoElement)||e.videoWidth!==0)return;let t=wn(e);if(Ot.has(e)){at(e,\"proxy_playback_failed\",t);return}let n=window.__HF_MEDIA_CODEC_MAP__;if(!n)return;let i=Ti(e);if(i===null){at(e,\"cross_origin\",t);return}let r=vi(i,n);if(r&&!r.browserHostile){at(e,\"browser_safe_codec\",t);return}Mi(e,r,\"reactive\")}function zo(e){if(Fi(e)||!(e instanceof HTMLVideoElement))return;let t=wn(e);if(Ot.has(e)){at(e,\"proxy_playback_failed\",t);return}let n=window.__HF_MEDIA_CODEC_MAP__;if(!n)return;let i=Ti(e);if(i===null){at(e,\"cross_origin\",t);return}let r=vi(i,n);if(r&&!r.browserHostile){at(e,\"browser_safe_codec\",t);return}Mi(e,r,\"tertiary\")}var We=\"data-color-grading\",Bt=\"data-hf-color-grading-source-hidden\",Tn=\"data-hf-authored-opacity\",jo=\"__hf_color_grading_\",ju=\"rec709\",Cn={exposure:0,contrast:0,highlights:0,shadows:0,whites:0,blacks:0,temperature:0,tint:0,vibrance:0,saturation:0},_n={vignette:0,vignetteMidpoint:.5,vignetteRoundness:0,vignetteFeather:.65,grain:0,grainSize:.25,grainRoughness:.5},Fn={blur:0,pixelate:0},$o=Object.keys(Cn),$u=Object.keys(_n),qo=Object.keys(Fn);function be(e,t,n={},i={}){return{id:e,label:t,adjust:{...Cn,...n},details:{..._n,...i},effects:{...Fn}}}var qu=[be(\"neutral\",\"Neutral\"),be(\"natural-lift\",\"Natural Lift\",{exposure:.04,contrast:.06,highlights:-.06,shadows:.08,saturation:.05}),be(\"fresh-pop\",\"Fresh Pop\",{exposure:.08,contrast:.12,whites:.06,shadows:.04,temperature:-.02,vibrance:.08,saturation:.16}),be(\"warm-daylight\",\"Warm Daylight\",{exposure:.06,contrast:.07,highlights:-.06,shadows:.08,temperature:.18,saturation:.08}),be(\"clean-studio\",\"Clean Studio\",{contrast:.08,highlights:-.08,shadows:.06,temperature:-.08,tint:.03,saturation:.04}),be(\"skin-soft\",\"Skin Soft\",{exposure:.04,contrast:-.03,highlights:-.12,shadows:.12,temperature:.08,tint:.02,saturation:.04}),be(\"food-pop\",\"Food Pop\",{exposure:.06,contrast:.1,shadows:.06,temperature:.14,vibrance:.1,saturation:.18}),be(\"night-lift\",\"Night Lift\",{exposure:.08,contrast:.08,highlights:-.18,shadows:.2,blacks:-.08,saturation:.04},{vignette:.12}),be(\"muted-editorial\",\"Muted Editorial\",{exposure:-.02,contrast:.08,highlights:-.08,shadows:.06,blacks:-.05,temperature:-.03,saturation:-.12},{vignette:.1}),be(\"vintage-wash\",\"Vintage Wash\",{exposure:.03,contrast:-.12,highlights:-.1,shadows:.16,whites:-.04,blacks:.08,temperature:.13,vibrance:-.08,saturation:-.08},{vignette:.18}),be(\"mono-clean\",\"Mono Clean\",{contrast:.12,highlights:-.04,shadows:.04,blacks:-.08,saturation:-1}),be(\"mono-fade\",\"Mono Fade\",{contrast:-.04,highlights:-.06,shadows:.1,blacks:.12,saturation:-1},{vignette:.08}),be(\"warm-clean\",\"Warm Clean\",{exposure:.05,contrast:.08,highlights:-.08,shadows:.08,temperature:.16,vibrance:.04,saturation:.06}),be(\"cool-clean\",\"Cool Clean\",{contrast:.06,highlights:-.06,shadows:.06,temperature:-.12,tint:.04,saturation:.04}),be(\"soft-boost\",\"Soft Boost\",{exposure:.06,contrast:-.04,highlights:-.14,shadows:.16,vibrance:.08,saturation:.1}),be(\"bright-pop\",\"Bright Pop\",{exposure:.12,contrast:.12,whites:.08,blacks:-.04,vibrance:.08,saturation:.14}),be(\"deep-contrast\",\"Deep Contrast\",{exposure:-.03,contrast:.2,highlights:-.08,shadows:-.08,blacks:-.12,saturation:.06})],Ku=new Map(qu.map(e=>[e.id,e])),Ju=/^\\$(?:\\{([A-Za-z0-9_.:-]+)\\}|([A-Za-z0-9_.:-]+))$/,Yu={exposure:{min:-2,max:2},contrast:{min:-1,max:1},highlights:{min:-1,max:1},shadows:{min:-1,max:1},whites:{min:-1,max:1},blacks:{min:-1,max:1},temperature:{min:-1,max:1},tint:{min:-1,max:1},vibrance:{min:-1,max:1},saturation:{min:-1,max:1}},Xu={vignette:{min:0,max:1},vignetteMidpoint:{min:0,max:1},vignetteRoundness:{min:-1,max:1},vignetteFeather:{min:0,max:1},grain:{min:0,max:1},grainSize:{min:0,max:1},grainRoughness:{min:0,max:1}},Qu={blur:{min:0,max:1},pixelate:{min:0,max:1}};function lt(e){return typeof e==\"object\"&&e!==null&&!Array.isArray(e)}function Zu(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):0}function Ko(e,t){let n=typeof e==\"number\"?e:Number(e);return Number.isFinite(n)?Math.min(1,Math.max(0,n)):t}function Ni(e,t){let n=typeof e==\"number\"?e:Number(e);return Number.isFinite(n)?Zu(n,t.min,t.max):0}function ec(e){if(e==null)return null;let t=String(e).trim();return t||null}function tc(e){if(e==null)return null;if(typeof e==\"string\"){let n=e.trim();return n?{src:n,intensity:1}:null}if(!lt(e))return null;let t=e.src;return typeof t!=\"string\"||t.trim()===\"\"?null:{src:t.trim(),intensity:Ko(e.intensity,1)}}function nc(e){if(typeof e==\"string\"){let t=e.trim();if(!t)return null;if(t.startsWith(\"{\"))try{let n=JSON.parse(t);return lt(n)?n:null}catch{return null}return{preset:t,intensity:1}}return lt(e)?e:null}function ic(e,t){let n=e.trim().match(Ju);if(!n)return e;let i=n[1]??n[2]??\"\";return i&&Object.hasOwn(t,i)?t[i]:e}function Li(e,t){if(typeof e==\"string\"){let i=ic(e,t);if(i!==e)return i;let r=e.trim();if(!r.startsWith(\"{\"))return e;try{return Li(JSON.parse(r),t)}catch{return e}}if(!lt(e))return e;let n={};for(let[i,r]of Object.entries(e))n[i]=Li(r,t);return n}function rc(e){return e?Ku.get(e)??null:null}function Ri(e){let t=nc(e);if(!t||t.enabled===!1)return null;let n=ec(t.preset),i=rc(n),r=i?.adjust??Cn,o=i?.details??_n,a=i?.effects??Fn,u=lt(t.adjust)?t.adjust:{},s=lt(t.details)?t.details:{},l=lt(t.effects)?t.effects:{},f=$o.reduce((x,S)=>(x[S]=Ni(u[S]??r[S],Yu[S]),x),{...Cn}),p=$u.reduce((x,S)=>(x[S]=Ni(s[S]??o[S],Xu[S]),x),{..._n}),d=qo.reduce((x,S)=>(x[S]=Ni(l[S]??a[S],Qu[S]),x),{...Fn});return{enabled:!0,preset:n,intensity:Ko(t.intensity,1),adjust:f,details:p,effects:d,lut:tc(t.lut),colorSpace:typeof t.colorSpace==\"string\"&&t.colorSpace.trim()?t.colorSpace.trim():ju}}function Jo(e,t){return Ri(Li(e,t))}function Ht(e){return!e?.enabled||e.intensity===0?!1:e.lut&&e.lut.intensity!==0?!0:$o.some(t=>Math.abs(e.adjust[t])>1e-4)||Math.abs(e.details.vignette)>1e-4||Math.abs(e.details.grain)>1e-4||qo.some(t=>Math.abs(e.effects[t])>1e-4)}var oc=[\"[data-hyperframes-ignore]\",\"[data-hyperframes-picker-ignore]\",\"[data-hf-ignore]\",\"[data-no-inspect]\",\"[data-no-pick]\",\"[data-hyper-shader-loading]\"].join(\",\"),sc=[\"[data-hyperframes-picker-block]\",\"[data-hyper-shader-loading]\"].join(\",\");function Yo(e){let t=!1,n=null,i=null,r=null,o=null;function a(w,C){try{window.dispatchEvent(new CustomEvent(w,{detail:C}))}catch(F){T(\"runtime.picker.site1\",F)}}function u(w){r=w,a(\"hyperframe:picker:hovered\",{elementInfo:r,isPickMode:t,timestamp:Date.now()})}function s(w){o=w,a(\"hyperframe:picker:selected\",{elementInfo:o,isPickMode:t,timestamp:Date.now()})}function l(w){let C=w.ownerDocument.defaultView;if(!C)return!1;let F=w;for(;F&&F!==document.body&&F!==document.documentElement;){let L=C.getComputedStyle(F);if(L.display===\"none\"||L.visibility===\"hidden\"||L.pointerEvents===\"none\")return!0;let R=Number.parseFloat(L.opacity);if(Number.isFinite(R)&&R<=.01&&!F.hasAttribute(Bt))return!0;F=F.parentElement}return!1}function f(w){if(!w||w===document.body||w===document.documentElement)return!1;let C=w.tagName.toLowerCase();return!(C===\"script\"||C===\"style\"||C===\"link\"||C===\"meta\"||w.classList.contains(\"__hf-pick-highlight\")||w.closest(oc)||l(w))}function p(w){return!!w?.closest(sc)}function d(w){let C=w;if(C.id)return`#${CSS.escape(C.id)}`;let F=w.getAttribute(\"data-composition-id\");if(F)return`[data-composition-id=\"${CSS.escape(F)}\"]`;let L=w.getAttribute(\"data-composition-src\");if(L)return`[data-composition-src=\"${CSS.escape(L)}\"]`;let R=w.getAttribute(\"data-track-index\");if(R)return`[data-track-index=\"${CSS.escape(R)}\"]`;let z=w.tagName.toLowerCase(),P=w.parentElement;if(!P)return z;let X=P.querySelectorAll(`:scope > ${z}`);if(X.length===1)return z;for(let I=0;I<X.length;I+=1)if(X[I]===w)return`${z}:nth-of-type(${I+1})`;return z}function x(w){let C=w.tagName.toLowerCase(),F=(w.textContent??\"\").trim().replace(/\\s+/g,\" \"),L=(R,z)=>R.length>z?`${R.slice(0,z-1)}\\u2026`:R;return C===\"h1\"||C===\"h2\"||C===\"h3\"?\"Heading\":C===\"p\"||C===\"span\"||C===\"div\"?F.length>0?L(F,56):\"Text\":C===\"img\"?\"Image\":C===\"video\"?\"Video\":C===\"audio\"?\"Audio\":C===\"svg\"?\"Shape\":w.getAttribute(\"data-composition-src\")?\"Composition\":C===\"section\"?\"Section\":`${C.charAt(0).toUpperCase()}${C.slice(1)}`}function S(w,C,F){let L=typeof F==\"number\"&&F>0?F:8,R=[];if(document.elementsFromPoint)R=document.elementsFromPoint(w,C);else if(document.elementFromPoint){let X=document.elementFromPoint(w,C);R=X?[X]:[]}if(p(R[0]??null))return[];let z={},P=[];for(let[X,I]of R.entries()){if(!f(I))continue;let ie=`${I.tagName}::${I.id||\"\"}::${X}`;if(!z[ie]&&(z[ie]=!0,P.push(I),P.length>=L))break}return P}function y(w){let C=w.getBoundingClientRect(),F={};for(let R of Array.from(w.attributes))R.name.startsWith(\"data-\")&&(F[R.name]=R.value);return{id:w.id||null,tagName:w.tagName.toLowerCase(),selector:d(w),label:x(w),boundingBox:{x:C.left,y:C.top,width:C.width,height:C.height},textContent:w.textContent?w.textContent.trim().slice(0,200):null,src:w.getAttribute(\"src\")||w.getAttribute(\"data-composition-src\")||null,dataAttributes:F}}function b(w,C,F){return S(w,C,F).map(y)}function A(w){if(!t)return;let F=S(w.clientX,w.clientY,1)[0]??(w.target instanceof Element?w.target:null);if(!f(F)||n===F)return;n&&n.classList.remove(\"__hf-pick-highlight\"),n=F,F.classList.add(\"__hf-pick-highlight\");let L=y(F);u(L),e.postMessage({source:\"hf-preview\",type:\"element-hovered\",elementInfo:L})}function _(w){if(!t)return;w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation();let C=b(w.clientX,w.clientY,8);C.length!==0&&(u(C[0]??null),e.postMessage({source:\"hf-preview\",type:\"element-pick-candidates\",candidates:C,selectedIndex:0,point:{x:w.clientX,y:w.clientY}}))}function M(w){w.key===\"Escape\"&&(k(),e.postMessage({source:\"hf-preview\",type:\"pick-mode-cancelled\"}))}function H(){t||(t=!0,i=document.createElement(\"style\"),i.textContent=[\".__hf-pick-highlight { outline: 2px solid #4f8cf7 !important; outline-offset: 2px; cursor: crosshair !important; }\",\".__hf-pick-active * { cursor: crosshair !important; }\"].join(`\n`),document.head.appendChild(i),document.body.classList.add(\"__hf-pick-active\"),document.addEventListener(\"mousemove\",A,!0),document.addEventListener(\"click\",_,!0),document.addEventListener(\"keydown\",M,!0),a(\"hyperframe:picker:mode\",{isPickMode:!0,timestamp:Date.now()}))}function k(){t&&(t=!1,n&&(n.classList.remove(\"__hf-pick-highlight\"),n=null),i&&(i.remove(),i=null),document.body.classList.remove(\"__hf-pick-active\"),document.removeEventListener(\"mousemove\",A,!0),document.removeEventListener(\"click\",_,!0),document.removeEventListener(\"keydown\",M,!0),a(\"hyperframe:picker:mode\",{isPickMode:!1,timestamp:Date.now()}))}function v(){window.__HF_PICKER_API={enable:H,disable:k,isActive:()=>t,getHovered:()=>r,getSelected:()=>o,getCandidatesAtPoint:(w,C,F)=>Number.isFinite(w)&&Number.isFinite(C)?b(w,C,F):[],pickAtPoint:(w,C,F)=>{if(!Number.isFinite(w)||!Number.isFinite(C))return null;let L=b(w,C,8);if(!L.length)return null;let R=Math.max(0,Math.min(L.length-1,Number(F??0))),z=L[R]??null;return z?(s(z),e.postMessage({source:\"hf-preview\",type:\"element-picked\",elementInfo:z}),k(),z):null},pickManyAtPoint:(w,C,F)=>{if(!Number.isFinite(w)||!Number.isFinite(C))return[];let L=b(w,C,8);if(!L.length)return[];let R=[],z=Array.isArray(F)?F:[0];for(let P of z){let X=Math.max(0,Math.min(L.length-1,Math.floor(Number(P)))),I=L[X];if(!I)continue;R.some(Fe=>Fe.selector===I.selector&&Fe.tagName===I.tagName)||R.push(I)}return R.length?(s(R[0]??null),e.postMessage({source:\"hf-preview\",type:\"element-picked-many\",elementInfos:R}),k(),R):[]}},a(\"hyperframe:picker:api-ready\",{hasApi:!0,timestamp:Date.now()})}return{enablePickMode:H,disablePickMode:k,installPickerApi:v}}var ac=[\"width\",\"height\",\"top\",\"left\",\"right\",\"bottom\",\"inset\",\"object-fit\",\"object-position\",\"z-index\",\"opacity\",\"visibility\",\"filter\",\"mix-blend-mode\",\"backdrop-filter\",\"border-radius\",\"overflow\",\"clip-path\",\"mask\",\"mask-image\",\"mask-size\",\"mask-position\",\"mask-repeat\",\"transform\",\"transform-origin\",\"translate\",\"rotate\",\"scale\",\"box-sizing\"];function ht(e,t){let n=Number.isFinite(t)&&t>0?t:30,i=Number.isFinite(e)&&e>0?e:0;return Math.floor(i*n+1e-9)/n}function Xo(e,t,n=ac){for(let i of n){let r=t.getPropertyValue(i);r&&e.setProperty(i,r)}}function Gt(e,t,n){let i=e?.[t];return typeof i==\"function\"?Number(i.call(e))||n:typeof i==\"number\"&&Number.isFinite(i)?i:(i!=null&&T(\"runtime.player.nonConformantNum\",{prop:t,actual:typeof i}),n)}function Re(e,t){let n=e?.[t];if(typeof n==\"function\"){n.call(e);return}n!==void 0&&T(\"runtime.player.nonConformantVoid\",{method:t,actual:typeof n})}function Ut(e,t,n){if(e){for(let i of Object.values(e))if(!(!i||i===t))try{n(i)}catch(r){T(\"runtime.player.site1\",r)}}}function Qo(e,t,n,i){let r=ht(t,n),o=i?.suppressEvents===!0;return Re(e,\"pause\"),typeof e.totalTime==\"function\"?e.totalTime(r,o):typeof e.seek==\"function\"&&e.seek(r,o),r}function lc(e,t,n,i,r){let o=[];Ut(e,t,a=>{Re(a,\"play\"),o.push(a)});try{return Qo(t,n,i,r)}finally{for(let a of o)try{Re(a,\"pause\")}catch(u){T(\"runtime.player.site2\",u)}}}function uc(e,t){Ut(e,t,n=>{Re(n,\"play\")})}function Zo(e){let t=e.transport;return t?{_timeline:null,play:()=>t.play(),pause:()=>t.pause(),seek:(n,i)=>t.seek(n,i),renderSeek:(n,i)=>t.renderSeek(n,i),getTime:()=>t.getTime(),getDuration:()=>t.getDuration(),isPlaying:()=>t.isPlaying(),setPlaybackRate:n=>t.setPlaybackRate(n),getPlaybackRate:()=>t.getPlaybackRate()}:{_timeline:null,play:()=>{let n=e.getTimeline();if(!n||e.getIsPlaying())return;let i=Math.max(0,Number(e.getSafeDuration?.()??Gt(n,\"duration\",0))||0);i>0&&Math.max(0,Gt(n,\"time\",0))>=i&&(Re(n,\"pause\"),typeof n.seek==\"function\"&&n.seek(0,!1),e.onDeterministicSeek(0),e.setIsPlaying(!1),e.onSyncMedia(0,!1),e.onRenderFrameSeek(0)),typeof n.timeScale==\"function\"&&n.timeScale(e.getPlaybackRate()),Re(n,\"play\"),Ut(e.getTimelineRegistry?.(),n,r=>{typeof r.timeScale==\"function\"&&r.timeScale(e.getPlaybackRate()),Re(r,\"play\")}),e.onDeterministicPlay(),e.setIsPlaying(!0),e.onShowNativeVideos(),e.onStatePost(!0)},pause:()=>{let n=e.getTimeline();if(!n)return;Re(n,\"pause\"),Ut(e.getTimelineRegistry?.(),n,r=>{Re(r,\"pause\")});let i=Math.max(0,Gt(n,\"time\",0));e.onDeterministicSeek(i),e.onDeterministicPause(),e.setIsPlaying(!1),e.onSyncMedia(i,!1),e.onRenderFrameSeek(i),e.onStatePost(!0)},seek:(n,i)=>{let r=e.getTimeline();if(!r)return;let o=Math.max(0,Number(n)||0),a=e.getIsPlaying(),u=lc(e.getTimelineRegistry?.(),r,o,e.getCanonicalFps());e.onDeterministicSeek(u),i?.keepPlaying&&a?(typeof r.timeScale==\"function\"&&r.timeScale(e.getPlaybackRate()),Re(r,\"play\"),Ut(e.getTimelineRegistry?.(),r,s=>{typeof s.timeScale==\"function\"&&s.timeScale(e.getPlaybackRate()),Re(s,\"play\")}),e.onDeterministicPlay(),e.onShowNativeVideos(),e.onSyncMedia(u,!0)):(e.setIsPlaying(!1),e.onSyncMedia(u,!1)),e.onRenderFrameSeek(u),e.onStatePost(!0)},renderSeek:(n,i)=>{let r=e.getTimeline(),o=e.getCanonicalFps(),a=r?(uc(e.getTimelineRegistry?.(),r),Qo(r,n,o,i)):ht(Math.max(0,Number(n)||0),o);e.onDeterministicSeek(a,i),e.setIsPlaying(!1),e.onSyncMedia(a,!1),e.onRenderFrameSeek(a),e.onStatePost(!0)},getTime:()=>Gt(e.getTimeline(),\"time\",0),getDuration:()=>Gt(e.getTimeline(),\"duration\",0),isPlaying:()=>e.getIsPlaying(),setPlaybackRate:n=>e.setPlaybackRate(n),getPlaybackRate:()=>e.getPlaybackRate()}}function es(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var cc=new Set([\"SCRIPT\",\"STYLE\",\"LINK\",\"META\",\"TEMPLATE\",\"NOSCRIPT\"]);function Di(e){return e.id||e.getAttribute(\"data-hf-id\")||null}function ki(e){if(e==null)return null;let t=Number(e);return Number.isFinite(t)?t:null}function dc(e,t){let n=e.getAttribute(\"data-composition-id\");if(!n)return null;let i=Number(t[n]?.duration?.());return Number.isFinite(i)&&i>0?i:null}function fc(e){if(!(e instanceof HTMLMediaElement)||!Number.isFinite(e.duration))return null;let t=ki(e.getAttribute(\"data-playback-start\"))??ki(e.getAttribute(\"data-media-start\"))??0;return e.duration>t?e.duration-t:null}function mc(e,t,n,i){let r=ki(e.getAttribute(\"data-duration\"));return r!=null&&r>0?r:dc(e,t)??fc(e)??Math.max(0,n-i)}function pc(e){for(let[t,n]of e){let i=t.parentElement;for(;i;){let r=e.get(i);if(r){n.parentId=r.id,r.children.push(n);break}i=i.parentElement}}}function ts(e){let{startResolver:t,timelineRegistry:n,rootDuration:i}=e,r=new Map,o=document.querySelector(\"[data-composition-id]\"),a=0;for(let u of document.querySelectorAll(\"[data-start]\")){if(u===o||cc.has(u.tagName))continue;let s=t.resolveStartForElement(u,0);if(mc(u,n,i,s)<=0)continue;let l={id:Di(u)??`__clip-${a++}`,element:u,parentId:null,children:[]};r.set(u,l)}return pc(r),{roots:Array.from(r.values()).filter(u=>u.parentId===null)}}var Ii=\"css:root\",ns=[\"backdrop-filter\",\"clip-path\",\"filter\",\"mask\",\"mask-border-source\",\"mask-image\",\"perspective\",\"rotate\",\"scale\",\"transform\",\"translate\",\"-webkit-mask-image\"],hc=new Set([...ns,\"contain\",\"isolation\",\"mask-border\",\"mix-blend-mode\",\"opacity\"]),gc=new Set([\"absolute\",\"relative\"]),xc=new Set([\"flex\",\"inline-flex\",\"grid\",\"inline-grid\"]),bc=new Set([\"layout\",\"paint\",\"strict\",\"content\"]),yc=new Set([\"size\",\"inline-size\"]);function Sc(e){return e.position===\"fixed\"||e.position===\"sticky\"}function Ec(e,t){if(t.zIndex===\"auto\"||t.zIndex===\"\")return!1;if(gc.has(t.position))return!0;let n=e.parentElement?e.ownerDocument.defaultView?.getComputedStyle(e.parentElement).display:null;return n!=null&&xc.has(n)}function Ac(e){let t=Number.parseFloat(e.opacity);if(Number.isFinite(t)&&t<1||e.getPropertyValue(\"isolation\")===\"isolate\")return!0;let n=e.getPropertyValue(\"mix-blend-mode\");return n&&n!==\"normal\"?!0:ns.some(i=>{let r=e.getPropertyValue(i);return r!==\"\"&&r!==\"none\"})}function wc(e){return e.getPropertyValue(\"contain\").split(/\\s+/).some(n=>bc.has(n))?!0:yc.has(e.getPropertyValue(\"container-type\"))}function Cc(e){return e.getPropertyValue(\"will-change\").split(\",\").map(t=>t.trim()).some(t=>hc.has(t))}function _c(e,t){return Sc(t)||Ec(e,t)||Ac(t)||wc(t)?!0:Cc(t)}function Fc(e){let t=[],n=e;for(;n?.parentElement;)t.push(Array.prototype.indexOf.call(n.parentElement.children,n)),n=n.parentElement;return`css:${t.reverse().join(\".\")}`}function vn(e){let t=e.ownerDocument.defaultView;if(!t)return Ii;let n=e.parentElement;for(;n&&n!==e.ownerDocument.documentElement;){try{if(_c(n,t.getComputedStyle(n)))return Fc(n)}catch{return Ii}n=n.parentElement}return Ii}var gt=Object.freeze({start:\"data-start\",duration:\"data-duration\",trackIndex:\"data-track-index\",derivedEnd:\"data-end\",legacyTrack:\"data-layer\"}),Xh=Object.freeze([gt.start,gt.duration,gt.trackIndex]),Qh=Object.freeze([gt.derivedEnd]),Zh=Object.freeze([gt.derivedEnd,gt.legacyTrack]);function Ve(e){if(e==null||e.trim()===\"\")return null;let t=Number(e);return Number.isFinite(t)?t:null}var rs=/^[A-Za-z0-9_.:-]+$/;function os(e,t){let n=e.charCodeAt(t);return n>=48&&n<=57}function is(e,t){let n=t;for(;n>=0&&os(e,n);)n--;return n}function Tc(e,t){let n=t;for(;n>=0&&(e[n]??\"\").trim()===\"\";)n--;return n}function vc(e){let t=e.length-1;if(!os(e,t))return null;let n=is(e,t);return e[n]===\".\"&&(n=is(e,n-1)),n+1}function Mc(e){let t=vc(e);if(t==null)return null;let n=Tc(e,t-1),i=e[n];if(i!==\"+\"&&i!==\"-\")return null;let r=e.slice(0,n).trim();if(!rs.test(r))return null;let o=Number(e.slice(t));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function Pi(e){let t=(e??\"\").trim();if(!t)return null;let n=Ve(t);if(n!=null)return{kind:\"absolute\",value:n};if(rs.test(t))return{kind:\"reference\",refId:t,offset:0};let i=Mc(t);return i?{kind:\"reference\",refId:i.refId,offset:i.operator===\"-\"?-i.magnitude:i.magnitude}:null}var Nc=\"data-hf-authored-duration\",Lc=\"data-hf-authored-end\";function Rc(e){return Ve(e.getAttribute(\"data-duration\"))}function kc(e){return Ve(e.getAttribute(\"data-end\"))}function Dc(e){return Ve(e.getAttribute(Nc))}function Ic(e){return Ve(e.getAttribute(Lc))}function Je(e){let t=e.timelineRegistry??{},n=e.includeAuthoredTimingAttrs??!1,i=e.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,u=d=>{let x=i.getElementById(d);return x||(i.querySelector(`[data-composition-id=\"${CSS.escape(d)}\"]`)??null)},s=d=>{let x=d.ownerDocument.defaultView?.HTMLMediaElement;return x?d instanceof x:typeof HTMLMediaElement<\"u\"&&d instanceof HTMLMediaElement},l=d=>{let x=o.get(d);if(x!==void 0)return x;let S=null,y=Rc(d)??(n?Dc(d):null);if(y!=null&&y>0&&(S=y),S==null||S<=0){let b=kc(d)??(n?Ic(d):null);if(b!=null){let A=p(d,0),_=b-A;Number.isFinite(_)&&_>0&&(S=_)}}if((S==null||S<=0)&&s(d)){let b=Ve(d.getAttribute(\"data-playback-start\"))??Ve(d.getAttribute(\"data-media-start\"))??0;Number.isFinite(d.duration)&&d.duration>b&&(S=(d.duration-b)/Pt(d))}if(S==null||S<=0){let b=d.getAttribute(\"data-composition-id\");if(b){let A=t[b]??null;if(A&&typeof A.duration==\"function\")try{let _=Number(A.duration());Number.isFinite(_)&&_>0&&(S=_)}catch(_){T(\"runtime.startResolver.site1\",_)}}}return S!=null&&Number.isFinite(S)&&S>0?(o.set(d,S),S):(o.set(d,null),null)},f=(d,x)=>{if(d.hasAttribute(\"data-composition-id\")){let y=d.parentElement?.closest(\"[data-composition-id]\");return y?p(y,x):0}let S=d.closest(\"[data-composition-id]\");return S?p(S,x):0},p=(d,x)=>{let S=r.get(d);if(S!==void 0)return S??x;if(a.has(d))return x;a.add(d);try{let y=Pi(d.getAttribute(\"data-start\"));if(!y){if(d.hasAttribute(\"data-composition-id\")){let H=d.parentElement;if(H&&(H.hasAttribute(\"data-composition-src\")||H.hasAttribute(\"data-composition-id\")||H.hasAttribute(\"data-composition-file\"))){let k=p(H,x);return r.set(d,k),k}}return r.set(d,x),x}if(y.kind===\"absolute\"){let H=Math.max(0,y.value),k=Math.max(0,f(d,x)+H);return r.set(d,k),k}let b=u(y.refId);if(!b)return r.set(d,x),x;let A=p(b,0),_=l(b);if(_==null||_<=0){let H=Math.max(0,A+y.offset);return r.set(d,H),H}let M=Math.max(0,A+_+y.offset);return r.set(d,M),M}finally{a.delete(d)}};return{resolveStartForElement:(d,x=0)=>p(d,Math.max(0,x)),resolveDurationForElement:d=>l(d)}}function Oi(e){let t=e.trim().toLowerCase();return!(!t||t===\"main\"||t.includes(\"caption\")||t.includes(\"ambient\"))}var Oc=\"data-hf-authored-duration\",Bc=\"data-hf-authored-end\";function Ee(e){if(e==null||e===\"\")return null;let t=Number(e);return Number.isFinite(t)?t:null}function Bi(e){return Ee(e.getAttribute(\"data-duration\"))??Ee(e.getAttribute(Oc))}function ss(e){return Ee(e.getAttribute(\"data-end\"))??Ee(e.getAttribute(Bc))}function Hi(e){try{let t=e.style?.zIndex;if(t&&t!==\"auto\"){let n=parseInt(t,10);if(Number.isFinite(n))return n}return 0}catch{return 0}}function Gi(...e){let t=e.filter(n=>Number.isFinite(n??null));return t.length===0?null:Math.max(...t)}function Ui(e,t){let n=e.getAttribute(\"data-track-index\")??e.getAttribute(\"data-track\");if(n==null)return t;let i=Number.parseInt(n,10);return Number.isFinite(i)?i:t}function Vt(e){let t=String(e??\"\").trim();if(!t)return null;let n=t.toLowerCase();if(n.startsWith(\"data:\")||n.startsWith(\"javascript:\"))return null;try{return new URL(t,document.baseURI).toString()}catch{return t}}function as(e){let t=e.getAttribute(\"src\")??e.getAttribute(\"data-src\");if(t)return Vt(t);let n=e.getAttribute(\"data-composition-src\");if(n)return Vt(n);let i=e.querySelector(\"img[src], video[src], audio[src], source[src]\");return i?Vt(i.getAttribute(\"src\")):null}function Hc(e){let t=e.className;return typeof t!=\"string\"?null:t.split(/\\s+/).map(n=>n.trim()).find(n=>n&&n!==\"clip\"&&!n.startsWith(\"__hf-\"))??null}function Gc(e){if(!e)return null;try{return new URL(e,document.baseURI).pathname.split(\"/\").filter(Boolean).at(-1)??null}catch{return e.split(/[\\\\/]/).filter(Boolean).at(-1)??null}}function Uc(e){let t=e.textContent?.replace(/\\s+/g,\" \").trim();return t?t.length>32?`${t.slice(0,31)}...`:t:null}function Wt(e){let t=e.replace(/\\.[^.]+$/i,\"\").replace(/[-_]+/g,\" \").replace(/\\s+/g,\" \").trim();return t?t.replace(/\\b\\w/g,n=>n.toUpperCase()):e}function Wc(e,t,n){let i=e.getAttribute(\"data-timeline-label\")??e.getAttribute(\"data-label\")??e.getAttribute(\"aria-label\")??null;if(i?.trim())return i.trim();let r=e.getAttribute(\"data-composition-id\");if(r)return Wt(r);let o=e.id;if(o)return Wt(o);let a=Hc(e);if(a)return Wt(a);let u=Gc(as(e));if(u)return Wt(u);let s=Uc(e);return s||`${Wt(t)} ${n+1}`}function ls(e){let n=window.__timelines??{},i=Je({timelineRegistry:n,includeAuthoredTimingAttrs:!0}),r=G=>{if(!G)return null;let D=n[G]??null;if(!D||typeof D.duration!=\"function\")return null;try{let U=Number(D.duration());return Number.isFinite(U)&&U>0?U:null}catch{return null}},o=G=>{let D=Ee(G.getAttribute(\"data-duration\"));if(D!=null&&D>0)return D;let U=Ee(G.getAttribute(\"data-playback-start\"))??Ee(G.getAttribute(\"data-media-start\"))??0;return Number.isFinite(G.duration)&&G.duration>U?Math.max(0,(G.duration-U)/Pt(G)):null},a=()=>{let G=Array.from(document.querySelectorAll(\"video[data-start], audio[data-start]\"));if(G.length===0)return null;let D=0;for(let U of G){let le=U.hasAttribute(\"data-hf-auto-start\")?i.resolveStartForElement(U,0):Math.max(0,Number(U.getAttribute(\"data-start\")??0)||0);if(!Number.isFinite(le))continue;let oe=o(U);oe==null||oe<=0||(D=Math.max(D,Math.max(0,le)+oe))}return D>0?D:null},u=(G,D)=>{let U=[],le=null,oe=null,W=null,$=G.parentElement;for(;$;){let K=$.getAttribute(\"data-composition-id\");K&&(U.push(K),!W&&$!==D&&(W=K),le==null&&(le=i.resolveStartForElement($,0)),oe==null&&(oe=Ee($.getAttribute(\"data-duration\"))??r(K)??null)),$=$.parentElement}return{parentCompositionId:W,compositionAncestors:U.reverse(),inheritedStart:le,inheritedDuration:oe}},s=document.querySelector(\"[data-composition-id]\"),l=Array.from(document.querySelectorAll(\"[data-composition-id]\")),f=s?.getAttribute(\"data-composition-id\")??null,p=s?i.resolveStartForElement(s,0):0,d=a(),x=d!=null?Math.max(0,d-Math.max(0,p)):null,S=r(f),y=Bi(s??document.body),b=Gi(...l.filter(G=>G!==s).map(G=>{let D=i.resolveStartForElement(G,0),U=i.resolveDurationForElement(G)??r(G.getAttribute(\"data-composition-id\"))??null;return!Number.isFinite(D)||U==null||U<=0?null:Math.max(0,D)+U})),A=b!=null?Math.max(0,b-Math.max(0,p)):null,_=typeof S==\"number\"&&Number.isFinite(S)&&S>0?S:null,M=typeof y==\"number\"&&Number.isFinite(y)&&y>0?y:null,H=typeof x==\"number\"&&Number.isFinite(x)&&x>0?x:null,k=typeof A==\"number\"&&Number.isFinite(A)&&A>0?A:null,v=Gi(H,k),w=_!=null&&v!=null&&_>v+1,F=M??(w?v:Gi(_,H,k))??null,R=(F!=null?p+F:null)??(typeof d==\"number\"&&Number.isFinite(d)&&d>0?d:null),z=(G,D)=>!Number.isFinite(D)||D<=0?0:R==null||!Number.isFinite(R)?D:!Number.isFinite(G)||G>=R?0:Math.max(0,Math.min(D,R-G)),P=[],X=[],I=Array.from(document.querySelectorAll(\"[data-start], [data-track-index], [data-composition-id], video, audio, img\")),ie=0;for(let[G,D]of I.entries()){if(D===s||[\"SCRIPT\",\"STYLE\",\"LINK\",\"META\",\"TEMPLATE\",\"NOSCRIPT\"].includes(D.tagName))continue;let U=u(D,s),le=i.resolveStartForElement(D,U.inheritedStart??0),oe=D.getAttribute(\"data-composition-id\"),W=Bi(D);if((W==null||W<=0)&&oe&&oe!==f&&(W=r(oe)),(W==null||W<=0)&&D instanceof HTMLMediaElement){let Ce=Ee(D.getAttribute(\"data-playback-start\"))??Ee(D.getAttribute(\"data-media-start\"))??0;Number.isFinite(D.duration)&&D.duration>0&&(W=Math.max(0,D.duration-Ce))}if(W==null||W<=0){let Ce=U.inheritedDuration;if(Ce!=null&&Ce>0){let Ge=(U.inheritedStart??0)+Ce;W=Math.max(0,Ge-le)}}if(W==null||W<=0||(W=z(le,W),W<=0))continue;let $=le+W;ie=Math.max(ie,$);let K=D.tagName.toLowerCase(),we=oe&&oe!==f?\"composition\":K===\"video\"?\"video\":K===\"audio\"?\"audio\":K===\"img\"?\"image\":\"element\";P.push({id:Di(D)??oe??null,label:Wc(D,we,P.length),start:le,duration:W,track:Ui(D,G),zIndex:Hi(D),stackingContextId:vn(D),kind:we,tagName:K,compositionId:D.getAttribute(\"data-composition-id\"),compositionAncestors:U.compositionAncestors,parentCompositionId:U.parentCompositionId,nodePath:null,compositionSrc:Vt(D.getAttribute(\"data-composition-src\")),assetUrl:as(D),timelineRole:D.getAttribute(\"data-timeline-role\"),timelineLabel:D.getAttribute(\"data-timeline-label\"),timelineGroup:D.getAttribute(\"data-timeline-group\"),timelinePriority:Ee(D.getAttribute(\"data-timeline-priority\"))})}let Fe=new Set(P.map(G=>G.id)),j=s?.getAttribute(\"data-composition-id\")??null,Y=j?n[j]??null:null;if(Y&&s){let G=Y;if(typeof G.getChildren==\"function\")try{let D=G.getChildren(!0,!0,!1)??[],U=new Map;for(let W of s.children){let $=W;if(!$.id)continue;let K=$.tagName.toLowerCase();K===\"script\"||K===\"style\"||K===\"link\"||U.set($,{id:$.id,start:1/0,end:-1/0})}let le=W=>{let $=W;for(;$;){if(U.has($))return $;if($===s)return null;$=$.parentElement}return null};for(let W of D){if(typeof W.targets!=\"function\"||typeof W.startTime!=\"function\"||typeof W.duration!=\"function\")continue;let $=W.startTime(),K=W.parent;for(;K&&K!==Y&&typeof K.startTime==\"function\";)$+=K.startTime(),K=K.parent;let we=$+W.duration();if(!(!Number.isFinite($)||!Number.isFinite(we)))for(let Ce of W.targets()){if(!(Ce instanceof Element))continue;let Ft=le(Ce);if(!Ft)continue;let Ge=U.get(Ft);Ge&&(Ge.start=Math.min(Ge.start,$),Ge.end=Math.max(Ge.end,we))}}let oe=P.length>0?Math.max(...P.map(W=>W.track))+1:0;for(let[W,$]of U){if($.start===1/0||$.end===-1/0)continue;let K=W;if(Fe.has(K.id))continue;let we=Math.max(0,$.end-$.start);if(we<=0)continue;let Ce=z($.start,we);Ce<=0||(ie=Math.max(ie,$.start+Ce),P.push({id:K.id,label:K.getAttribute(\"data-timeline-label\")??K.getAttribute(\"data-label\")??K.getAttribute(\"aria-label\")??K.id,start:$.start,duration:Ce,track:Ui(K,oe),zIndex:Hi(K),stackingContextId:vn(K),kind:\"element\",tagName:K.tagName.toLowerCase(),compositionId:K.getAttribute(\"data-composition-id\"),compositionAncestors:j?[j]:[],parentCompositionId:j,nodePath:null,compositionSrc:null,assetUrl:null,timelineRole:K.getAttribute(\"data-timeline-role\"),timelineLabel:K.getAttribute(\"data-timeline-label\"),timelineGroup:K.getAttribute(\"data-timeline-group\"),timelinePriority:Ee(K.getAttribute(\"data-timeline-priority\"))}),Fe.add(K.id))}}catch(D){T(\"runtime.timeline.site1\",D)}}if(s&&F!=null&&F>0){let G=P.length>0?Math.max(...P.map(D=>D.track))+1:0;for(let D of s.children){let U=D;if(!U.id||Fe.has(U.id))continue;let le=U.getAttribute(\"data-timeline-role\");if(le!==\"overlay\"&&le!==\"persistent-overlay\")continue;let oe=U.tagName.toLowerCase();if(oe===\"script\"||oe===\"style\"||oe===\"link\"||oe===\"meta\"||window.getComputedStyle(U).display===\"none\")continue;let $=z(0,F);$<=0||(ie=Math.max(ie,$),P.push({id:U.id,label:U.getAttribute(\"data-timeline-label\")??U.getAttribute(\"data-label\")??U.getAttribute(\"aria-label\")??U.id,start:0,duration:$,track:Ui(U,G),zIndex:Hi(U),stackingContextId:vn(U),kind:\"element\",tagName:oe,compositionId:U.getAttribute(\"data-composition-id\"),compositionAncestors:j?[j]:[],parentCompositionId:j,nodePath:null,compositionSrc:null,assetUrl:null,timelineRole:le,timelineLabel:U.getAttribute(\"data-timeline-label\"),timelineGroup:U.getAttribute(\"data-timeline-group\"),timelinePriority:Ee(U.getAttribute(\"data-timeline-priority\"))}),Fe.add(U.id))}}for(let G of l){if(G===s)continue;let D=G.getAttribute(\"data-composition-id\");if(!D||!Oi(D))continue;let U=i.resolveStartForElement(G,0),le=Bi(G);if((le==null||le<=0)&&ss(G)!=null){let K=ss(G);le=Math.max(0,K-U)}let oe=r(D),W=le&&le>0?le:oe;if(W==null||W<=0)continue;let $=z(U,W);$<=0||X.push({id:D,label:G.getAttribute(\"data-label\")??D,start:U,duration:$,thumbnailUrl:Vt(G.getAttribute(\"data-thumbnail-url\")),avatarName:null})}let O=Math.max(1,ie||1,F??0),V=w&&M==null,Ae=V?Number.POSITIVE_INFINITY:Math.max(1,Math.ceil(O*Math.max(1,e.canonicalFps)));return{...yn(e.canonicalFps),source:\"hf-preview\",type:\"timeline\",compositionContractVersion:1,durationSeconds:V?Number.POSITIVE_INFINITY:O,durationInFrames:Ae,clips:P,scenes:X,compositionWidth:Ee(s?.getAttribute(\"data-width\"))??1920,compositionHeight:Ee(s?.getAttribute(\"data-height\"))??1080}}var ue=wu(ka(),1),Da=ue.default,mg=ue.default.stringify,pg=ue.default.fromJSON,hg=ue.default.plugin,gg=ue.default.parse,xg=ue.default.list,bg=ue.default.document,yg=ue.default.comment,Sg=ue.default.atRule,Eg=ue.default.rule,Ag=ue.default.decl,wg=ue.default.root,Cg=ue.default.CssSyntaxError,_g=ue.default.Declaration,Fg=ue.default.Container,Tg=ue.default.Processor,vg=ue.default.Document,Mg=ue.default.Comment,Ng=ue.default.Warning,Lg=ue.default.AtRule,Rg=ue.default.Result,kg=ue.default.Input,Dg=ue.default.Rule,Ig=ue.default.Root,Pg=ue.default.Node;var mr=\"data-hf-authored-id\",Ia=\"data-hf-inner-root\";function pr(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}function hr(e){return e.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"')}function df(e){return e&&e.replace(/[^a-zA-Z0-9_-]/g,n=>`\\\\${n}`).replace(/^-?\\d/,n=>`\\\\${n}`)}function Oa(e){let t=e.trim();return t?Array.from(new Set([t,df(t)])).filter(Boolean):[]}function ff(e){return!!e&&/[\\w-]/.test(e)}function mf(e,t,n){let i=Oa(t).sort((u,s)=>s.length-u.length);if(i.length===0)return e;let r=\"\",o=0,a=null;for(let u=0;u<e.length;u+=1){let s=e[u],l=u>0?e[u-1]:\"\";if(a){r+=s,s===a&&l!==\"\\\\\"&&(a=null);continue}if(s==='\"'||s===\"'\"){a=s,r+=s;continue}if(s===\"[\"){o+=1,r+=s;continue}if(s===\"]\"){o=Math.max(0,o-1),r+=s;continue}if(s===\"#\"&&o===0){let f=i.find(p=>e.startsWith(p,u+1));if(f){let p=e[u+1+f.length];if(!ff(p)){r+=n,u+=f.length;continue}}}r+=s}return r}function pf(e,t){let n=t?.trim();return n?mf(e,n,`[${mr}=\"${hr(n)}\"]`):e}function Pa(e){return`${e}:not(:has([${Ia}])), ${e} > [${Ia}]`}function hf(e,t,n,i,r,o){let a=pf(e,i),u=gf(a,t,n),s=u.trim();if(!s||s===\"*\")return e;if(/^(html|body|:root)$/i.test(s))return o?Pa(t):e;let l=new RegExp(`\\\\[\\\\s*data-composition-id\\\\s*=\\\\s*([\"'])${pr(n)}\\\\1\\\\s*\\\\]`,\"g\");if(l.test(s))return s.replace(l,\"\").trim()===\"\"?Pa(t):u.replace(l,t);let f=u.match(/^\\s*/)?.[0]??\"\",p=u.match(/\\s*$/)?.[0]??\"\";if(r){let d=i?`[${mr}=\"${hr(i)}\"]`:null;if(d&&s.startsWith(d)){let x=s.slice(d.length);return`${f}${t}${d}${x}${p}`}}return`${f}${t} ${s}${p}`}function gf(e,t,n){let i=pr(n),r=String.raw`\\[\\s*data-composition-id\\s*=\\s*(?:\"${i}\"|'${i}')\\s*\\]`,o=String.raw`\\s*\\[\\s*data-(?:start|duration)\\s*=\\s*(?:\"[^\"]*\"|'[^']*')\\s*\\]`;return e.replace(new RegExp(`${r}(?:${o})+`,\"g\"),t).replace(new RegExp(`(?:${o})+${r}`,\"g\"),t)}var xf=new Set([\"keyframes\",\"-webkit-keyframes\",\"font-face\"]);function bf(e){return e?.type===\"atrule\"}function yf(e){let t=e.parent;for(;t;){if(bf(t)&&xf.has(t.name.toLowerCase()))return!0;t=t.parent}return!1}function Ba(e,t,n,i,r){let o=t.trim();if(!e||!o)return e;let a=n||`[data-composition-id=\"${hr(o)}\"]`,u=Da.parse(e);return u.walkRules(s=>{yf(s)||(s.selectors=s.selectors.map(l=>hf(l,a,o,i,r?.compoundAuthoredRoot,r?.scopeRootSelectors)))}),u.toResult({map:!1}).css}function Ha(e,t,n=\"[HyperFrames] composition script error:\",i,r=t,o){let a=JSON.stringify(t),u=JSON.stringify(r),s=JSON.stringify(n),l=pr(t),f=JSON.stringify(o?.trim()||null),p=JSON.stringify(i??null),d=JSON.stringify(String.raw`\\[\\s*data-composition-id\\s*=\\s*(?:\"${l}\"|'${l}')\\s*\\]`),x=JSON.stringify(String.raw`\\s*\\[\\s*data-(?:start|duration)\\s*=\\s*(?:\"[^\"]*\"|'[^']*')\\s*\\]`),S=JSON.stringify(Oa(o?.trim()||\"\"));return`(function(){\n var __hfCompId = ${a};\n var __hfTimelineCompId = ${u};\n var __hfErrorLabel = ${s};\n var __hfAuthoredRootId = ${f};\n var __hfAuthoredRootAttr = ${JSON.stringify(mr)};\n var __hfEscapeAttr = function(value) {\n return (value + \"\").replace(/\\\\\\\\/g, \"\\\\\\\\\\\\\\\\\").replace(/\"/g, \"\\\\\\\\\\\\\"\");\n };\n var __hfRootSelector = ${p} || (__hfCompId\n ? '[data-composition-id=\"' + __hfEscapeAttr(__hfCompId) + '\"]'\n : \"\");\n var __hfRoot = null;\n var __hfRootSelectorPattern = ${d};\n var __hfTimingSelectorPattern = ${x};\n var __hfAuthoredRootIdForms = ${S};\n var __hfAuthoredRootSelector = __hfAuthoredRootId\n ? \"[\" + __hfAuthoredRootAttr + '=\"' + __hfEscapeAttr(__hfAuthoredRootId) + '\"]'\n : \"\";\n var __hfIsSelectorNameChar = function(char) {\n return !!char && /[\\\\w-]/.test(char);\n };\n var __hfReplaceAuthoredRootIdSelectors = function(selector) {\n if (!__hfAuthoredRootSelector || !__hfAuthoredRootIdForms.length || typeof selector !== \"string\") {\n return selector;\n }\n var result = \"\";\n var bracketDepth = 0;\n var quote = null;\n for (var index = 0; index < selector.length; index += 1) {\n var char = selector[index];\n var previousChar = index > 0 ? selector[index - 1] : \"\";\n if (quote) {\n result += char;\n if (char === quote && previousChar !== \"\\\\\\\\\") {\n quote = null;\n }\n continue;\n }\n if (char === '\"' || char === \"'\") {\n quote = char;\n result += char;\n continue;\n }\n if (char === \"[\") {\n bracketDepth += 1;\n result += char;\n continue;\n }\n if (char === \"]\") {\n bracketDepth = Math.max(0, bracketDepth - 1);\n result += char;\n continue;\n }\n if (char === \"#\" && bracketDepth === 0) {\n var matchedForm = null;\n for (var formIndex = 0; formIndex < __hfAuthoredRootIdForms.length; formIndex += 1) {\n var form = __hfAuthoredRootIdForms[formIndex];\n if (selector.slice(index + 1, index + 1 + form.length) === form) {\n matchedForm = form;\n break;\n }\n }\n if (matchedForm) {\n var nextChar = selector[index + 1 + matchedForm.length];\n if (!__hfIsSelectorNameChar(nextChar)) {\n result += __hfAuthoredRootSelector;\n index += matchedForm.length;\n continue;\n }\n }\n }\n result += char;\n }\n return result;\n };\n var __hfNormalizeSelector = function(selector) {\n if (!__hfCompId || typeof selector !== \"string\") return selector;\n var normalized = selector\n .replace(new RegExp(__hfRootSelectorPattern + '(?:' + __hfTimingSelectorPattern + ')+', 'g'), __hfRootSelector)\n .replace(new RegExp('(?:' + __hfTimingSelectorPattern + ')+' + __hfRootSelectorPattern, 'g'), __hfRootSelector);\n if (__hfAuthoredRootSelector) {\n normalized = __hfReplaceAuthoredRootIdSelectors(normalized);\n }\n return normalized;\n };\n var __hfFindRoot = function() {\n if (!__hfRoot && __hfRootSelector) {\n __hfRoot = window.document.querySelector(__hfRootSelector);\n }\n return __hfRoot;\n };\n var __hfContains = function(node) {\n var root = __hfFindRoot();\n return !root || node === root || root.contains(node);\n };\n var __hfQueryAll = function(selector) {\n var root = __hfFindRoot();\n if (!root || typeof selector !== \"string\") {\n return window.document.querySelectorAll(selector);\n }\n return Array.prototype.filter.call(window.document.querySelectorAll(__hfNormalizeSelector(selector)), function(node) {\n return __hfContains(node);\n });\n };\n var __hfQueryOne = function(selector) {\n var matches = __hfQueryAll(selector);\n return matches[0] || null;\n };\n var __hfGetElementById = function(id) {\n var found = window.document.getElementById(id);\n if (found && __hfContains(found)) return found;\n var root = __hfFindRoot();\n if (!root) return found || null;\n var idValue = id + \"\";\n if (__hfAuthoredRootId && __hfAuthoredRootId === idValue && root.getAttribute && root.getAttribute(__hfAuthoredRootAttr) === idValue) {\n return root;\n }\n if (root.id === idValue) return root;\n if (typeof root.querySelector !== \"function\") return null;\n try {\n var authoredRootMatch = root.querySelector('[' + __hfAuthoredRootAttr + '=\"' + __hfEscapeAttr(idValue) + '\"]');\n if (authoredRootMatch) return authoredRootMatch;\n } catch {}\n if (typeof CSS !== \"undefined\" && CSS && typeof CSS.escape === \"function\") {\n try {\n return root.querySelector(\"#\" + CSS.escape(idValue)) || null;\n } catch {}\n }\n try {\n return root.querySelector('[id=\"' + __hfEscapeAttr(idValue) + '\"]') || null;\n } catch {}\n return null;\n };\n var __hfScopedDocument = typeof Proxy === \"function\"\n ? new Proxy(window.document, {\n get: function(target, prop, receiver) {\n if (prop === \"querySelector\") return __hfQueryOne;\n if (prop === \"querySelectorAll\") return __hfQueryAll;\n if (prop === \"getElementById\") return __hfGetElementById;\n var value = Reflect.get(target, prop, target);\n return typeof value === \"function\" ? value.bind(target) : value;\n },\n })\n : window.document;\n var __hfTimelineRegistryProxy = null;\n var __hfGetTimelineRegistry = function() {\n window.__timelines = window.__timelines || {};\n if (!__hfCompId || __hfCompId === __hfTimelineCompId || typeof Proxy !== \"function\") {\n return window.__timelines;\n }\n if (!__hfTimelineRegistryProxy) {\n __hfTimelineRegistryProxy = new Proxy(window.__timelines, {\n get: function(target, prop, receiver) {\n if (prop !== __hfCompId) {\n return Reflect.get(target, prop, target);\n }\n var authoredValue = Reflect.get(target, prop, target);\n return authoredValue === undefined\n ? Reflect.get(target, __hfTimelineCompId, target)\n : authoredValue;\n },\n set: function(target, prop, value, receiver) {\n if (prop !== __hfCompId) {\n return Reflect.set(target, prop, value, target);\n }\n // The authored node remains in the compiled DOM when its local id\n // differs from the runtime mount id, so readiness legitimately sees\n // both compositions. Publish the same timeline under both identities\n // instead of replacing one with the other.\n var authoredSet = Reflect.set(target, __hfCompId, value, target);\n var runtimeSet = Reflect.set(target, __hfTimelineCompId, value, target);\n return authoredSet && runtimeSet;\n },\n });\n }\n return __hfTimelineRegistryProxy;\n };\n var __hfScopedWindow = typeof Proxy === \"function\"\n ? new Proxy(window, {\n get: function(target, prop, receiver) {\n if (prop === \"__timelines\") return __hfGetTimelineRegistry();\n // Inside a sub-composition, __hyperframes is passed as a bare script\n // param bound to the SCOPED variant (per-comp getVariables). But\n // authors routinely write the documented window.__hyperframes.\n // getVariables() form, which would otherwise fall through to the host\n // page's base __hyperframes and return the WRONG (or empty) variables\n // for this instance. Route it to the scoped variant too so both\n // spellings resolve to this composition's own variables.\n // (__hfScopedHyperframes is a hoisted var assigned below, before any\n // sub-comp script -- the only code that reads this -- runs.)\n if (prop === \"__hyperframes\") return __hfScopedHyperframes;\n return Reflect.get(target, prop, target);\n },\n set: function(target, prop, value, receiver) {\n if (prop === \"__timelines\") {\n // Common authoring boilerplate assigns the registry back to\n // itself (window.__timelines = window.__timelines || {}). The\n // getter above returns our proxy; do not replace the canonical\n // registry with that proxy or later wrappers will stack proxies.\n if (value === __hfTimelineRegistryProxy) return true;\n target.__timelines = value || {};\n __hfTimelineRegistryProxy = null;\n return true;\n }\n return Reflect.set(target, prop, value, target);\n },\n })\n : window;\n var __hfResolveGsapTarget = function(target) {\n if (typeof target !== \"string\") return target;\n return __hfQueryAll(target);\n };\n var __hfScopeTimeline = function(timeline) {\n if (!timeline || timeline.__hfScopedCompositionRoot === __hfFindRoot()) return timeline;\n [\"to\", \"from\", \"fromTo\", \"set\"].forEach(function(method) {\n var original = timeline[method];\n if (typeof original !== \"function\") return;\n timeline[method] = function(target) {\n var args = Array.prototype.slice.call(arguments);\n args[0] = __hfResolveGsapTarget(target);\n return original.apply(timeline, args);\n };\n });\n try {\n Object.defineProperty(timeline, \"__hfScopedCompositionRoot\", {\n value: __hfFindRoot(),\n configurable: true,\n });\n } catch {\n // Best-effort: timelines coming from user code may have a frozen target\n // or a non-extensible defineProperty path. Swallow \\u2014 the scoped root\n // is an enrichment, not a correctness invariant for playback.\n }\n return timeline;\n };\n var __hfBaseGsap = typeof gsap === \"undefined\" ? window.gsap : gsap;\n var __hfScopedGsap = !__hfBaseGsap || typeof Proxy !== \"function\"\n ? __hfBaseGsap\n : new Proxy(__hfBaseGsap, {\n get: function(target, prop, receiver) {\n if (prop === \"timeline\") {\n return function() {\n return __hfScopeTimeline(target.timeline.apply(target, arguments));\n };\n }\n if (prop === \"to\" || prop === \"from\" || prop === \"fromTo\" || prop === \"set\") {\n return function(firstArg) {\n var args = Array.prototype.slice.call(arguments);\n args[0] = __hfResolveGsapTarget(firstArg);\n return target[prop].apply(target, args);\n };\n }\n if (prop === \"utils\" && target.utils && typeof Proxy === \"function\") {\n return new Proxy(target.utils, {\n get: function(utilsTarget, utilsProp, utilsReceiver) {\n if (utilsProp === \"toArray\") {\n return function(firstArg) {\n var args = Array.prototype.slice.call(arguments);\n args[0] = __hfResolveGsapTarget(firstArg);\n return utilsTarget.toArray.apply(utilsTarget, args);\n };\n }\n if (utilsProp === \"selector\") {\n return function(base) {\n var baseEl = typeof base === \"string\" ? __hfQueryOne(base) : base;\n var root = baseEl || __hfFindRoot();\n return function(selector) {\n if (!root || typeof selector !== \"string\") return [];\n return Array.prototype.filter.call(\n window.document.querySelectorAll(__hfNormalizeSelector(selector)),\n function(node) {\n return node === root || (typeof root.contains === \"function\" && root.contains(node));\n },\n );\n };\n };\n }\n var value = Reflect.get(utilsTarget, utilsProp, utilsTarget);\n return typeof value === \"function\" ? value.bind(utilsTarget) : value;\n },\n });\n }\n var value = Reflect.get(target, prop, target);\n return typeof value === \"function\" ? value.bind(target) : value;\n },\n });\n var __hfBaseHyperframes = window.__hyperframes;\n var __hfScopedHyperframes = !__hfBaseHyperframes\n ? __hfBaseHyperframes\n : Object.assign({}, __hfBaseHyperframes, {\n getVariables: function() {\n var byComp = window.__hfVariablesByComp;\n var scoped = byComp && __hfTimelineCompId ? byComp[__hfTimelineCompId] : null;\n return scoped ? Object.assign({}, scoped) : {};\n },\n });\n var __hfRun = function() {\n try {\n (function(document, gsap, window, __hyperframes) {\n${e.replace(/<\\/(script)/gi,\"<\\\\/$1\")}\n }).call(window, __hfScopedDocument, __hfScopedGsap, __hfScopedWindow, __hfScopedHyperframes);\n } catch (_err) {\n console.error(__hfErrorLabel, __hfCompId, _err);\n }\n };\n __hfFindRoot();\n __hfRun();\n})();`}var Sf=[\"data-composition-id\",\"data-composition-file\",\"data-start\",\"data-duration\",\"data-end\",\"data-track-index\",\"data-track\",\"data-composition-src\",\"data-hf-authored-duration\",\"data-hf-authored-end\"];function Ga(e){let t=e.getAttribute(\"id\")?.trim();for(let n of Sf)e.removeAttribute(n);t&&(e.removeAttribute(\"id\"),e.setAttribute(\"data-hf-authored-id\",t)),e.setAttribute(\"data-hf-inner-root\",\"true\")}var Ef=8e3,Af=/^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:)(?!\\/\\/)(?!\\/)(?!\\.\\.?\\/).+/,wf=/\\burl\\(\\s*([\"']?)([^)\"']+)\\1\\s*\\)/g,Cf=[\"src\",\"href\"];function _f(e){return!e||e.startsWith(\"http://\")||e.startsWith(\"https://\")||e.startsWith(\"//\")||e.startsWith(\"data:\")||e.startsWith(\"#\")||e.startsWith(\"/\")}function Wa(e,t){if(!t)return e;let n=e.trim();if(_f(n)||!n.startsWith(\"../\")&&n!==\"..\")return e;try{return new URL(n,t).href}catch{return e}}function Va(e,t){return!t||!e?e:e.replace(wf,(n,i,r)=>{let o=Wa(r||\"\",t);return o===r?n:`url(${i||\"\"}${o}${i||\"\"})`})}function Ff(e,t){for(let n of Array.from(e.querySelectorAll(\"[src], [href]\")))for(let i of Cf){let r=n.getAttribute(i);if(r==null)continue;let o=Wa(r,t);o!==r&&n.setAttribute(i,o)}}function Tf(e,t){for(let n of Array.from(e.querySelectorAll(\"[style]\"))){let i=n.getAttribute(\"style\");if(i==null)continue;let r=Va(i,t);r!==i&&n.setAttribute(\"style\",r)}}function vf(e,t){for(let n of Array.from(e.querySelectorAll(\"style\"))){let i=n.textContent||\"\",r=Va(i,t);r!==i&&(n.textContent=r)}}function za(e,t){if(t){Ff(e,t),Tf(e,t),vf(e,t);for(let n of Array.from(e.querySelectorAll(\"template\")))za(n.content,t)}}function Mf(e,t){return`${e}__hf${t}`}var Nf=e=>new Promise(t=>{let n=!1,i=Date.now(),r=null,o=a=>{n||(n=!0,r!=null&&window.clearTimeout(r),t({status:a,elapsedMs:Math.max(0,Date.now()-i)}))};e.addEventListener(\"load\",()=>o(\"load\"),{once:!0}),e.addEventListener(\"error\",()=>o(\"error\"),{once:!0}),r=window.setTimeout(()=>o(\"timeout\"),Ef)});function xr(e){for(;e.firstChild;)e.removeChild(e.firstChild);e.textContent=\"\"}function Lf(e){let t=document.importNode(e,!0);Ga(t);let n=t.getAttribute(\"data-width\"),i=t.getAttribute(\"data-height\");return t.style.width=n?`${n}px`:\"100%\",t.style.height=i?`${i}px`:\"100%\",t}function Ua(e,t){let n=e.trim();if(!n)return e;try{return Af.test(n)&&!n.startsWith(\"#\")&&!n.startsWith(\"?\")?new URL(n,document.baseURI).toString():t?new URL(n,t).toString():new URL(n,document.baseURI).toString()}catch{return e}}function gr(e,t){try{let n=new URL(e),i=new URL(t);return n.search=\"\",n.hash=\"\",i.search=\"\",i.hash=\"\",n.href===i.href}catch{return!1}}function zn(e){let t=(e.getAttribute(\"data-composition-id\")||\"\").trim()||null;return{authoredCompositionId:(e.getAttribute(\"data-hf-original-composition-id\")||t||\"\").trim()||null,runtimeCompositionId:t}}function Rf(e){let t=new Map;for(let n of e){let i=zn(n).authoredCompositionId||\"\";i&&t.set(i,(t.get(i)||0)+1)}return t}function ja(e){let t=zn(e).authoredCompositionId;return t?!!document.querySelector(`template#${CSS.escape(t)}-template`):!1}function kf(e){return!!e.querySelector('[data-hf-inner-root=\"true\"]')}function Df(e){return e.hasAttribute(\"data-composition-src\")?!0:ja(e)?e.children.length===0||e.hasAttribute(\"data-hf-original-composition-id\")?!0:kf(e):!1}function yr(){return Array.from(document.querySelectorAll(\"[data-composition-src], [data-composition-id]\")).filter(t=>t.hasAttribute(\"data-composition-src\")?!0:ja(t))}function $a(){let e=window.__hfVariablesByComp;if(!e)return;let t=new Set(yr().map(n=>zn(n).runtimeCompositionId).filter(n=>!!n));for(let n of Object.keys(e))t.has(n)||delete e[n]}function qa(e,t=Rf(e)){let n=new Map,i=new Map;for(let r of e){let{authoredCompositionId:o,runtimeCompositionId:a}=zn(r),u=Df(r);if(!o){i.set(r,{authoredCompositionId:null,runtimeCompositionId:a});continue}let s=(t.get(o)||0)>1,l=a||o;if(u){let f=s?(n.get(o)||0)+1:0;s&&n.set(o,f),l=s?Mf(o,f):o,s?r.setAttribute(\"data-hf-original-composition-id\",o):r.removeAttribute(\"data-hf-original-composition-id\"),r.setAttribute(\"data-composition-id\",l),a&&a!==l&&window.__hfVariablesByComp&&delete window.__hfVariablesByComp[a]}i.set(r,{authoredCompositionId:o,runtimeCompositionId:l})}return i}async function br(e){let t=null;e.authoredCompositionId&&(t=Array.from(e.sourceNode.querySelectorAll(\"[data-composition-id]\")).find(x=>x instanceof HTMLElement&&x.getAttribute(\"data-composition-id\")===e.authoredCompositionId)??null);let n=t??e.sourceNode,i=t?.getAttribute(\"data-composition-id\")?.trim()||e.authoredCompositionId||null,r=e.runtimeCompositionId||i||null,o=t?.getAttribute(\"id\")?.trim()||null,a=r?`[data-composition-id=\"${CSS.escape(r)}\"]`:void 0;if(e.headLinks)for(let d of e.headLinks){let x=(d.getAttribute(\"href\")||\"\").trim();if(!x)continue;let S=e.compositionUrl?new URL(x,e.compositionUrl).href:x;if(e.compositionUrl&&gr(S,e.compositionUrl)||document.head.querySelector(`link[href=\"${CSS.escape(S)}\"]`))continue;let y=d.cloneNode(!0);y.href=S,document.head.appendChild(y),e.injectedLinks.push(y)}let u=d=>{for(let x of d){let S=x.cloneNode(!0);S instanceof HTMLStyleElement&&(i&&(S.textContent=Ba(S.textContent||\"\",i,a,o,{scopeRootSelectors:!0})),document.head.appendChild(S),e.injectedStyles.push(S))}};e.headStyles&&u(e.headStyles),u(Array.from(n.querySelectorAll(\"style\")));let s=[];if(e.headScripts)for(let d of e.headScripts){let x=d.getAttribute(\"type\")?.trim()??\"\",S=d.getAttribute(\"src\")?.trim()??\"\";if(S){let y=Ua(S,e.compositionUrl);if(e.compositionUrl&&gr(y,e.compositionUrl))continue;s.push({kind:\"external\",src:y,type:x})}else{let y=d.textContent?.trim()??\"\";y&&s.push({kind:\"inline\",content:y,type:x,scopeCompositionId:i})}}let l=Array.from(n.querySelectorAll(\"script\")),f=[...s];for(let d of l){let x=d.getAttribute(\"type\")?.trim()??\"\",S=d.getAttribute(\"src\")?.trim()??\"\";if(S){let y=Ua(S,e.compositionUrl);if(e.compositionUrl&&gr(y,e.compositionUrl)){d.parentNode?.removeChild(d);continue}f.push({kind:\"external\",src:y,type:x})}else{let y=d.textContent?.trim()??\"\";y&&f.push({kind:\"inline\",content:y,type:x,scopeCompositionId:i})}d.parentNode?.removeChild(d)}let p=Array.from(n.querySelectorAll(\"style\"));for(let d of p)d.parentNode?.removeChild(d);if(t){let d=t.getAttribute(\"data-width\"),x=t.getAttribute(\"data-height\"),S=e.parseDimensionPx(d),y=e.parseDimensionPx(x);d&&e.host.setAttribute(\"data-width\",d),x&&e.host.setAttribute(\"data-height\",x),S&&e.host instanceof HTMLElement&&(e.host.style.width=S),y&&e.host instanceof HTMLElement&&(e.host.style.height=y),t.hasAttribute(\"data-timeline-locked\")&&e.host.setAttribute(\"data-timeline-locked\",\"\"),e.host.appendChild(Lf(t))}else e.hasTemplate?e.host.appendChild(document.importNode(n,!0)):e.host.innerHTML=e.fallbackBodyInnerHtml;r&&If(e,n,r);for(let d of f){let x=document.createElement(\"script\");if(d.type&&(x.type=d.type),x.async=!1,d.kind===\"external\"?x.src=d.src:d.type.toLowerCase()===\"module\"?x.textContent=d.content:d.scopeCompositionId?x.textContent=Ha(d.content,d.scopeCompositionId,\"[HyperFrames] composition script error:\",a,r||d.scopeCompositionId,o):x.textContent=`(function(){${d.content}})();`,document.body.appendChild(x),e.injectedScripts.push(x),d.kind===\"external\"){let S=await Nf(x);S.status!==\"load\"&&e.onDiagnostic?.({code:\"external_composition_script_load_issue\",details:{hostCompositionId:e.authoredCompositionId,runtimeCompositionId:e.runtimeCompositionId,hostCompositionSrc:e.hostCompositionSrc,resolvedScriptSrc:d.src,loadStatus:S.status,elapsedMs:S.elapsedMs}})}}}async function Ka(e){let t=yr();if($a(),t.length===0)return;let n=qa(t),i=t.filter(r=>{if(r.hasAttribute(\"data-composition-src\")||r.children.length>0)return!1;let o=n.get(r)?.authoredCompositionId;return o?!!document.querySelector(`template#${CSS.escape(o)}-template`):!1});if(i.length!==0)for(let r of i){let o=n.get(r),a=o?.authoredCompositionId;if(!a)continue;let u=document.querySelector(`template#${CSS.escape(a)}-template`);xr(r),await br({host:r,authoredCompositionId:a,runtimeCompositionId:o?.runtimeCompositionId||a,hostCompositionSrc:`template#${a}-template`,sourceNode:u.content,hasTemplate:!0,fallbackBodyInnerHtml:\"\",compositionUrl:null,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,injectedLinks:e.injectedLinks,parseDimensionPx:e.parseDimensionPx,onDiagnostic:e.onDiagnostic})}}async function Ja(e){let t=yr();if($a(),t.length===0)return;let n=qa(t),i=t.filter(r=>r.hasAttribute(\"data-composition-src\"));i.length!==0&&await Promise.all(i.map(async r=>{let o=r.getAttribute(\"data-composition-src\");if(!o)return;let a=n.get(r),u=a?.authoredCompositionId||null,s=a?.runtimeCompositionId||u||null,l=null;try{l=new URL(o,document.baseURI)}catch{l=null}xr(r);try{let f=u!=null?document.querySelector(`template#${CSS.escape(u)}-template`):null;if(f){await br({host:r,authoredCompositionId:u,runtimeCompositionId:s,hostCompositionSrc:o,sourceNode:f.content,hasTemplate:!0,fallbackBodyInnerHtml:\"\",compositionUrl:l,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,injectedLinks:e.injectedLinks,parseDimensionPx:e.parseDimensionPx,onDiagnostic:e.onDiagnostic});return}let p=await fetch(o);if(!p.ok)throw new Error(`HTTP ${p.status}`);let d=await p.text(),S=new DOMParser().parseFromString(d,\"text/html\");za(S,l);let y=(u?S.querySelector(`template#${CSS.escape(u)}-template`):null)??S.querySelector(\"template\"),b=y?y.content:S.body,A=y?void 0:Array.from(S.head.querySelectorAll(\"style\")),_=y?void 0:Array.from(S.head.querySelectorAll(\"script\")),M=Array.from(S.head.querySelectorAll('link[rel=\"stylesheet\"], link[rel=\"preconnect\"]'));await br({host:r,authoredCompositionId:u,runtimeCompositionId:s,hostCompositionSrc:o,sourceNode:b,hasTemplate:!!y,fallbackBodyInnerHtml:S.body.innerHTML,compositionUrl:l,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,injectedLinks:e.injectedLinks,parseDimensionPx:e.parseDimensionPx,headStyles:A,headScripts:_,headLinks:M,declaredVariableDefaults:kt(S.documentElement),onDiagnostic:e.onDiagnostic})}catch(f){e.onDiagnostic?.({code:\"external_composition_load_failed\",details:{hostCompositionId:u,runtimeCompositionId:s,hostCompositionSrc:o,errorMessage:f instanceof Error?f.message:\"unknown_error\"}}),xr(r)}}))}function If(e,t,n){let r={...e.declaredVariableDefaults??(t instanceof Element?kt(t):{}),...go(e.host)};po(e.host),Object.keys(r).length>0?(window.__hfVariablesByComp||(window.__hfVariablesByComp={}),window.__hfVariablesByComp[n]=r,bi(e.host,{...mo(e.host,r,window),...En()})):window.__hfVariablesByComp&&delete window.__hfVariablesByComp[n]}function Pf(e){return e instanceof HTMLElement?e.dataset.captionWrapper!==\"true\"?e:e.querySelector(\":scope > span\")??null:null}function Of(){let e=[],t=document.querySelectorAll(\".caption-group\");for(let n of t)for(let i of n.children){if(!(i instanceof HTMLElement))continue;let r=i.dataset.captionWrapper===\"true\"?i.querySelector(\":scope > span\"):i.tagName===\"SPAN\"?i:null;r&&e.push(r)}return e}function Bf(e){let t=e.parentElement;if(t?.dataset.captionWrapper===\"true\")return t;let n=document.createElement(\"span\");return n.style.display=\"inline-block\",n.dataset.captionWrapper=\"true\",e.parentNode?.insertBefore(n,e),n.appendChild(e),n}function Sr(){let e=window.gsap;e&&document.querySelectorAll(\".caption-group\").length!==0&&fetch(\"caption-overrides.json\").then(t=>t.ok?t.json():null).then(t=>{if(!t||!Array.isArray(t)||t.length===0)return;let n=Of();for(let i of t){let r=null;if(i.wordId&&(r=Pf(document.getElementById(i.wordId))),!r&&i.wordIndex!==void 0&&(r=n[i.wordIndex]??null),!r)continue;let o={},a={};if(i.x!==void 0&&(o.x=i.x),i.y!==void 0&&(o.y=i.y),i.scale!==void 0&&(o.scale=i.scale),i.rotation!==void 0&&(o.rotation=i.rotation),i.opacity!==void 0&&(a.opacity=i.opacity),i.fontSize!==void 0&&(a.fontSize=`${i.fontSize}px`),i.fontWeight!==void 0&&(a.fontWeight=i.fontWeight),i.fontFamily!==void 0&&(a.fontFamily=i.fontFamily),i.activeColor||i.dimColor){let s=e.getTweensOf(r).filter(f=>f.vars.color!==void 0).sort((f,p)=>f.startTime()-p.startTime()),l=s[0]?String(s[0].vars.color):\"\";for(let f of s)String(f.vars.color)===l?i.dimColor&&(f.vars.color=i.dimColor):i.activeColor&&(f.vars.color=i.activeColor);i.dimColor&&e.set(r,{color:i.dimColor})}if(Object.keys(a).length>0&&e.set(r,a),Object.keys(o).length>0){let u=Bf(r);e.set(u,o)}}}).catch(()=>{})}var Ar=\"data-hf-edit-base-x\",wr=\"data-hf-edit-base-y\",At=\"data-hf-edit-original-translate\",jn=e=>{let t=parseFloat(e??\"\");return Number.isFinite(t)?t:0},Hf=e=>{let t=[],n=0,i=\"\";for(let r of e.trim())r===\"(\"&&(n+=1),r===\")\"&&(n=Math.max(0,n-1)),/\\s/.test(r)&&n===0?(i&&t.push(i),i=\"\"):i+=r;return i&&t.push(i),t},Ya=/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)px$/,Er=(e,t)=>Ya.test(e)&&Ya.test(t)?`${parseFloat(e)+parseFloat(t)}px`:`calc(${e} + ${t})`,Gf=(e,t,n)=>{if(!e||e===\"none\")return`${t} ${n}`;let[i,r,o]=Hf(e);if(i===void 0)return`${t} ${n}`;if(r===void 0)return`${Er(i,t)} ${n}`;let a=o===void 0?\"\":` ${o}`;return`${Er(i,t)} ${Er(r,n)}${a}`},Uf=e=>{try{e.ownerDocument.defaultView?.gsap?.getProperty?.(e,\"x\")}catch{}},Wf=e=>{let t=e.style.getPropertyValue(\"translate\").trim();if(t)return t===\"none\"?\"\":t;try{let n=e.ownerDocument.defaultView,i=n?n.getComputedStyle(e).getPropertyValue(\"translate\").trim():\"\";return i===\"none\"?\"\":i}catch{return\"\"}},Cr=new WeakMap;function Vf(e,t){let n=Cr.get(e);if(!t?.force&&n!==void 0&&e.style.getPropertyValue(\"translate\")!==n){Ke(\"position_edit_fold_skipped\",{hfId:e.getAttribute(\"data-hf-id\")});return}let i=jn(e.getAttribute(\"data-x\"))-jn(e.getAttribute(Ar)),r=jn(e.getAttribute(\"data-y\"))-jn(e.getAttribute(wr));e.hasAttribute(At)||e.setAttribute(At,Wf(e)),n===void 0&&Uf(e);let o=e.getAttribute(At)??\"\",a=Gf(o,`${i}px`,`${r}px`);e.style.setProperty(\"translate\",a),Cr.set(e,e.style.getPropertyValue(\"translate\"))}function $n(e,t){let n=e.defaultView?.HTMLElement,i=u=>n?u instanceof n:typeof u.style?.setProperty==\"function\",r=e.querySelectorAll(`[${At}]:not([${Ar}]):not([${wr}])`);for(let u=0;u<r.length;u++){let s=r[u];if(s===void 0||!i(s))continue;let l=s.getAttribute(At)??\"\";l===\"\"?s.style.removeProperty(\"translate\"):s.style.setProperty(\"translate\",l),s.removeAttribute(At),Cr.delete(s)}let o=e.querySelectorAll(`[${Ar}], [${wr}]`),a=0;for(let u=0;u<o.length;u++){let s=o[u];s===void 0||!i(s)||(Vf(s,t),a+=1)}return a}var Xa=\"__hfPositionEditsSeekReapplyWrapped\",Qa=new WeakSet,Za=new WeakMap,el=new WeakMap;function tl(e){let t=e,n=()=>{try{$n(t.document)}catch{}},i=p=>typeof p==\"function\"&&(Qa.has(p)||!!p[Xa]),r=p=>{Qa.add(p);try{Object.defineProperty(p,Xa,{value:!0})}catch{}},o=p=>{if(typeof p!=\"function\"||i(p))return p;let d=function(...x){let S=p.apply(this,x);return n(),S};return r(d),d},a=(p,d)=>{let x=Za.get(p);if(x?.has(d))return!0;let S=Object.getOwnPropertyDescriptor(p,d);if(S?.configurable===!1){let A=p[d];return typeof A==\"function\"&&(p[d]=o(A),n()),!1}let y=p[d],b=S?.set;return Object.defineProperty(p,d,{configurable:!0,enumerable:S?.enumerable??!0,get:()=>y,set:A=>{y=o(A),b?.call(p,A)}}),y=o(y),x??(x=new Set),x.add(d),Za.set(p,x),n(),!0},u=(p,d)=>{let x=el.get(t),S=Object.getOwnPropertyDescriptor(t,p);if(!x?.has(p)){if(S?.configurable===!1){let A=t[p];return A?a(A,d):!1}let b=t[p];Object.defineProperty(t,p,{configurable:!0,enumerable:S?.enumerable??!0,get:()=>b,set:A=>{b=A,b&&a(b,d)}}),x??(x=new Set),x.add(p),el.set(t,x)}let y=t[p];return y?a(y,d):!1},s=()=>{let p=u(\"__hf\",\"seek\"),d=u(\"__player\",\"renderSeek\");return p&&d};if(s())return;let l=120,f=t.setInterval(()=>{if(s()){t.clearInterval(f);return}l-=1,l<=0&&t.clearInterval(f)},50)}function qn(e){let t=window,i=e.closest(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")?.trim()??\"\",r=i?t.__hfVariablesByComp?.[i]:void 0;if(r)return r;let o=t.__hyperframes?.getVariables?.();return o&&typeof o==\"object\"?o:t.__hfVariables??{}}function Kn(e){return typeof e==\"string\"||typeof e==\"number\"||typeof e==\"boolean\"}var nl=new Set([\"img\",\"video\",\"audio\",\"source\"]);function zf(e){if(typeof e==\"string\"&&e.length>0)return e;if(e!==null&&typeof e==\"object\"){let t=e.url;if(typeof t==\"string\"&&t.length>0)return t}return null}function jf(e){let t=e.replace(/[\\u0000-\\u0020]/g,\"\"),n=/^([a-z][a-z0-9+.-]*):/i.exec(t);if(!n)return!0;let i=n[1]?.toLowerCase();return i?i===\"https\"||i===\"http\"||i===\"blob\"?!0:i===\"data\"?/^data:image\\//i.test(t):!1:!1}function $f(e){return e.replace(/[;{}<>\\r\\n]/g,\"\")}function qf(e){if(Kn(e))return String(e);if(e!==null&&typeof e==\"object\"){let t=e.name;if(typeof t==\"string\"&&t.length>0)return t}return null}function _r(e,t){let n=e.closest(\"[data-composition-id]\"),i=t.get(n);if(i)return i;let r=qn(e);return t.set(n,r),r}function Kf(e,t){if(e.childElementCount===0){e.textContent=t;return}let n=!1;for(let i of Array.from(e.childNodes))i.nodeType===Node.TEXT_NODE&&(i.nodeValue=n?\"\":t,n=!0);n||e.insertBefore(e.ownerDocument.createTextNode(t),e.firstChild)}function Jf(e){return e.querySelector(\"[data-hf-root]\")??e.getElementById(\"stage\")??e.body?.firstElementChild??e.body}function Yf(e,t){let n=new Set,i=Jf(e);i&&n.add(i);for(let r of Array.from(e.querySelectorAll(\"[data-composition-id]\")))n.add(r);for(let r of n){let o=_r(r,t);for(let[a,u]of Object.entries(o)){let s=qf(u);s!==null&&r instanceof HTMLElement&&r.style.setProperty(`--${a}`,$f(s))}}}function Fr(e){let t=new Map;Yf(e,t);for(let n of Array.from(e.querySelectorAll(\"[data-var-src]\"))){let i=n.getAttribute(\"data-var-src\")?.trim();if(!i)continue;if(!nl.has(n.tagName.toLowerCase())){console.warn(`[hyperframes] Ignoring data-var-src on <${n.tagName.toLowerCase()}>: variable-bound src is only allowed on ${Array.from(nl).join(\"/\")}.`);continue}let r=zf(_r(n,t)[i]);if(r!==null){if(!jf(r)){console.warn(`[hyperframes] Ignoring data-var-src=\"${i}\": unsafe URL protocol.`);continue}n.setAttribute(\"src\",r)}}for(let n of Array.from(e.querySelectorAll(\"[data-var-text]\"))){let i=n.getAttribute(\"data-var-text\")?.trim();if(!i)continue;let r=_r(n,t)[i];Kn(r)&&Kf(n,String(r))}}var xe=class extends Error{constructor(n,i=null){super(i==null?n:`${n} at line ${i}`);me(this,\"lineNumber\");this.name=\"CubeLutParseError\",this.lineNumber=i}},Xf=[0,0,0],Qf=[1,1,1],vr=64;function Zf(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];if(i==='\"'&&(t=!t),i===\"#\"&&!t)return e.slice(0,n)}return e}function et(e,t){let n=Number(e);if(!Number.isFinite(n))throw new xe(`Invalid number \"${e}\"`,t);return n}function il(e,t,n){if(e.length!==3)throw new xe(`${t} expects three numbers`,n);return[et(e[0],n),et(e[1],n),et(e[2],n)]}function rl(e,t,n){if(!e)throw new xe(`${t} expects a size`,n);let i=Number(e);if(!Number.isInteger(i)||i<2)throw new xe(`${t} must be an integer greater than 1`,n);return i}function em(e,t){if(t[0]<=e[0]||t[1]<=e[1]||t[2]<=e[2])throw new xe(\"DOMAIN_MAX values must be greater than DOMAIN_MIN values\")}function tm(e){let t=/^TITLE\\s+\"([^\"]*)\"\\s*$/i.exec(e);if(t)return t[1]??null;let n=/^TITLE\\s+(.+)\\s*$/i.exec(e);return n&&(n[1]??\"\").trim()||null}function nm(e){return/^[+-]?(?:\\d|\\.\\d)/.test(e)}function ol(e,t={}){let n=t.maxSize??vr,i=null,r=Xf,o=Qf,a=null,u=null,s=[],l=e.replace(/^\\uFEFF/,\"\").split(/\\r?\\n/);for(let p=0;p<l.length;p++){let d=p+1,x=Zf(l[p]??\"\").trim();if(!x)continue;let S=x.split(/\\s+/),y=(S[0]??\"\").toUpperCase(),b=S.slice(1);if(y===\"TITLE\"){i=tm(x);continue}if(y===\"DOMAIN_MIN\"){r=il(b,y,d);continue}if(y===\"DOMAIN_MAX\"){o=il(b,y,d);continue}if(y===\"LUT_3D_INPUT_RANGE\"){if(b.length!==2)throw new xe(`${y} expects two numbers`,d);let A=et(b[0],d),_=et(b[1],d);if(_<=A)throw new xe(\"LUT_3D_INPUT_RANGE max must exceed min\",d);r=[A,A,A],o=[_,_,_];continue}if(y===\"LUT_1D_SIZE\"){a=rl(b[0],y,d);continue}if(y===\"LUT_3D_SIZE\"){if(u=rl(b[0],y,d),u>n)throw new xe(`LUT_3D_SIZE ${u} exceeds max ${n}`,d);continue}if(!nm(y)){if(y.startsWith(\"LUT_\"))throw new xe(`Unsupported cube keyword ${y}`,d);continue}if(!u)throw a?new xe(\"1D cube LUTs are not supported yet\",d):new xe(\"LUT data appears before LUT_3D_SIZE\",d);if(S.length!==3)throw new xe(\"LUT data rows must contain three numbers\",d);s.push(et(S[0],d),et(S[1],d),et(S[2],d))}if(a&&u)throw new xe(\"Mixed 1D and 3D cube LUTs are not supported yet\");if(!u)throw a?new xe(\"1D cube LUTs are not supported yet\"):new xe(\"Missing LUT_3D_SIZE\");em(r,o);let f=u*u*u;if(s.length!==f*3)throw new xe(`Expected ${f} LUT rows for size ${u}, found ${s.length/3}`);return{title:i,size:u,domainMin:r,domainMax:o,data:new Float32Array(s)}}function im(e){return Number.isFinite(e)?Math.min(1,Math.max(0,e)):0}function Tr(e){return Math.round(im(e)*255)}function sl(e){let t=e.size,n=t*t,i=t,r=new Uint8Array(n*i*4);for(let o=0;o<t;o++)for(let a=0;a<t;a++)for(let u=0;u<t;u++){let s=((o*t+a)*t+u)*3,l=(a*n+o*t+u)*4;r[l]=Tr(e.data[s]??0),r[l+1]=Tr(e.data[s+1]??0),r[l+2]=Tr(e.data[s+2]??0),r[l+3]=255}return{width:n,height:i,data:r}}var je=new Map,rm=\"data-hf-color-grading-canvas\",om=\"__hf_color_grading_canvas__\";function ml(){if(typeof MutationObserver>\"u\"||typeof document>\"u\")return;let e=document.documentElement;if(!e)return;let t=i=>{i instanceof HTMLElement&&(i.hasAttribute(Tn)||i.setAttribute(Tn,i.style.opacity))},n=i=>{if(i instanceof Element){i.hasAttribute(We)&&t(i);for(let r of i.querySelectorAll(`[${We}]`))t(r)}};n(e),new MutationObserver(i=>{for(let r of i){for(let o of r.addedNodes)n(o);r.type===\"attributes\"&&r.target instanceof Element&&r.target.hasAttribute(We)&&t(r.target)}}).observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[We]})}var sm=16,un={enabled:!1,position:.5,softness:0,lineWidth:2};function Mr(e){let t=e.getAttribute(We);return t==null?null:Jo(t,qn(e))}var am=[\"attribute vec2 a_pos;\",\"varying vec2 v_uv;\",\"void main(){\",\" v_uv = a_pos * 0.5 + 0.5;\",\" gl_Position = vec4(a_pos, 0.0, 1.0);\",\"}\"].join(`\n`),lm=[\"#ifdef GL_FRAGMENT_PRECISION_HIGH\",\"precision highp float;\",\"#else\",\"precision mediump float;\",\"#endif\",\"varying vec2 v_uv;\",\"uniform sampler2D u_source;\",\"uniform sampler2D u_blurSource;\",\"uniform sampler2D u_lut;\",\"uniform vec2 u_resolution;\",\"uniform vec2 u_uvScale;\",\"uniform vec2 u_uvOffset;\",\"uniform float u_blurReady;\",\"uniform float u_lutEnabled;\",\"uniform float u_lutSize;\",\"uniform vec2 u_lutTextureSize;\",\"uniform vec3 u_lutDomainMin;\",\"uniform vec3 u_lutDomainMax;\",\"uniform float u_lutIntensity;\",\"uniform float u_exposure;\",\"uniform float u_contrast;\",\"uniform float u_highlights;\",\"uniform float u_shadows;\",\"uniform float u_whites;\",\"uniform float u_blacks;\",\"uniform float u_temperature;\",\"uniform float u_tint;\",\"uniform float u_vibrance;\",\"uniform float u_saturation;\",\"uniform float u_vignette;\",\"uniform float u_vignetteMidpoint;\",\"uniform float u_vignetteRoundness;\",\"uniform float u_vignetteFeather;\",\"uniform float u_grain;\",\"uniform float u_grainSize;\",\"uniform float u_grainRoughness;\",\"uniform float u_grainSeed;\",\"uniform float u_blur;\",\"uniform float u_pixelate;\",\"uniform float u_intensity;\",\"uniform float u_compareEnabled;\",\"uniform float u_comparePosition;\",\"uniform float u_compareSoftness;\",\"uniform float u_compareLineWidth;\",\"float lumaOf(vec3 c){ return dot(c, vec3(0.2126, 0.7152, 0.0722)); }\",\"float grainHash(vec2 p){ return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123); }\",\"float colorSaturation(vec3 c){ return max(max(c.r, c.g), c.b) - min(min(c.r, c.g), c.b); }\",\"vec2 clampUv(vec2 uv){ return clamp(uv, vec2(0.0), vec2(1.0)); }\",\"vec4 sampleSource(vec2 uv){ return texture2D(u_source, clampUv(uv)); }\",\"vec4 sampleBlur(vec2 uv){ return texture2D(u_blurSource, clampUv(uv)); }\",\"vec4 sampleMedia(vec2 uv){\",\" float pixel = clamp(u_pixelate, 0.0, 1.0);\",\" vec2 sampleUv = uv;\",\" if (pixel > 0.0) {\",\" float blockSize = mix(1.0, 48.0, pixel);\",\" vec2 cells = max(u_resolution / blockSize, vec2(1.0));\",\" sampleUv = (floor(clamp(uv, vec2(0.0), vec2(0.999999)) * cells) + 0.5) / cells;\",\" }\",\" vec4 base = sampleSource(sampleUv);\",\" float blur = clamp(u_blur, 0.0, 1.0);\",\" if (blur > 0.0 && u_blurReady > 0.5) {\",\" base = mix(base, sampleBlur(sampleUv), blur);\",\" }\",\" return base;\",\"}\",\"vec3 sampleLut(float r, float g, float b){\",\" float size = max(u_lutSize, 2.0);\",\" float x = (r + b * size + 0.5) / max(u_lutTextureSize.x, 1.0);\",\" float y = (g + 0.5) / max(u_lutTextureSize.y, 1.0);\",\" return texture2D(u_lut, vec2(x, y)).rgb;\",\"}\",\"vec3 applyLut(vec3 color){\",\" if (u_lutEnabled < 0.5) return color;\",\" float size = max(u_lutSize, 2.0);\",\" vec3 span = max(u_lutDomainMax - u_lutDomainMin, vec3(0.00001));\",\" vec3 scaled = clamp((color - u_lutDomainMin) / span, 0.0, 1.0) * (size - 1.0);\",\" vec3 lo = floor(scaled);\",\" vec3 hi = min(lo + 1.0, vec3(size - 1.0));\",\" vec3 f = scaled - lo;\",\" vec3 c000 = sampleLut(lo.r, lo.g, lo.b);\",\" vec3 c100 = sampleLut(hi.r, lo.g, lo.b);\",\" vec3 c010 = sampleLut(lo.r, hi.g, lo.b);\",\" vec3 c110 = sampleLut(hi.r, hi.g, lo.b);\",\" vec3 c001 = sampleLut(lo.r, lo.g, hi.b);\",\" vec3 c101 = sampleLut(hi.r, lo.g, hi.b);\",\" vec3 c011 = sampleLut(lo.r, hi.g, hi.b);\",\" vec3 c111 = sampleLut(hi.r, hi.g, hi.b);\",\" vec3 c00 = mix(c000, c100, f.r);\",\" vec3 c10 = mix(c010, c110, f.r);\",\" vec3 c01 = mix(c001, c101, f.r);\",\" vec3 c11 = mix(c011, c111, f.r);\",\" vec3 c0 = mix(c00, c10, f.g);\",\" vec3 c1 = mix(c01, c11, f.g);\",\" vec3 lutColor = mix(c0, c1, f.b);\",\" return mix(color, lutColor, clamp(u_lutIntensity, 0.0, 1.0));\",\"}\",\"void main(){\",\" vec2 uv = (v_uv - u_uvOffset) / u_uvScale;\",\" if (uv.x < 0.0 || uv.y < 0.0 || uv.x > 1.0 || uv.y > 1.0) {\",\" gl_FragColor = vec4(0.0);\",\" return;\",\" }\",\" vec4 originalSample = sampleSource(uv);\",\" vec4 sampleColor = sampleMedia(uv);\",\" vec3 original = originalSample.rgb;\",\" vec3 color = sampleColor.rgb * pow(2.0, u_exposure);\",\" float y = lumaOf(color);\",\" float shadowMask = 1.0 - smoothstep(0.0, 0.65, y);\",\" float highlightMask = smoothstep(0.35, 1.0, y);\",\" color += u_shadows * 0.35 * shadowMask;\",\" color += u_highlights * 0.35 * highlightMask;\",\" float blackPoint = clamp(u_blacks * 0.18, -0.18, 0.18);\",\" float whitePoint = clamp(1.0 - u_whites * 0.18, 0.82, 1.18);\",\" color = (color - blackPoint) / max(whitePoint - blackPoint, 0.2);\",\" color.r += u_temperature * 0.08 + u_tint * 0.04;\",\" color.b -= u_temperature * 0.08 - u_tint * 0.04;\",\" color.g -= u_tint * 0.08;\",\" color = (color - 0.5) * max(0.0, 1.0 + u_contrast) + 0.5;\",\" float satLuma = lumaOf(color);\",\" float currentSat = clamp(colorSaturation(color), 0.0, 1.0);\",\" float skinLike = smoothstep(0.02, 0.18, color.r - color.g) * smoothstep(0.0, 0.16, color.g - color.b) * smoothstep(0.18, 0.82, satLuma);\",\" float vibranceWeight = (1.0 - currentSat * 0.72) * mix(1.0, 0.55, skinLike);\",\" color = mix(vec3(satLuma), color, max(0.0, 1.0 + u_vibrance * vibranceWeight));\",\" color = mix(vec3(satLuma), color, max(0.0, 1.0 + u_saturation));\",\" color = clamp(color, 0.0, 1.0);\",\" color = clamp(applyLut(color), 0.0, 1.0);\",\" vec2 vignetteAspect = u_resolution.x > u_resolution.y\",\" ? vec2(u_resolution.x / max(u_resolution.y, 1.0), 1.0)\",\" : vec2(1.0, u_resolution.y / max(u_resolution.x, 1.0));\",\" vec2 vignetteUv = abs((v_uv - vec2(0.5)) * 2.0) * vignetteAspect;\",\" float vignettePower = mix(8.0, 1.8, clamp(u_vignetteRoundness * 0.5 + 0.5, 0.0, 1.0));\",\" float vignetteDistance = pow(pow(vignetteUv.x, vignettePower) + pow(vignetteUv.y, vignettePower), 1.0 / vignettePower);\",\" float vignetteMidpoint = mix(0.22, 1.08, clamp(u_vignetteMidpoint, 0.0, 1.0));\",\" float vignetteFeather = mix(0.08, 0.72, clamp(u_vignetteFeather, 0.0, 1.0));\",\" float vignetteMask = smoothstep(vignetteMidpoint, vignetteMidpoint + vignetteFeather, vignetteDistance);\",\" color *= 1.0 - vignetteMask * clamp(u_vignette, 0.0, 1.0) * 0.75;\",\" float grainAmount = clamp(u_grain, 0.0, 1.0);\",\" if (grainAmount > 0.0) {\",\" float grainPixelSize = mix(1.0, 6.0, clamp(u_grainSize, 0.0, 1.0));\",\" vec2 grainCoord = floor(gl_FragCoord.xy / grainPixelSize) + vec2(u_grainSeed, u_grainSeed * 1.37);\",\" float grainBase = grainHash(grainCoord) - grainHash(grainCoord + vec2(19.19, 73.31));\",\" float grainFine = grainHash(gl_FragCoord.xy + vec2(u_grainSeed * 2.11, u_grainSeed * 0.71)) - 0.5;\",\" float grain = mix(grainBase * 0.7, grainBase + grainFine * 0.35, clamp(u_grainRoughness, 0.0, 1.0));\",\" float grainLuma = lumaOf(color);\",\" float grainMask = smoothstep(0.02, 0.55, grainLuma) * (1.0 - smoothstep(0.88, 1.0, grainLuma));\",\" color += grain * grainAmount * mix(0.025, 0.08, grainMask);\",\" }\",\" color = clamp(color, 0.0, 1.0);\",\" vec3 graded = mix(original, color, u_intensity);\",\" if (u_compareEnabled > 0.5) {\",\" float pos = clamp(u_comparePosition, 0.0, 1.0);\",\" float softness = max(u_compareSoftness, 0.00001);\",\" float afterMask = smoothstep(pos - softness, pos + softness, v_uv.x);\",\" vec3 splitColor = mix(original, graded, afterMask);\",\" float lineMask = 0.0;\",\" if (u_compareLineWidth > 0.0) {\",\" float lineWidth = max(u_compareLineWidth / max(u_resolution.x, 1.0), 0.00001);\",\" lineMask = 1.0 - smoothstep(lineWidth, lineWidth * 1.8, abs(v_uv.x - pos));\",\" }\",\" gl_FragColor = vec4(mix(splitColor, vec3(1.0), lineMask * 0.82), sampleColor.a);\",\" return;\",\" }\",\" gl_FragColor = vec4(graded, sampleColor.a);\",\"}\"].join(`\n`),um=[\"#ifdef GL_FRAGMENT_PRECISION_HIGH\",\"precision highp float;\",\"#else\",\"precision mediump float;\",\"#endif\",\"varying vec2 v_uv;\",\"uniform sampler2D u_source;\",\"uniform vec2 u_resolution;\",\"uniform vec2 u_direction;\",\"uniform float u_radius;\",\"vec4 readSource(vec2 uv){\",\" vec4 color = texture2D(u_source, clamp(uv, vec2(0.0), vec2(1.0)));\",\" color.rgb *= color.a;\",\" return color;\",\"}\",\"void main(){\",\" vec2 stepUv = u_direction * max(u_radius, 0.0) / max(u_resolution, vec2(1.0)) / 12.0;\",\" vec4 color = readSource(v_uv) * 0.08077993;\",\" color += readSource(v_uv + stepUv * 1.0) * 0.07918038;\",\" color += readSource(v_uv - stepUv * 1.0) * 0.07918038;\",\" color += readSource(v_uv + stepUv * 2.0) * 0.07456928;\",\" color += readSource(v_uv - stepUv * 2.0) * 0.07456928;\",\" color += readSource(v_uv + stepUv * 3.0) * 0.06747307;\",\" color += readSource(v_uv - stepUv * 3.0) * 0.06747307;\",\" color += readSource(v_uv + stepUv * 4.0) * 0.05865827;\",\" color += readSource(v_uv - stepUv * 4.0) * 0.05865827;\",\" color += readSource(v_uv + stepUv * 5.0) * 0.04899551;\",\" color += readSource(v_uv - stepUv * 5.0) * 0.04899551;\",\" color += readSource(v_uv + stepUv * 6.0) * 0.03931982;\",\" color += readSource(v_uv - stepUv * 6.0) * 0.03931982;\",\" color += readSource(v_uv + stepUv * 7.0) * 0.03031761;\",\" color += readSource(v_uv - stepUv * 7.0) * 0.03031761;\",\" color += readSource(v_uv + stepUv * 8.0) * 0.02245983;\",\" color += readSource(v_uv - stepUv * 8.0) * 0.02245983;\",\" color += readSource(v_uv + stepUv * 9.0) * 0.01598624;\",\" color += readSource(v_uv - stepUv * 9.0) * 0.01598624;\",\" color += readSource(v_uv + stepUv * 10.0) * 0.01093238;\",\" color += readSource(v_uv - stepUv * 10.0) * 0.01093238;\",\" color += readSource(v_uv + stepUv * 11.0) * 0.00718308;\",\" color += readSource(v_uv - stepUv * 11.0) * 0.00718308;\",\" color += readSource(v_uv + stepUv * 12.0) * 0.00453456;\",\" color += readSource(v_uv - stepUv * 12.0) * 0.00453456;\",\" if (color.a > 0.0001) color.rgb /= color.a;\",\" gl_FragColor = color;\",\"}\"].join(`\n`);function dt(e){return e instanceof HTMLVideoElement||e instanceof HTMLImageElement}function al(e,t,n){let i=e.createShader(n);return i?(e.shaderSource(i,t),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS)?i:(T(\"runtime.colorGrading.compileShader\",e.getShaderInfoLog(i)),e.deleteShader(i),null)):null}function pl(e,t=lm){let n=al(e,am,e.VERTEX_SHADER),i=al(e,t,e.FRAGMENT_SHADER);if(!n||!i)return n&&e.deleteShader(n),i&&e.deleteShader(i),null;let r=e.createProgram();return r?(e.attachShader(r,n),e.attachShader(r,i),e.linkProgram(r),e.deleteShader(n),e.deleteShader(i),e.getProgramParameter(r,e.LINK_STATUS)?r:(T(\"runtime.colorGrading.linkProgram\",e.getProgramInfoLog(r)),e.deleteProgram(r),null)):null}function Lr(e,t=e.LINEAR){let n=e.createTexture();return n?(e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,null),n):null}function cm(e,t){let n=pl(e,um);return n?{program:n,quad:t,position:e.getAttribLocation(n,\"a_pos\"),source:e.getUniformLocation(n,\"u_source\"),resolution:e.getUniformLocation(n,\"u_resolution\"),direction:e.getUniformLocation(n,\"u_direction\"),radius:e.getUniformLocation(n,\"u_radius\")}:null}function ll(e){let t=Lr(e),n=e.createFramebuffer();if(!t||!n)return t&&e.deleteTexture(t),n&&e.deleteFramebuffer(n),null;e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0);let i=e.checkFramebufferStatus(e.FRAMEBUFFER);return e.bindFramebuffer(e.FRAMEBUFFER,null),i!==e.FRAMEBUFFER_COMPLETE?(e.deleteTexture(t),e.deleteFramebuffer(n),null):{texture:t,framebuffer:n,width:1,height:1}}function ul(e,t,n,i){t.width===n&&t.height===i||(t.width=n,t.height=i,e.bindTexture(e.TEXTURE_2D,t.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,n,i,0,e.RGBA,e.UNSIGNED_BYTE,null))}function hl(e){let t=e.getContext(\"webgl\",{alpha:!0,premultipliedAlpha:!1,preserveDrawingBuffer:!0});if(!t)return null;let n=pl(t),i=Lr(t),r=Lr(t,t.NEAREST);if(!n||!i||!r)return n&&t.deleteProgram(n),i&&t.deleteTexture(i),r&&t.deleteTexture(r),null;let o=t.createBuffer();return o?(t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),t.STATIC_DRAW),{gl:t,program:{program:n,texture:i,lutTexture:r,quad:o,position:t.getAttribLocation(n,\"a_pos\"),source:t.getUniformLocation(n,\"u_source\"),blurSource:t.getUniformLocation(n,\"u_blurSource\"),lut:t.getUniformLocation(n,\"u_lut\"),resolution:t.getUniformLocation(n,\"u_resolution\"),uvScale:t.getUniformLocation(n,\"u_uvScale\"),uvOffset:t.getUniformLocation(n,\"u_uvOffset\"),blurReady:t.getUniformLocation(n,\"u_blurReady\"),lutEnabled:t.getUniformLocation(n,\"u_lutEnabled\"),lutSize:t.getUniformLocation(n,\"u_lutSize\"),lutTextureSize:t.getUniformLocation(n,\"u_lutTextureSize\"),lutDomainMin:t.getUniformLocation(n,\"u_lutDomainMin\"),lutDomainMax:t.getUniformLocation(n,\"u_lutDomainMax\"),lutIntensity:t.getUniformLocation(n,\"u_lutIntensity\"),exposure:t.getUniformLocation(n,\"u_exposure\"),contrast:t.getUniformLocation(n,\"u_contrast\"),highlights:t.getUniformLocation(n,\"u_highlights\"),shadows:t.getUniformLocation(n,\"u_shadows\"),whites:t.getUniformLocation(n,\"u_whites\"),blacks:t.getUniformLocation(n,\"u_blacks\"),temperature:t.getUniformLocation(n,\"u_temperature\"),tint:t.getUniformLocation(n,\"u_tint\"),vibrance:t.getUniformLocation(n,\"u_vibrance\"),saturation:t.getUniformLocation(n,\"u_saturation\"),vignette:t.getUniformLocation(n,\"u_vignette\"),vignetteMidpoint:t.getUniformLocation(n,\"u_vignetteMidpoint\"),vignetteRoundness:t.getUniformLocation(n,\"u_vignetteRoundness\"),vignetteFeather:t.getUniformLocation(n,\"u_vignetteFeather\"),grain:t.getUniformLocation(n,\"u_grain\"),grainSize:t.getUniformLocation(n,\"u_grainSize\"),grainRoughness:t.getUniformLocation(n,\"u_grainRoughness\"),grainSeed:t.getUniformLocation(n,\"u_grainSeed\"),blur:t.getUniformLocation(n,\"u_blur\"),pixelate:t.getUniformLocation(n,\"u_pixelate\"),intensity:t.getUniformLocation(n,\"u_intensity\"),compareEnabled:t.getUniformLocation(n,\"u_compareEnabled\"),comparePosition:t.getUniformLocation(n,\"u_comparePosition\"),compareSoftness:t.getUniformLocation(n,\"u_compareSoftness\"),compareLineWidth:t.getUniformLocation(n,\"u_compareLineWidth\")}}):(t.deleteProgram(n),t.deleteTexture(i),t.deleteTexture(r),null)}function dm(e){return typeof e==\"object\"&&e!==null&&!Array.isArray(e)}function fm(e){if(!dm(e))return{...un};let t=(n,i,r,o)=>{let a=typeof n==\"number\"?n:Number(n);return Math.min(o,Math.max(r,Number.isFinite(a)?a:i))};return{enabled:e.enabled===!0,position:t(e.position,un.position,0,1),softness:t(e.softness,un.softness,0,.25),lineWidth:t(e.lineWidth,un.lineWidth,0,12)}}function gl(e){try{let t=new URL(e,document.baseURI);return t.protocol===\"data:\"?{href:t.href}:t.protocol!==\"http:\"&&t.protocol!==\"https:\"?{error:\"LUT must be project-local or a data URL\"}:t.origin!==window.location.origin?{error:\"Remote LUT URLs are not supported\"}:{href:t.href}}catch{return{error:\"Invalid LUT URL\"}}}function kr(e){return e instanceof Error?e.message:\"LUT failed to load\"}function mm(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0)%1e4}function pm(e){let t=e.id||e.currentSrc||e.getAttribute(\"src\")||`${e.tagName}:${Array.prototype.indexOf.call(e.parentNode?.children??[],e)}`;return mm(t)}function hm(e){let t=gl(e);if(\"error\"in t)return{state:\"error\",message:t.error};let n=je.get(t.href);if(n)return n;let i=fetch(t.href,{credentials:\"same-origin\"}).then(o=>{if(!o.ok)throw new Error(`Failed to load LUT (${o.status})`);return o.text()}).then(o=>ol(o,{maxSize:vr})),r={state:\"pending\",promise:i};for(;je.size>=sm;){let o=je.keys().next().value;if(!o)break;je.delete(o)}return je.set(t.href,r),i.then(o=>{je.get(t.href)===r&&je.set(t.href,{state:\"ready\",lut:o})},o=>{je.get(t.href)===r&&je.set(t.href,{state:\"error\",message:kr(o)})}),r}function cl(e,t,n){if(e.lut?.src===t)return e.lut;let i=sl(n),{gl:r,program:o}=e;try{return r.activeTexture(r.TEXTURE2),r.bindTexture(r.TEXTURE_2D,o.lutTexture),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,i.width,i.height,0,r.RGBA,r.UNSIGNED_BYTE,i.data),e.lut={src:t,size:n.size,domainMin:n.domainMin,domainMax:n.domainMax,textureWidth:i.width,textureHeight:i.height},e.lutError=null,e.lutLoadingSrc=null,e.lut}catch(a){return e.lut=null,e.lutError=kr(a),e.lutLoadingSrc=null,T(\"runtime.colorGrading.uploadLut\",a),null}}function Jn(e,t){e.deleteTexture(t.texture),e.deleteFramebuffer(t.framebuffer)}function xl(e){let t=e.effectTargets;t&&(e.gl.deleteProgram(t.blurProgram.program),Jn(e.gl,t.scratch),Jn(e.gl,t.blur),e.effectTargets=null)}function bl(e){xl(e),e.gl.deleteTexture(e.program.texture),e.gl.deleteTexture(e.program.lutTexture),e.gl.deleteBuffer(e.program.quad),e.gl.deleteProgram(e.program.program)}function gm(e){let t=hl(e.canvas);return t?(bl(e),e.gl=t.gl,e.program=t.program,e.lut=null,e.lutLoadingSrc=null,e.lutError=null,e.effectError=null,!0):!1}function Rr(e){if(!e.sourceHidden)return;e.element.removeAttribute(Bt);let t=e.element.style.getPropertyValue(\"opacity\"),n=e.element.style.getPropertyPriority(\"opacity\");t===\"0\"&&n===\"important\"&&(e.sourceInlineOpacity===null?e.element.style.removeProperty(\"opacity\"):e.element.style.setProperty(\"opacity\",e.sourceInlineOpacity,e.sourceInlineOpacityPriority)),e.sourceHidden=!1}function xm(e){if(e.effectTargets)return e.effectTargets;let{gl:t}=e,n=cm(t,e.program.quad),i=ll(t),r=ll(t);return!n||!i||!r?(n&&t.deleteProgram(n.program),i&&Jn(t,i),r&&Jn(t,r),e.effectError=\"Framebuffer effects unavailable\",null):(e.effectError=null,e.effectTargets={blurProgram:n,scratch:i,blur:r},e.effectTargets)}function bm(e,t,n,i,r){let o=Math.max(1,Math.ceil(i)),a=Math.max(1,Math.ceil(r));return ul(e,t,o,a),ul(e,n,o,a),{width:o,height:a}}function dl(e,t,n,i,r,o,a){e.bindFramebuffer(e.FRAMEBUFFER,i.framebuffer),e.viewport(0,0,r.width,r.height),e.useProgram(t.program),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,n),e.uniform1i(t.source,0),e.uniform2f(t.resolution,r.width,r.height),e.uniform2f(t.direction,o.x,o.y),e.uniform1f(t.radius,a),e.bindBuffer(e.ARRAY_BUFFER,t.quad),e.enableVertexAttribArray(t.position),e.vertexAttribPointer(t.position,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLE_STRIP,0,4)}function ym(e,t,n,i,r,o,a){let u=n;for(let s=0;s<Math.max(1,Math.floor(a));s++)dl(e,t.blurProgram,u,t.scratch,r,{x:1,y:0},o),dl(e,t.blurProgram,t.scratch.texture,i,r,{x:0,y:1},o),u=i.texture}function Sm(e){let t=e.grading.lut?.src.trim()??\"\",n=e.grading.lut?.intensity??1;if(!t||n<=0)return e.lut=null,e.lutLoadingSrc=null,e.lutError=null,null;let i=gl(t);if(\"error\"in i)return e.lut=null,e.lutLoadingSrc=null,e.lutError=i.error,null;if(e.lut?.src===i.href)return e.lut;e.lut=null;let r=hm(t);return r.state===\"ready\"?cl(e,i.href,r.lut):r.state===\"error\"?(e.lutError=r.message,e.lutLoadingSrc=null,null):(e.lutLoadingSrc!==i.href&&(e.lutLoadingSrc=i.href,e.lutError=null,r.promise.then(o=>{e.destroyed||e.grading.lut?.src.trim()!==t||(cl(e,i.href,o),De(e))},o=>{e.destroyed||e.grading.lut?.src.trim()!==t||(e.lut=null,e.lutError=kr(o),e.lutLoadingSrc=null,De(e))})),null)}function Nr(e){if(!e)return null;if(typeof e==\"string\"){let t=e.trim();if(!t)return null;let n=document.getElementById(t.replace(/^#/,\"\"));if(n&&dt(n))return n;try{let i=document.querySelector(t);return i&&dt(i)?i:null}catch{return null}}if(e.hfId){let t=document.querySelector(`[data-hf-id=\"${CSS.escape(e.hfId)}\"]`);if(t&&dt(t))return t}if(e.id){let t=document.getElementById(e.id);if(t&&dt(t))return t}if(!e.selector)return null;try{let t=Array.from(document.querySelectorAll(e.selector)),n=Math.max(0,Math.floor(Number(e.selectorIndex??0)||0)),i=t[n]??null;return i&&dt(i)?i:null}catch{return null}}function Em(e){return e instanceof HTMLVideoElement?e.videoWidth>0&&e.videoHeight>0?{width:e.videoWidth,height:e.videoHeight}:null:e instanceof HTMLImageElement&&e.naturalWidth>0&&e.naturalHeight>0?{width:e.naturalWidth,height:e.naturalHeight}:null}function yl(e){return e instanceof HTMLVideoElement?e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&e.videoWidth>0&&e.videoHeight>0:e instanceof HTMLImageElement?e.complete&&e.naturalWidth>0&&e.naturalHeight>0:!1}function Am(e){if(!e.id)return null;let t=document.getElementById(`__render_frame_${e.id}__`);return t instanceof HTMLImageElement&&yl(t)?t:null}function wm(e){return e instanceof HTMLImageElement&&e.classList.contains(\"__render_frame__\")}function Cm(e,t){t.parentNode&&t.nextSibling!==e.canvas&&t.parentNode.insertBefore(e.canvas,t.nextSibling)}function _m(e){if(e instanceof HTMLVideoElement){let t=Am(e);if(t)return t}return yl(e)?e:null}function fl(e,t){let n=e.toLowerCase();if(n===\"center\")return .5;if(t===\"x\"){if(n===\"left\")return 0;if(n===\"right\")return 1}else{if(n===\"top\")return 0;if(n===\"bottom\")return 1}if(n.endsWith(\"%\")){let i=Number.parseFloat(n);return Number.isFinite(i)?i/100:null}return null}function Fm(e){let t=e.trim().split(/\\s+/).filter(Boolean),n=.5,i=.5;for(let r=0;r<t.length;r++){let o=t[r]??\"\",a=fl(o,\"x\"),u=fl(o,\"y\");if(a!==null&&(o===\"left\"||o===\"right\"||o.endsWith(\"%\")&&r===0)){n=a;continue}if(u!==null&&(o===\"top\"||o===\"bottom\"||o.endsWith(\"%\")&&r>0)){i=u;continue}}return{x:n,y:i}}function Tm(e,t,n,i,r,o){if(e<=0||t<=0||n<=0||i<=0)return{scaleX:1,scaleY:1,offsetX:0,offsetY:0};let a=r||\"fill\",u=e,s=t;if(a===\"contain\"||a===\"cover\"||a===\"scale-down\"){let d=a===\"cover\"?Math.max(e/n,t/i):Math.min(e/n,t/i);u=n*d,s=i*d,a===\"scale-down\"&&u>n&&s>i&&(u=n,s=i)}else a===\"none\"&&(u=n,s=i);let l=Fm(o||\"center\"),f=(e-u)*l.x/e,p=(t-s)*l.y/t;return{scaleX:u/e,scaleY:s/t,offsetX:f,offsetY:p}}function vm(e,t){window.getComputedStyle(t).position===\"static\"&&(e.touchedParent||(e.touchedParent=t,e.parentInlinePosition=t.style.position||null),t.style.position=\"relative\")}function Mm(e,t){let{element:n,canvas:i}=e,r=n.parentElement;r&&vm(e,r);let o=window.getComputedStyle(t);Xo(i.style,o),i.style.pointerEvents=\"none\",i.style.position=\"absolute\",i.style.inset=\"auto\",i.style.left=`${n.offsetLeft}px`,i.style.top=`${n.offsetTop}px`,i.style.right=\"auto\",i.style.bottom=\"auto\",i.style.width=`${n.offsetWidth}px`,i.style.height=`${n.offsetHeight}px`,i.style.display=\"block\",i.style.opacity=e.sourceOpacityForCanvas,i.style.visibility=e.sourceVisibleForCanvas?\"visible\":\"hidden\";let a=n.getBoundingClientRect(),u=Math.max(0,Math.round(n.offsetWidth||a.width)),s=Math.max(0,Math.round(n.offsetHeight||a.height));return u<=0||s<=0?(i.style.display=\"none\",null):(i.width!==u&&(i.width=u),i.height!==s&&(i.height=s),{width:u,height:s})}function Nm(e,t,n,i,r,o,a,u,s){e.uniform1i(t.source,0),e.uniform1i(t.blurSource,1),e.uniform1i(t.lut,2),e.uniform2f(t.resolution,a.width,a.height),e.uniform2f(t.uvScale,u.scaleX,u.scaleY),e.uniform2f(t.uvOffset,u.offsetX,u.offsetY),e.uniform1f(t.blurReady,r?1:0),e.uniform1f(t.lutEnabled,i?1:0),e.uniform1f(t.lutSize,i?.size??2),e.uniform2f(t.lutTextureSize,i?.textureWidth??1,i?.textureHeight??1),e.uniform3f(t.lutDomainMin,i?.domainMin[0]??0,i?.domainMin[1]??0,i?.domainMin[2]??0),e.uniform3f(t.lutDomainMax,i?.domainMax[0]??1,i?.domainMax[1]??1,i?.domainMax[2]??1),e.uniform1f(t.lutIntensity,n.lut?.intensity??0),e.uniform1f(t.exposure,n.adjust.exposure),e.uniform1f(t.contrast,n.adjust.contrast),e.uniform1f(t.highlights,n.adjust.highlights),e.uniform1f(t.shadows,n.adjust.shadows),e.uniform1f(t.whites,n.adjust.whites),e.uniform1f(t.blacks,n.adjust.blacks),e.uniform1f(t.temperature,n.adjust.temperature),e.uniform1f(t.tint,n.adjust.tint),e.uniform1f(t.vibrance,n.adjust.vibrance),e.uniform1f(t.saturation,n.adjust.saturation),e.uniform1f(t.vignette,n.details.vignette),e.uniform1f(t.vignetteMidpoint,n.details.vignetteMidpoint),e.uniform1f(t.vignetteRoundness,n.details.vignetteRoundness),e.uniform1f(t.vignetteFeather,n.details.vignetteFeather),e.uniform1f(t.grain,n.details.grain),e.uniform1f(t.grainSize,n.details.grainSize),e.uniform1f(t.grainRoughness,n.details.grainRoughness),e.uniform1f(t.grainSeed,s),e.uniform1f(t.blur,n.effects.blur),e.uniform1f(t.pixelate,n.effects.pixelate),e.uniform1f(t.intensity,n.intensity),e.uniform1f(t.compareEnabled,o.enabled?1:0),e.uniform1f(t.comparePosition,o.position),e.uniform1f(t.compareSoftness,o.softness),e.uniform1f(t.compareLineWidth,o.lineWidth)}function Lm(e){if(!e.sourceHidden){let t=e.element.getAttribute(Tn);t!==null?(e.sourceInlineOpacity=t===\"\"?null:t,e.sourceInlineOpacityPriority=\"\"):(e.sourceInlineOpacity=e.element.style.getPropertyValue(\"opacity\")||null,e.sourceInlineOpacityPriority=e.element.style.getPropertyPriority(\"opacity\"))}e.element.setAttribute(Bt,\"true\"),e.element.style.setProperty(\"opacity\",\"0\",\"important\"),e.sourceHidden=!0}function De(e){if(e.destroyed||e.contextLost)return!1;let t=_m(e.element);if(!t)return e.hasDrawn||(e.canvas.style.display=\"none\"),!1;let n=Em(t);if(!n)return!1;let i=t instanceof HTMLElement?t:e.element,r=e.element.style.getPropertyValue(\"opacity\"),o=e.element.style.getPropertyPriority(\"opacity\"),a=e.sourceHidden&&r===\"0\"&&o===\"important\",u=e.element.style.getPropertyValue(\"visibility\"),s=wm(t);if(s&&Cm(e,t),s||!a){let S=window.getComputedStyle(s?t:e.element);e.sourceOpacityForCanvas=S.opacity||\"1\",e.sourceVisibleForCanvas=(s||u!==\"hidden\")&&S.visibility!==\"hidden\"}let l=Mm(e,i);if(!l)return!1;let f=window.getComputedStyle(i),p=Tm(l.width,l.height,n.width,n.height,f.objectFit,f.objectPosition),{gl:d,program:x}=e;try{let S=Sm(e);d.activeTexture(d.TEXTURE0),d.bindTexture(d.TEXTURE_2D,x.texture),d.pixelStorei(d.UNPACK_FLIP_Y_WEBGL,!0),d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,d.UNSIGNED_BYTE,t);let y=!1,b=Math.min(1,Math.max(0,e.grading.effects.blur));if(b>0){let _=xm(e);if(_){let M=bm(d,_.scratch,_.blur,l.width,l.height);ym(d,_,x.texture,_.blur,M,.75+Math.pow(b,1.35)*32,b>.55?3:2),y=!0}}else e.effectError=null,e.effectTargets&&xl(e);d.bindFramebuffer(d.FRAMEBUFFER,null),d.viewport(0,0,l.width,l.height),d.useProgram(x.program),d.activeTexture(d.TEXTURE0),d.bindTexture(d.TEXTURE_2D,x.texture),d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,e.effectTargets?.blur.texture??x.texture),d.activeTexture(d.TEXTURE2),d.bindTexture(d.TEXTURE_2D,x.lutTexture);let A=e.grainSeed+(e.element instanceof HTMLVideoElement?Math.floor(e.element.currentTime*60):0);return Nm(d,x,e.grading,S,y,e.compare,l,p,A),d.bindBuffer(d.ARRAY_BUFFER,x.quad),d.enableVertexAttribArray(x.position),d.vertexAttribPointer(x.position,2,d.FLOAT,!1,0,0),d.drawArrays(d.TRIANGLE_STRIP,0,4),Lm(e),e.hasDrawn=!0,e.drawError=null,!0}catch(S){return e.drawError=S instanceof Error?S.message:\"Shader draw failed\",T(\"runtime.colorGrading.drawEntry\",S),!1}}function He(e,t,n,i){t.addEventListener(n,i),e.cleanup.push(()=>t.removeEventListener(n,i))}function Rm(e){e.animationFrame!==null&&(window.cancelAnimationFrame(e.animationFrame),e.animationFrame=null),e.videoFrameHandle!==null&&e.element instanceof HTMLVideoElement&&(e.element.cancelVideoFrameCallback?.(e.videoFrameHandle),e.videoFrameHandle=null)}function cn(e){if(e.destroyed||!(e.element instanceof HTMLVideoElement)||e.videoFrameHandle!==null||e.animationFrame!==null)return;let t=e.element,n=t;if(typeof n.requestVideoFrameCallback==\"function\"){e.videoFrameHandle=n.requestVideoFrameCallback(()=>{e.videoFrameHandle=null,De(e),!e.destroyed&&!t.paused&&!t.ended&&cn(e)});return}e.animationFrame=window.requestAnimationFrame(()=>{e.animationFrame=null,De(e),!e.destroyed&&!t.paused&&!t.ended&&cn(e)})}function km(e){let t=()=>{De(e)};if(He(e,e.element,\"load\",t),He(e,e.element,\"loadedmetadata\",t),He(e,e.element,\"loadeddata\",t),He(e,e.element,\"seeked\",t),He(e,e.element,\"timeupdate\",t),He(e,window,\"resize\",t),e.element instanceof HTMLVideoElement&&(He(e,e.element,\"play\",()=>cn(e)),He(e,e.element,\"pause\",t)),He(e,e.canvas,\"webglcontextlost\",n=>{n.preventDefault(),e.contextLost=!0,e.drawError=\"WebGL context lost\",e.canvas.style.display=\"none\",Rr(e)}),He(e,e.canvas,\"webglcontextrestored\",()=>{if(e.contextLost=!1,!gm(e)){e.contextLost=!0,e.drawError=\"WebGL context restore failed\",Rr(e);return}e.drawError=null,De(e)}),typeof ResizeObserver<\"u\"&&(e.resizeObserver=new ResizeObserver(t),e.resizeObserver.observe(e.element)),typeof MutationObserver<\"u\"){let n=()=>{let a=e.element.style;return`${a.transform}|${a.translate}|${a.rotate}|${a.scale}|${a.left}|${a.top}|${a.width}|${a.height}`},i=n(),r=!1,o=new MutationObserver(()=>{r||n()!==i&&(r=!0,requestAnimationFrame(()=>{r=!1,i=n(),De(e)}))});o.observe(e.element,{attributes:!0,attributeFilter:[\"style\"]}),e.cleanup.push(()=>o.disconnect())}}function Dm(e){if(!e.destroyed){e.destroyed=!0,Rm(e),e.resizeObserver?.disconnect();for(let t of e.cleanup)t();e.cleanup.length=0,e.canvas.remove(),bl(e),Rr(e),e.touchedParent&&(e.parentInlinePosition===null?e.touchedParent.style.removeProperty(\"position\"):e.touchedParent.style.position=e.parentInlinePosition)}}function Im(e){let t=document.createElement(\"canvas\");return e.id&&(t.id=`${jo}${e.id}`),t.className=om,t.setAttribute(rm,\"true\"),t.setAttribute(\"data-hyperframes-ignore\",\"\"),t.setAttribute(\"data-hyperframes-picker-ignore\",\"\"),t.setAttribute(\"data-hf-ignore\",\"\"),t.setAttribute(\"aria-hidden\",\"true\"),t.style.pointerEvents=\"none\",t.style.display=\"none\",e.parentNode?.insertBefore(t,e.nextSibling),t}function Sl(){let e=new WeakMap,t=new Set,n=null,i=!1,r=(y,b,A)=>{let _=e.get(y);if(_)return _.grading=b,_.source=A,De(_),y instanceof HTMLVideoElement&&!y.paused&&cn(_),!0;let M=Im(y),H=hl(M);if(!H)return M.remove(),!1;let k={element:y,canvas:M,gl:H.gl,program:H.program,grading:b,compare:{...un},lut:null,lutLoadingSrc:null,lutError:null,drawError:null,effectTargets:null,effectError:null,source:A,animationFrame:null,videoFrameHandle:null,resizeObserver:null,cleanup:[],touchedParent:null,parentInlinePosition:null,sourceHidden:!1,sourceInlineOpacity:null,sourceInlineOpacityPriority:\"\",sourceOpacityForCanvas:window.getComputedStyle(y).opacity||\"1\",sourceVisibleForCanvas:window.getComputedStyle(y).visibility!==\"hidden\",hasDrawn:!1,contextLost:!1,grainSeed:pm(y),destroyed:!1};return e.set(y,k),t.add(y),km(k),De(k),y instanceof HTMLVideoElement&&!y.paused&&cn(k),!0},o=(y,b)=>{if(i)return!1;let A=Nr(y);if(!A)return!1;let _=e.get(A);if(!_){let M=Mr(A);if(!Ht(M)||!r(A,M,\"attribute\"))return!1;_=e.get(A)}return _?(_.compare=fm(b),De(_),!0):!1},a=y=>{let b=e.get(y);b&&(Dm(b),e.delete(y),t.delete(y))},u=()=>{if(i)return 0;let y=new Set;document.querySelectorAll(`video[${We}], img[${We}]`).forEach(A=>{if(!dt(A))return;y.add(A);let _=Mr(A);Ht(_)?r(A,_,\"attribute\"):a(A)});for(let A of Array.from(t)){let _=e.get(A);_&&(!A.isConnected||_.source===\"attribute\"&&!y.has(A))&&a(A)}return t.size},s=()=>{if(i)return 0;let y=0;for(let b of Array.from(t,A=>e.get(A)))b&&De(b)&&(y+=1);return y},l=(y,b)=>{if(i)return!1;let A=Nr(y);if(!A)return!1;let _=Ri(b);return Ht(_)?r(A,_,\"live\"):(a(A),!0)},f=(y,b)=>{if(!dt(y))return!1;let A=e.get(y);return A?(A.sourceVisibleForCanvas=b,!0):!1},p=y=>{let b=Nr(y);if(!b)return{state:\"missing\",message:\"Media not found\"};let A=e.get(b);if(A)return A.effectError?{state:\"unavailable\",message:A.effectError}:A.drawError?{state:\"unavailable\",message:A.drawError}:A.lutError?{state:\"unavailable\",message:`LUT error: ${A.lutError}`}:A.grading.lut&&A.lutLoadingSrc?{state:\"pending\",message:\"Loading LUT\"}:A.canvas.style.display===\"none\"?{state:\"pending\",message:\"Waiting for media frame\"}:{state:\"active\",message:A.lut?\"Shader + LUT active\":\"Shader active\"};let _=Mr(b);return Ht(_)?{state:\"unavailable\",message:\"WebGL unavailable\"}:{state:\"inactive\",message:\"No grading applied\"}},d=()=>{if(!i){i=!0,n?.disconnect(),n=null;for(let y of Array.from(t))a(y)}};document.body&&(n=new MutationObserver(()=>u()),n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[We]}));let x={refresh:u,redraw:s,setGrading:l,setCompare:o,setSourceVisibility:f,getStatus:p,destroy:d},S=window;return S.__hf=S.__hf||{},S.__hf.colorGrading=x,u(),x}var Yn=class{constructor(t){me(this,\"_baseTime\",0);me(this,\"_playStartMs\",null);me(this,\"_rate\",1);me(this,\"_duration\",1/0);me(this,\"_nowMs\");me(this,\"_audioSource\",null);this._baseTime=t?.initialTime??0,this._rate=t?.rate??1,this._duration=t?.duration??1/0,this._nowMs=t?.nowMs??(()=>performance.now())}now(){if(this._playStartMs===null)return this._baseTime;if(this._audioSource){let i=null;if(\"currentTimeSeconds\"in this._audioSource)i=this._audioSource.currentTimeSeconds;else{let{el:r,compositionStart:o,mediaStart:a}=this._audioSource;!r.paused&&Number.isFinite(r.currentTime)&&(i=(r.currentTime-a)/(r.playbackRate>0?r.playbackRate:1)*this._rate+o)}if(i!==null)return Number.isFinite(this._duration)&&i>=this._duration?this._duration:Math.max(0,i)}let t=(this._nowMs()-this._playStartMs)/1e3,n=this._baseTime+t*this._rate;return Number.isFinite(this._duration)&&n>=this._duration?this._duration:Math.max(0,n)}play(){return this._playStartMs!==null||Number.isFinite(this._duration)&&this._baseTime>=this._duration?!1:(this._playStartMs=this._nowMs(),!0)}pause(){return this._playStartMs===null?!1:(this._baseTime=this.now(),this._playStartMs=null,!0)}seek(t){let n=Number.isFinite(this._duration)?Math.max(0,Math.min(t,this._duration)):Math.max(0,t);this._baseTime=n,this._playStartMs!==null&&(this._playStartMs=this._nowMs())}isPlaying(){return this._playStartMs!==null}setRate(t){let n=Number.isFinite(t)&&t>0?Math.max(.1,Math.min(5,t)):1;this._playStartMs!==null&&(this._baseTime=this.now(),this._playStartMs=this._nowMs()),this._rate=n}getRate(){return this._rate}setDuration(t){this._duration=Number.isFinite(t)&&t>0?t:1/0,this._baseTime>this._duration&&(this._baseTime=this._duration)}getDuration(){return this._duration}attachAudioSource(t){this._audioSource=t}detachAudioSource(){this._audioSource&&this._playStartMs!==null&&(this._baseTime=this.now(),this._playStartMs=this._nowMs()),this._audioSource=null}hasAudioSource(){return this._audioSource!==null}getSource(){if(this._audioSource&&this._playStartMs!==null){if(\"currentTimeSeconds\"in this._audioSource)return\"audio\";let{el:t}=this._audioSource;if(!t.paused&&Number.isFinite(t.currentTime))return\"audio\"}return\"monotonic\"}snapshot(){return{time:this.now(),playing:this.isPlaying(),rate:this._rate,duration:this._duration,source:this.getSource()}}reachedEnd(){return Number.isFinite(this._duration)&&this.now()>=this._duration}};function El(e){return!Number.isFinite(e)||e<=0?1:e}function Pm(e,t){t||e.paused||!bn().__hfDebug||console.debug(\"[hyperframes] webAudioTransport claimed fallback-playing element:\",e.currentSrc||e.getAttribute(\"src\")||\"\")}function Om(e,t){let{elapsed:n,mediaStart:i,scheduledAt:r,safeRate:o,clipDuration:a}=t,u=Number.isFinite(a)&&a>0,s=a*o;if(n>=0){let f=s-n;return u&&f<=0?!1:(u?e.start(0,n+i,f):e.start(0,n+i),!0)}let l=-n/o;return u?e.start(r+l,i,s):e.start(r+l,i),!0}var Xn=class{constructor(){me(this,\"_ctx\",null);me(this,\"_bufferCache\",new Map);me(this,\"_failedSrcs\",new Set);me(this,\"_activeSources\",[]);me(this,\"_masterGain\",null);me(this,\"_rateAnchorCtx\",0);me(this,\"_rateAnchorComp\",0);me(this,\"_rate\",1);me(this,\"_paused\",!0);me(this,\"_playGeneration\",0)}async init(){try{return this._ctx=new AudioContext,this._masterGain=this._ctx.createGain(),this._masterGain.connect(this._ctx.destination),!0}catch{return!1}}get context(){return this._ctx}getTime(){return!this._ctx||this._paused?-1:this._rateAnchorComp+(this._ctx.currentTime-this._rateAnchorCtx)*this._rate}async decodeAudioElement(t){let n=t.currentSrc||t.getAttribute(\"src\");if(!n)return null;if(this._bufferCache.has(n))return this._bufferCache.get(n);if(this._failedSrcs.has(n)||!this._ctx)return null;let i;try{let r=await fetch(n,{cache:\"no-store\"});if(!r.ok)return T(\"webAudioTransport.fetch\",new Error(`${r.status} ${n}`)),null;i=await r.arrayBuffer()}catch(r){return T(\"webAudioTransport.fetch\",r),null}try{let r=await this._ctx.decodeAudioData(i);return this._bufferCache.set(n,r),r}catch(r){return this._failedSrcs.add(n),T(\"webAudioTransport.decode\",r),null}}startGeneration(){return this._playGeneration+=1,this._playGeneration}currentGeneration(){return this._playGeneration}async schedulePlayback(t,n,i,r,o,a,u,s=1,l=Number.POSITIVE_INFINITY){if(!this._ctx||!this._masterGain||u!==this._playGeneration)return null;try{if(this._ctx.state===\"suspended\"&&await this._ctx.resume(),u!==this._playGeneration)return null;let f=El(s),p=this._ctx.createBufferSource();p.buffer=n,p.playbackRate.value=f;let d=this._ctx.createGain();d.gain.value=a,p.connect(d),d.connect(this._masterGain);let x=o-i,S=this._ctx.currentTime;if(this._rate=f,this._rateAnchorCtx=S,this._rateAnchorComp=o,!Om(p,{elapsed:x,mediaStart:r,scheduledAt:S,safeRate:f,clipDuration:l}))return p.disconnect(),d.disconnect(),null;let y=t.muted;t.muted=!0,Pm(t,y);let b={el:t,sourceNode:p,gainNode:d,compositionStart:i,mediaStart:r,scheduledAt:S,priorMuted:y,bounded:Number.isFinite(l)&&l>0};return this._activeSources.push(b),this._paused=!1,p.addEventListener(\"ended\",()=>{let A=this._activeSources.indexOf(b);A!==-1&&(this._activeSources.splice(A,1),t.muted=y,this._activeSources.length===0&&(this._paused=!0))}),b}catch(f){return T(\"webAudioTransport.schedule\",f),null}}setRate(t){let n=El(t);if(n===this._rate)return!1;this._ctx&&!this._paused&&(this._rateAnchorComp=this.getTime(),this._rateAnchorCtx=this._ctx.currentTime),this._rate=n;for(let i of this._activeSources)try{i.sourceNode.playbackRate.value=n}catch(r){T(\"webAudioTransport.setRate\",r)}return!0}hasBoundedActiveSources(){return this._activeSources.some(t=>t.bounded)}stopAll(){for(let t of this._activeSources){try{t.sourceNode.stop(),t.sourceNode.disconnect(),t.gainNode.disconnect()}catch{}t.el.muted=t.priorMuted}this._activeSources=[],this._paused=!0}setVolume(t){this._masterGain&&(this._masterGain.gain.value=Math.max(0,Math.min(1,t)))}setElementVolume(t,n){let i=Math.max(0,Math.min(1,n));for(let r of this._activeSources)if(r.el===t)try{r.gainNode.gain.value=i}catch(o){T(\"webAudioTransport.setElementVolume\",o)}}setMuted(t){this._masterGain&&(this._masterGain.gain.value=t?0:1)}isActive(){return this._activeSources.length>0&&!this._paused}ownsElement(t){return!this._paused&&this._activeSources.some(n=>n.el===t)}destroy(){if(this.stopAll(),this._bufferCache.clear(),this._failedSrcs.clear(),this._ctx)try{this._ctx.close()}catch{}this._ctx=null,this._masterGain=null}};var Al=\"data-hf-studio-manual-edit-gesture\";function wl(e){return!Number.isInteger(e.tick)||e.tick<=0||e.tick%60!==0?!1:!(e.isPlaying&&e.hasCapturedTimeline&&e.currentTimeSeconds<2)}var Dr=\"data-hf-authored-duration\",Ir=\"data-hf-authored-end\",Cl=!1;function $e(e){if(e){if(typeof e.pause!=\"function\"){Cl||(Cl=!0,Ke(\"timeline_missing_pause\",{}));return}try{e.pause()}catch(t){T(\"runtime.timeline.pause\",t)}}}function Bm(){let e=window.__HF_EXPORT_RENDER_SEEK_CONFIG,t=e?.fps,n=e?.fpsSource,i=Number(t);return!e||t==null?{fps:null,source:\"default\",rawFpsSource:n,rawFps:t,fallbackReason:\"missing\"}:!Number.isFinite(i)||i<=0?{fps:null,source:\"default\",rawFpsSource:n,rawFps:t,fallbackReason:\"invalid\"}:{fps:i,source:n===\"render-options\"||n===\"default\"?n:\"unknown\",rawFpsSource:n,rawFps:t,fallbackReason:e.fpsFallbackReason}}function _l(){let e=es();$n(document),Fr(document);let t=Bm();e.canonicalFps=t.fps??e.canonicalFps,ao(e.canonicalFps),window.__HF_EXPORT_RENDER_SEEK_CONFIG&&console.info(\"[hyperframes] render runtime fps\",{canonicalFps:e.canonicalFps,source:t.source,rawFpsSource:t.rawFpsSource,rawFps:t.rawFps,fallbackReason:t.fallbackReason});let n=null,i=null,r=null,o=[],a=new Set,u=null;if(typeof window.__hfRuntimeTeardown==\"function\")try{window.__hfRuntimeTeardown()}catch(c){T(\"runtime.init.site1\",c)}let s=new Yn;e.transportClock=s;let l=new Xn,f=!1;l.init().then(c=>{f=c}),(()=>{let c=window.gsap,m=window;if(!(!c?.registerPlugin||m.__hfAutoNoopRegistered))try{c.registerPlugin({name:\"_auto\",init:()=>!1}),m.__hfAutoNoopRegistered=!0}catch{}})(),document.documentElement&&(document.documentElement.style.margin=\"0\",document.documentElement.style.padding=\"0\",document.documentElement.style.overflow=\"hidden\"),document.body&&(document.body.style.margin=\"0\",document.body.style.padding=\"0\",document.body.style.overflow=\"hidden\");try{ho(document)}catch(c){T(\"runtime.init.cssVariables\",c)}window.__timelines=window.__timelines||{};let d=()=>{let c=document.querySelector('[data-composition-id][data-root=\"true\"]');if(c instanceof HTMLElement)return c;let m=Array.from(document.querySelectorAll(\"[data-composition-id]\"));return m.find(g=>!g.parentElement?.closest(\"[data-composition-id]\"))??m[0]??null};if(Array.isArray(window.__timelines)){let c=window.__timelines,m=d()?.getAttribute(\"data-composition-id\")??\"root\",g={};if(c.length===1)g[m]=c[0];else for(let h=0;h<c.length;h++)g[`tl-${h}`]=c[h];window.__timelines=g}let x=d();x&&!x.hasAttribute(\"data-start\")&&x.setAttribute(\"data-start\",\"0\");let S=c=>{o.push(c)},y=(c,m,g)=>{let h=g??`${c}:${JSON.stringify(m)}`;a.has(h)||(a.add(h),ge({source:\"hf-preview\",type:\"diagnostic\",code:c,details:m}))},b=c=>{let m={scale:1,focusX:960,focusY:540},g=[],h=[],E={time:c.getTime(),duration:c.getDuration(),isPlaying:c.isPlaying(),renderMode:!1,timelineDirty:!1};return{play:c.play,pause:c.pause,seek:c.seek,getTime:c.getTime,getDuration:c.getDuration,isPlaying:c.isPlaying,getMainTimeline:()=>null,getElementBounds:()=>{},getElementsAtPoint:()=>{},setElementPosition:()=>{},previewElementPosition:()=>{},setElementKeyframes:()=>{},setElementScale:()=>{},setElementFontSize:()=>{},setElementTextContent:()=>{},setElementTextColor:()=>{},setElementTextShadow:()=>{},setElementTextFontWeight:()=>{},setElementTextFontFamily:()=>{},setElementTextOutline:()=>{},setElementTextHighlight:()=>{},setElementVolume:()=>{},setStageZoom:()=>{},getStageZoom:()=>m,setStageZoomKeyframes:()=>{},getStageZoomKeyframes:()=>g,addElement:()=>!1,removeElement:()=>!1,updateElementTiming:()=>!1,setElementTiming:()=>{},updateElementSrc:()=>!1,updateElementLayer:()=>!1,updateElementBasePosition:()=>!1,markTimelineDirty:()=>{},isTimelineDirty:()=>!1,rebuildTimeline:()=>{},ensureTimeline:()=>{},enableRenderMode:()=>{},disableRenderMode:()=>{},renderSeek:c.renderSeek,getElementVisibility:()=>({visible:!1}),getVisibleElements:()=>h,getRenderState:()=>({...E,time:c.getTime(),duration:c.getDuration(),isPlaying:c.isPlaying()})}},A=1/60,_=.75,M=.05,H=100,k=240,v=c=>{if(c instanceof Error)return c.message||String(c);if(typeof c==\"string\")return c;try{return JSON.stringify(c)}catch{return String(c??\"\")}},w=c=>{let m=c.toLowerCase();return m.includes(\"cannot read properties of null\")||m.includes(\"cannot set properties of null\")?{code:\"runtime_null_dom_access\",category:\"dom-null-access\"}:m.includes(\"failed to execute 'queryselector'\")?{code:\"runtime_invalid_selector\",category:\"selector-invalid\"}:m.includes(\"is not defined\")?{code:\"runtime_reference_missing\",category:\"reference-missing\"}:{code:\"runtime_script_error\",category:\"script-error\"}},C=c=>{if(c==null||c.trim()===\"\")return null;let m=Number.parseFloat(c);return!Number.isFinite(m)||m<=0?null:`${m}px`},F=()=>d(),L=()=>{let c=F();if(!c)return;let m=C(c.getAttribute(\"data-width\")),g=C(c.getAttribute(\"data-height\"));m&&(c.style.width=m),g&&(c.style.height=g),m&&c.style.setProperty(\"--comp-width\",m),g&&c.style.setProperty(\"--comp-height\",g)},R=()=>{let c=F(),m=Array.from(document.querySelectorAll(\"[data-composition-id]\")).filter(g=>g.hasAttribute(\"data-duration\")||g.hasAttribute(\"data-end\"));for(let g of m){if(c&&g===c)continue;let h=g.getAttribute(\"data-duration\"),E=g.getAttribute(\"data-end\");h!=null&&!g.hasAttribute(Dr)&&g.setAttribute(Dr,h),E!=null&&!g.hasAttribute(Ir)&&g.setAttribute(Ir,E),g.removeAttribute(\"data-duration\"),g.removeAttribute(\"data-end\")}},z=()=>{let c=F();if(!c)return;c.style.position||(c.style.position=\"relative\"),c.style.overflow=\"hidden\";let m=C(c.getAttribute(\"data-width\")),g=C(c.getAttribute(\"data-height\"));m&&(c.style.width=m),g&&(c.style.height=g);let h=Array.from(c.children);for(let E of h){let N=E.tagName.toLowerCase();if(N===\"script\"||N===\"style\"||N===\"link\"||N===\"meta\"||!E.hasAttribute(\"data-start\")||E.hasAttribute(\"data-hf-autostamped\"))continue;let B=(E.style.top===\"0px\"||E.style.top===\"0\")&&(E.style.left===\"0px\"||E.style.left===\"0\")&&E.style.width===\"100%\"&&E.style.height===\"100%\",Q=/translate\\(\\s*-50%\\s*,\\s*-50%\\s*\\)/.test(E.style.transform);if(B&&Q&&!E.hasAttribute(\"data-width\")&&!E.hasAttribute(\"data-height\")){let ye=E.style.top,Lt=E.style.left,Se=E.style.width,Rt=E.style.height;E.style.top=\"\",E.style.left=\"\",E.style.width=\"\",E.style.height=\"\";let ne=window.getComputedStyle(E);ne.top!==\"auto\"||ne.bottom!==\"auto\"||ne.left!==\"auto\"||ne.right!==\"auto\"||ne.width!==\"0px\"||ne.height!==\"0px\"||(E.style.top=ye,E.style.left=Lt,E.style.width=Se,E.style.height=Rt)}let q=window.getComputedStyle(E),de=q.position;if(de!==\"absolute\"&&de!==\"fixed\"&&(E.style.position=\"absolute\"),!!E.style.top||!!E.style.bottom||q.top!==\"auto\"||q.bottom!==\"auto\"||(E.style.top=\"0\"),!!E.style.left||!!E.style.right||q.left!==\"auto\"||q.right!==\"auto\"||(E.style.left=\"0\"),N!==\"audio\"){let ye=C(E.getAttribute(\"data-width\")),Lt=C(E.getAttribute(\"data-height\")),Se=q.width!==\"0px\"&&q.width!==\"auto\",Rt=q.height!==\"0px\"&&q.height!==\"auto\";ye?!E.style.width&&!Se&&(E.style.width=ye):!E.style.width&&q.width===\"0px\"&&(E.style.width=\"100%\"),Lt?!E.style.height&&!Rt&&(E.style.height=Lt):!E.style.height&&q.height===\"0px\"&&(E.style.height=\"100%\")}}},P=(c,m=0,g)=>Je({timelineRegistry:window.__timelines??{},includeAuthoredTimingAttrs:g?.includeAuthoredTimingAttrs??!0}).resolveStartForElement(c,m),X=(c,m)=>Je({timelineRegistry:window.__timelines??{},includeAuthoredTimingAttrs:m?.includeAuthoredTimingAttrs??!0}).resolveDurationForElement(c),I=(c,m=0)=>!c.hasAttribute(\"data-hf-auto-start\")&&c.hasAttribute(\"data-start\")?Math.max(0,Number(c.getAttribute(\"data-start\")??0)||0)+m:P(c,m),ie=(c,m)=>{let g=c.tagName.toLowerCase();if(g===\"script\"||g===\"style\"||g===\"link\"||g===\"meta\")return!1;let h=g===\"video\"||g===\"audio\"?I(c,0):P(c,0),E=X(c),N=c.getAttribute(\"data-composition-id\");if(N){let Q=(window.__timelines??{})[N],q=null;if(Q&&typeof Q.duration==\"function\"){let pe=Number(Q.duration());Number.isFinite(pe)&&pe>0&&(q=pe)}!(c.hasAttribute(\"data-duration\")||c.hasAttribute(\"data-end\")||c.hasAttribute(Dr)||c.hasAttribute(Ir))&&(E==null||E<=0)&&q!=null&&(E=q)}let B=E!=null&&E>0?h+E:Number.POSITIVE_INFINITY;return m>=h&&(Number.isFinite(B)?m<B:!0)},Fe=!!document.querySelector(\"[data-composition-src]\"),j=!1;{let c=document.querySelectorAll(\"[data-composition-id]:not([data-composition-src])\");for(let m of c){let g=m.getAttribute(\"data-composition-id\");if(g&&m.children.length===0&&document.querySelector(`template#${CSS.escape(g)}-template`)){j=!0;break}}}let Y=!Fe&&!j,O=c=>{if(!c||typeof c.duration!=\"function\")return null;try{let m=Number(c.duration());return Number.isFinite(m)?Math.max(0,m):null}catch{return null}},V=c=>typeof c==\"number\"&&Number.isFinite(c)&&c>A,Ae=c=>{let m=Number(c.getAttribute(\"data-duration\"));if(Number.isFinite(m)&&m>0)return m;let g=Number(c.getAttribute(\"data-playback-start\")??c.getAttribute(\"data-media-start\")??\"0\"),h=Number.isFinite(g)?Math.max(0,g):0;return Number.isFinite(c.duration)&&c.duration>h?Math.max(0,c.duration-h):null},G=()=>{let c=Array.from(document.querySelectorAll(\"video[data-start], audio[data-start]\"));if(c.length===0)return null;let m=0;for(let g of c){let h=I(g,0);if(!Number.isFinite(h))continue;let E=Ae(g);E==null||E<=A||(m=Math.max(m,Math.max(0,h)+E))}return m>A?m:null},D=()=>{let c=F();if(!c)return null;let m=window.__timelines??{},g=Je({timelineRegistry:m,includeAuthoredTimingAttrs:!0}),h=0,E=Number.parseFloat(c.getAttribute(\"data-duration\")??\"\");Number.isFinite(E)&&E>0&&(h=E);let N=Array.from(c.querySelectorAll(\"[data-composition-id][data-start]\"));for(let B of N){if(!(B instanceof Element)||B.parentElement?.closest(\"[data-composition-id]\")!==c)continue;let q=g.resolveStartForElement(B,0),de=g.resolveDurationForElement(B);!Number.isFinite(q)||de==null||de<=0||(h=Math.max(h,Math.max(0,q)+de))}return h>A?h:null},U=()=>{let c=G();return typeof c!=\"number\"||!Number.isFinite(c)||c<=A?null:c},le=c=>V(c)?Math.max(A,c*_):A,oe=()=>{let c=0;for(let m of e.deterministicAdapters){let g=m.getInferredDurationSeconds;if(typeof g!=\"function\")continue;let h=null;try{h=g()}catch(E){T(\"runtime.init.adapterDuration\",E)}typeof h==\"number\"&&Number.isFinite(h)&&h>0&&(c=Math.max(c,h))}return c>A?c:null},W=(c,m=0)=>{let g=O(c),h=U(),E=D(),N=oe(),B=Math.max(h??0,E??0,N??0),Q=Number.isFinite(m)&&m>A?m:0,q=0;return V(g)?q=Math.max(g,B,Q):V(B)?q=Math.max(B,Q):q=Q,q>0?Math.max(0,q):0},$=()=>{let c=window.__timelines??{},m=ne=>{let Z=Object.entries(c).filter(re=>!!re[1]&&typeof re[1].play==\"function\"&&typeof re[1].pause==\"function\");if(Z.length!==1)return{timeline:null};let ce=Z[0];if(!ce)return{timeline:null};let[fe,he]=ce;return{timeline:he,selectedTimelineIds:[fe],selectedDurationSeconds:O(he),diagnostics:{code:\"root_timeline_sole_registered_fallback\",details:{reason:ne,soleTimelineId:fe}}}},g=Je({timelineRegistry:c,includeAuthoredTimingAttrs:!0}),h=U(),E=D(),N=Math.max(h??0,E??0)||null,B=le(N),Q=ne=>{let Z=document.querySelector(`[data-composition-id=\"${CSS.escape(ne)}\"]`);return Z?g.resolveStartForElement(Z,0):0},q=ne=>{let Z=window.gsap;if(!Z||typeof Z.timeline!=\"function\")return null;let ce=Z.timeline({paused:!0});for(let fe of ne)ce.add(fe.timeline,Q(fe.compositionId));return ce},de=(ne,Z)=>{if(!V(ne))return null;let ce=window.gsap;if(!ce||typeof ce.timeline!=\"function\")return null;let fe=ce.timeline({paused:!0});if(Z)try{fe.add(Z,0)}catch(re){T(\"runtime.init.site2\",re)}let he=fe;if(typeof he.to==\"function\")try{he.to({},{duration:ne})}catch(re){T(\"runtime.init.site3\",re)}return fe},pe=(ne,Z)=>{let ce=ne;if(typeof ce.getChildren!=\"function\")return[];try{let fe=ce.getChildren(!0,!0,!0)??[];if(!Array.isArray(fe))return[];let he=[];for(let re of Z)if(!fe.some(Le=>Le===re.timeline))try{let Le=Q(re.compositionId);ne.add(re.timeline,Le),he.push(re.compositionId)}catch(Le){T(\"runtime.init.site4\",Le)}return he}catch{return[]}},se=F(),te=se?.getAttribute(\"data-composition-id\")??null;if(!te)return m(\"root_missing_composition_id\");let ye=c[te]??null,Se=(()=>{if(!se)return[];let ne=new Set,Z=Array.from(se.querySelectorAll(\"[data-composition-id]\")),ce=[];for(let fe of Z){let he=fe.getAttribute(\"data-composition-id\");if(!he||he===te||ne.has(he))continue;ne.add(he);let re=c[he]??null;if(!re||typeof re.play!=\"function\"||typeof re.pause!=\"function\")continue;let _e=O(re);ce.push({compositionId:he,timeline:re,durationSeconds:_e??0})}return ce})(),Rt=ne=>{for(let Z of ne){let ce=Z.timeline;if(typeof ce.paused==\"function\")try{ce.paused(!1)}catch(fe){T(\"runtime.init.site5\",fe)}}};if(Se.length>0&&Rt(Se),ye){let ne=Se.length>0?pe(ye,Se):[];if((Se.length>0||!document.querySelector(\"[data-composition-id]:not([data-composition-id='\"+te+\"'])\"))&&(K=!0),ne.length>0)try{let re=ye.time();ye.seek(re,!1)}catch{}let Z=O(ye);if(!V(Z)&&Se.length>0){let re=Se.map(hu=>hu.compositionId),_e=q(Se),Le=O(_e);if(_e&&V(Le))return{timeline:_e,selectedTimelineIds:re,selectedDurationSeconds:Le,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_unusable_fallback\",details:{rootCompositionId:te,rootDurationSeconds:Z,fallbackKind:\"composite_by_root_children\",minCandidateDurationSeconds:B,selectedDurationSeconds:Le,mediaDurationFloorSeconds:h,authoredCompositionDurationFloorSeconds:E,selectedTimelineIds:re,autoNestedChildren:ne}}};let fi=de(N??0,ye),mi=O(fi);if(fi&&V(mi))return{timeline:fi,selectedTimelineIds:[te],selectedDurationSeconds:mi,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_unusable_media_floor_fallback\",details:{rootCompositionId:te,rootDurationSeconds:Z,fallbackKind:\"media_duration_floor\",mediaDurationFloorSeconds:h,authoredCompositionDurationFloorSeconds:E,selectedDurationSeconds:mi,selectedTimelineIds:[te],autoNestedChildren:ne}}}}if(!V(Z)&&Se.length===0){let re=de(N??0,ye),_e=O(re);if(re&&V(_e))return{timeline:re,selectedTimelineIds:[te],selectedDurationSeconds:_e,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_unusable_media_floor_fallback\",details:{rootCompositionId:te,rootDurationSeconds:Z,fallbackKind:\"media_duration_floor\",mediaDurationFloorSeconds:h,authoredCompositionDurationFloorSeconds:E,selectedDurationSeconds:_e,selectedTimelineIds:[te]}}}}let ce=se?.getAttribute(\"data-duration\"),fe=ce?parseFloat(ce):null,he=Math.max(V(fe)?fe:0,E??0);if(he>0&&V(he)&&V(Z)&&he>=Z+.5){let re=ye;if(typeof re.to==\"function\")try{re.to({},{duration:0},he)}catch(Le){T(\"runtime.init.site6\",Le)}let _e=O(ye);if(V(_e))return{timeline:ye,selectedTimelineIds:[te],selectedDurationSeconds:_e,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_padded_to_declared_duration\",details:{rootCompositionId:te,rootDurationSeconds:Z,rootDeclaredDur:fe,authoredCompositionDurationFloorSeconds:E,newDur:_e}}}}return{timeline:ye,selectedTimelineIds:[te],selectedDurationSeconds:Z,mediaDurationFloorSeconds:h,diagnostics:ne.length>0?{code:\"root_timeline_auto_nested_children\",details:{rootCompositionId:te,selectedDurationSeconds:Z,autoNestedChildren:ne}}:void 0}}if(Se.length>0){let ne=Se.map(fe=>fe.compositionId),Z=q(Se),ce=O(Z);if(Z)return{timeline:Z,selectedTimelineIds:ne,selectedDurationSeconds:ce,mediaDurationFloorSeconds:h,diagnostics:{code:\"root_timeline_missing_fallback\",details:{rootCompositionId:te,fallbackKind:\"composite_by_root_children\",minCandidateDurationSeconds:B,selectedDurationSeconds:ce,mediaDurationFloorSeconds:h,selectedTimelineIds:ne}}}}return m(\"root_composition_id_unmatched_in_registry\")},K=!1,we=()=>{if(!Y)return!1;let c=e.capturedTimeline,m=O(c),g=V(m);if(c&&g&&K)return!1;let h=$();if(!h.timeline)return!1;if(c&&c===h.timeline)return typeof c.timeScale==\"function\"&&c.timeScale(e.playbackRate),!1;e.capturedTimeline=h.timeline,typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);let E=W(e.capturedTimeline,0);if(E<=0&&typeof e.capturedTimeline.progress==\"function\"&&(e.capturedTimeline.progress(1,!0),e.capturedTimeline.progress(0,!1),$e(e.capturedTimeline)),E>0){try{s.setDuration(E)}catch{}if(typeof e.capturedTimeline.totalTime==\"function\"){typeof e.capturedTimeline.progress==\"function\"&&e.capturedTimeline.progress(1e-4,!0);let B=Math.max(0,e.currentTime||0);e.capturedTimeline.totalTime(B,!1),$e(e.capturedTimeline)}let N=window.__hfStudioManualEditsApply;typeof N==\"function\"&&N(),$n(document)}if(h.diagnostics&&ge({source:\"hf-preview\",type:\"diagnostic\",code:h.diagnostics.code,details:h.diagnostics.details}),ge({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_bound\",details:{selectedTimelineIds:h.selectedTimelineIds??[],selectedDurationSeconds:h.selectedDurationSeconds??null,mediaDurationFloorSeconds:h.mediaDurationFloorSeconds??null}}),window.parent!==window){let N=F(),B=E>0?E:0,Q=String(B>0?B:1),q=new Set,de=new Set(document.querySelectorAll(\"[data-start]\")),pe=se=>{let te=se.parentElement;for(;te&&te!==N;){if(de.has(te))return!0;te=te.parentElement}return!1};if(e.capturedTimeline.getChildren)try{for(let se of e.capturedTimeline.getChildren(!0))if(typeof se.targets==\"function\")for(let te of se.targets())te instanceof HTMLElement&&te!==N&&(te.hasAttribute(\"data-start\")||pe(te)||q.has(te)||(q.add(te),te.setAttribute(\"data-start\",\"0\"),te.setAttribute(\"data-duration\",Q),te.setAttribute(\"data-hf-autostamped\",\"1\")))}catch{}if(N instanceof HTMLElement)for(let se of N.querySelectorAll(\"[id]\"))se instanceof HTMLElement&&se!==N&&(se.hasAttribute(\"data-start\")||pe(se)||q.has(se)||se.tagName===\"SCRIPT\"||se.tagName===\"STYLE\"||se.tagName===\"LINK\"||(q.add(se),se.setAttribute(\"data-start\",\"0\"),se.setAttribute(\"data-duration\",Q),se.setAttribute(\"data-hf-autostamped\",\"1\")))}for(let N of Tt)mn.delete(N),qr(N);return!0};window.__hfForceTimelineRebind=()=>{K=!1,we(),Jr(e.currentTime)};let Ce=()=>{let c=F();if(!(c instanceof HTMLElement))return;let m=c.getBoundingClientRect(),g=Number(c.getAttribute(\"data-width\")),h=Number(c.getAttribute(\"data-height\")),E=window.getComputedStyle(c),N=Number.isFinite(g)&&g>0&&Number.isFinite(h)&&h>0,B=m.width<=0||m.height<=0||c.clientWidth<=0||c.clientHeight<=0;!N||!B||y(\"root_stage_layout_zero\",{compositionId:c.getAttribute(\"data-composition-id\")??null,declaredWidth:g,declaredHeight:h,rectWidth:Math.round(m.width),rectHeight:Math.round(m.height),clientWidth:c.clientWidth,clientHeight:c.clientHeight,display:E.display,visibility:E.visibility,overflow:E.overflow},`root-stage-layout-zero:${c.getAttribute(\"data-composition-id\")??\"unknown\"}`)},Ft=()=>{e.tornDown||(u!=null&&window.cancelAnimationFrame(u),u=window.requestAnimationFrame(()=>{u=null,Ce()}))},Ge=()=>{i=c=>{let m=v(c.error??c.message).slice(0,k);if(!m)return;let g=w(m);ge({source:\"hf-preview\",type:\"diagnostic\",code:g.code,details:{category:g.category,message:m,filename:c.filename||null,line:Number.isFinite(c.lineno)?c.lineno:null,column:Number.isFinite(c.colno)?c.colno:null}})},r=c=>{let m=v(c.reason).slice(0,k);if(!m)return;let g=w(m);ge({source:\"hf-preview\",type:\"diagnostic\",code:`${g.code}_unhandled_rejection`,details:{category:`${g.category}-unhandled-rejection`,message:m}})},window.addEventListener(\"error\",i),window.addEventListener(\"unhandledrejection\",r)},Ql=()=>{let c=Array.from(document.querySelectorAll(\"img, video, audio, source, link[rel='stylesheet']\"));for(let g of c){let h=()=>{if(!(g instanceof Element))return;let E=g.tagName.toLowerCase(),N=g.getAttribute(\"src\")??g.getAttribute(\"href\")??g.getAttribute(\"poster\")??null,B=E===\"link\"?\"runtime_stylesheet_load_failed\":\"runtime_asset_load_failed\";y(B,{tagName:E,assetUrl:N,currentSrc:(g instanceof HTMLImageElement||g instanceof HTMLMediaElement)&&g.currentSrc||null,readyState:g instanceof HTMLMediaElement?g.readyState:null,networkState:g instanceof HTMLMediaElement?g.networkState:null},`${B}:${E}:${N??\"unknown\"}`)};g.addEventListener(\"error\",h),S(()=>{g.removeEventListener(\"error\",h)})}let m=document.fonts;m&&m.ready.then(()=>{if(e.tornDown)return;let g=Array.from(m).filter(h=>h.status===\"error\").map(h=>h.family).filter(h=>!!h).slice(0,10);g.length!==0&&y(\"runtime_font_load_issue\",{failedFamilies:g,totalFaces:Array.from(m).length},`runtime-font-load-issue:${g.join(\"|\")}`)}).catch(()=>{})},Zl=(c,m)=>{if(!c.timeline)return!1;let g=e.capturedTimeline;if(g&&g===c.timeline)return!1;let h=Math.max(0,e.currentTime||0),E=e.isPlaying;e.capturedTimeline=c.timeline,typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);try{$e(e.capturedTimeline),typeof e.capturedTimeline.seek==\"function\"&&e.capturedTimeline.seek(h,!1),E&&typeof e.capturedTimeline.play==\"function\"&&e.capturedTimeline.play()}catch(N){T(\"runtime.init.site7\",N)}return ge({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_loop_guard_rebind\",details:{reason:m,previousTime:h,selectedTimelineIds:c.selectedTimelineIds??[],selectedDurationSeconds:c.selectedDurationSeconds??null,mediaDurationFloorSeconds:c.mediaDurationFloorSeconds??null}}),!0},it=null,zr=!1,Tt=new Set,mn=new WeakMap,pn=()=>{e.tornDown||(it!=null&&window.clearTimeout(it),it=window.setTimeout(()=>{if(e.tornDown)return;it=null;let c=$();if(!c.timeline||!V(c.mediaDurationFloorSeconds??null))return;if(!e.capturedTimeline){we()&&(rt(),Te(!0));return}if(zr)return;let g=O(e.capturedTimeline),h=c.selectedDurationSeconds??O(c.timeline);V(h)&&(!V(g)||h>=g+M)&&Zl(c,\"manual\")&&(zr=!0,ge({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_rebind_after_media_metadata\",details:{previousDurationSeconds:g??null,selectedDurationSeconds:h??null,selectedTimelineIds:c.selectedTimelineIds??[],mediaDurationFloorSeconds:c.mediaDurationFloorSeconds??null}}),rt(),Te(!0))},H))},jr=c=>{c.currentTarget instanceof HTMLMediaElement&&Vo(c.currentTarget)},$r=c=>{c.currentTarget instanceof HTMLMediaElement&&zo(c.currentTarget)},eu=()=>{for(let c of Tt)c.removeEventListener(\"loadedmetadata\",pn),c.removeEventListener(\"durationchange\",pn),c.removeEventListener(\"loadedmetadata\",jr),c.removeEventListener(\"error\",$r);Tt.clear()},ii=()=>{if(e.tornDown)return;let c=Array.from(document.querySelectorAll(\"video, audio\"));for(let m of c){if(Tt.has(m))continue;Tt.add(m);let g=Number.parseFloat(m.dataset.volume??\"\");Number.isFinite(g)&&(m.volume=Math.max(0,Math.min(1,g))),m.addEventListener(\"loadedmetadata\",pn),m.addEventListener(\"durationchange\",pn),m.addEventListener(\"loadedmetadata\",jr),m.addEventListener(\"error\",$r),Wo(m),m.preload!==\"auto\"&&(m.preload=\"auto\"),m.readyState<HTMLMediaElement.HAVE_FUTURE_DATA&&m.load(),qr(m)}},qr=c=>{mn.has(c)||Io(c,e.capturedTimeline,W(e.capturedTimeline,0),mn)},ri=new WeakMap,Kr=c=>{let m=ri.get(c);if(m!==void 0)return m;let g=window.getComputedStyle(c).position,h=g===\"static\"||g===\"relative\"||g===\"sticky\";return ri.set(c,h),h},oi=new WeakMap,tu=c=>{let m=oi.get(c);if(m!==void 0)return m;let g=c.querySelector(\"[data-start]\")===null;return oi.set(c,g),g},nu=()=>{ri=new WeakMap,oi=new WeakMap},si=new WeakMap,hn=new WeakSet,Jr=c=>{let m=Array.from(document.querySelectorAll(\"[data-start]\")),g=F();for(let h of m){if(!(h instanceof HTMLElement))continue;if(h.hasAttribute(\"data-hidden\")){hn.has(h)||(si.set(h,h.style.getPropertyValue(\"display\")),hn.add(h)),h.style.display=\"none\",(h instanceof HTMLVideoElement||h instanceof HTMLImageElement)&&n?.setSourceVisibility(h,!1);continue}if(hn.has(h)){let N=si.get(h);N?h.style.display=N:h.style.removeProperty(\"display\"),si.delete(h),hn.delete(h)}let E=ie(h,c);if(E){let N=h.parentElement;for(;N&&N!==g;){if(N instanceof HTMLElement&&N.hasAttribute(\"data-start\")&&!ie(N,c)){E=!1;break}N=N.parentElement}}h.style.visibility=E?\"visible\":\"hidden\",(h instanceof HTMLVideoElement||h instanceof HTMLImageElement)&&n?.setSourceVisibility(h,E),E?Kr(h)&&h.style.removeProperty(\"display\"):Kr(h)&&tu(h)&&(h.style.display=\"none\")}},Me=()=>{let c=h=>{let E=h.closest(\"[data-composition-id]\"),N=E?P(E,0):null,B=E?X(E,{includeAuthoredTimingAttrs:!0}):null;return{compositionRoot:E,inheritedStart:N,inheritedDuration:B}},m=Oo({shouldIncludeElement:h=>h.hasAttribute(\"data-start\")||!!c(h).compositionRoot,resolveStartSeconds:h=>{let E=c(h);return I(h,E.inheritedStart??0)},resolveDurationSeconds:h=>{let E=c(h),N=I(h,E.inheritedStart??0),B=Number.parseFloat(h.dataset.playbackStart??h.dataset.mediaStart??\"0\")||0,Q=E.inheritedStart!=null&&E.inheritedDuration!=null&&E.inheritedDuration>0?Math.max(0,E.inheritedStart+E.inheritedDuration-N):null,q=Number.isFinite(h.duration)&&h.duration>B?Math.max(0,h.duration-B):null,de=Number.parseFloat(h.dataset.duration??\"\"),pe=Number.isFinite(de)&&de>0?de:null;return Po({isVideo:h.tagName===\"VIDEO\",sourceDuration:q,hostRemaining:Q,explicitDuration:pe})}});for(let h of m.mediaClips){let E=mn.get(h.el);E&&(h.volumeKeyframes=E)}let g=e.mediaForceSyncNextTick;g&&(e.mediaForceSyncNextTick=!1),e.nativeMediaSyncDisabled||Bo({clips:m.mediaClips,timeSeconds:e.currentTime,playing:e.isPlaying,playbackRate:e.playbackRate,outputMuted:e.mediaOutputMuted||!e.webAudioMediaDisabled&&!e.nativeMediaSyncDisabled&&l.isActive(),userMuted:e.bridgeMuted,userVolume:e.bridgeVolume,forceSync:g,onElementVolume:(h,E)=>l.setElementVolume(h,E),isWebAudioOwned:h=>l.ownsElement(h),onAutoplayBlocked:()=>{e.mediaAutoplayBlockedPosted||(e.mediaAutoplayBlockedPosted=!0,ge({source:\"hf-preview\",type:\"media-autoplay-blocked\"}))}}),Jr(e.currentTime)},Te=c=>{let m=Math.max(0,Math.round((e.currentTime||0)*e.canonicalFps)),g=Date.now();(c||m!==e.bridgeLastPostedFrame||e.isPlaying!==e.bridgeLastPostedPlaying||e.bridgeMuted!==e.bridgeLastPostedMuted||g-e.bridgeLastPostedAt>=e.bridgeMaxPostIntervalMs)&&(e.bridgeLastPostedFrame=m,e.bridgeLastPostedPlaying=e.isPlaying,e.bridgeLastPostedMuted=e.bridgeMuted,e.bridgeLastPostedAt=g,ge({source:\"hf-preview\",type:\"state\",frame:m,isPlaying:e.isPlaying,muted:e.bridgeMuted,playbackRate:e.playbackRate}))},ai=\"\",Yr=0,iu=()=>{let c=\"\";for(let m of document.querySelectorAll(\"[data-start]\"))c+=`${m.id}:${m.tagName}|`;return c},rt=()=>{R(),L(),z();let c=F();if(c){let h=C(c.getAttribute(\"data-width\")),E=C(c.getAttribute(\"data-height\")),N=h?parseInt(h,10):0,B=E?parseInt(E,10):0;N>0&&B>0&&ge({source:\"hf-preview\",type:\"stage-size\",width:N,height:B})}we();let m=ls({canonicalFps:e.canonicalFps});window.__clipManifest=m;let g=iu();if(ai!==g&&nu(),!window.__clipTree||ai!==g){let h=window;window.__clipTree=ts({startResolver:Je({timelineRegistry:h.__timelines??{},includeAuthoredTimingAttrs:!0}),timelineRegistry:h.__timelines??{},rootDuration:m.durationInFrames/e.canonicalFps}),ai=g}ge(m),Ft()},li=c=>Number.isFinite(c)&&c>0?c:0,ru=c=>{let m=li(Number(c));if(m<=0)return;let g=F(),h=li(Number.parseFloat(g?.getAttribute(\"data-duration\")??\"\")),E=Math.max(Yr,li(s.getDuration()),h);m<=E||(Yr=m,g?.setAttribute(\"data-duration\",String(m)),s.setDuration(m),rt(),Te(!0))},Pe=(c,m=0)=>{for(let g of e.deterministicAdapters){try{c===\"discover\"&&g.discover(),c===\"pause\"&&g.pause(),c===\"play\"&&g.play&&g.play()}catch(h){T(\"runtime.init.site8\",h)}if(c===\"discover\")try{g.seek({time:m,suppressEvents:!0})}catch(h){T(\"runtime.init.site9\",h)}}},ot=()=>{window.__renderReady=!1},vt=null,Mt=!0,ou=()=>{let c=[];for(let m of e.deterministicAdapters){let g=m.getReadyPromise;if(typeof g==\"function\")try{let h=g();h&&c.push(h)}catch(h){T(\"runtime.init.adapterReady\",h)}}return c},su=()=>{let c=ou();if(c.length===0)return vt=null,Mt=!0,!0;let m=c[0];if(!m)return!0;let g=c.length===1?m:Promise.all(c);return g!==vt&&(vt=g,Mt=!1,Promise.resolve(g).then(()=>{vt===g&&(Mt=!0,ot())},h=>{vt===g&&(Mt=!0,T(\"runtime.init.adapterReady\",h),ot())})),Mt};if(Y)Sr();else{let c={injectedStyles:e.injectedCompStyles,injectedScripts:e.injectedCompScripts,injectedLinks:e.injectedCompLinks,parseDimensionPx:C,onDiagnostic:({code:m,details:g})=>{ge({source:\"hf-preview\",type:\"diagnostic\",code:m,details:g})}};Ja(c).then(()=>Ka(c)).finally(()=>{Y=!0,ii(),Ql(),Sr(),Fr(document),ot()})}let gn=Yo({postMessage:c=>ge(c)});gn.installPickerApi();let Ue=Sl();n=Ue,S(()=>{Ue.destroy(),n=null});let ui=c=>{let m=Number(c);!Number.isFinite(m)||m<=0?e.playbackRate=1:e.playbackRate=Math.max(.1,Math.min(5,m)),e.mediaForceSyncNextTick=!0,e.capturedTimeline&&typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);let g=document.querySelectorAll(\"video, audio\");for(let h of g)if(h instanceof HTMLMediaElement)try{h.playbackRate=e.playbackRate}catch(E){T(\"runtime.init.site10\",E)}},Xr={play:()=>{let c=e.capturedTimeline;if(s.isPlaying())return;let m=W(c,0);if(m>0)s.setDuration(m),s.reachedEnd()&&(s.seek(0),e.currentTime=0,st(0));else{let g=F(),h=Number(g?.getAttribute(\"data-duration\")??0);h>0&&s.setDuration(h)}$e(c),s.play()&&(e.isPlaying=!0,e.mediaForceSyncNextTick=!0,no(s.now()),f&&!e.nativeMediaSyncDisabled&&!e.webAudioMediaDisabled&&io(),Pe(\"play\"),Me(),Ue.redraw(),Te(!0))},pause:()=>{if(!s.isPlaying())return;l.stopAll(),s.detachAudioSource(),s.pause(),e.isPlaying=!1,e.currentTime=s.now(),e.mediaForceSyncNextTick=!0,no(e.currentTime);let c=e.capturedTimeline;$e(c),Pe(\"pause\"),Me(),Ue.redraw(),Te(!0)},seek:(c,m)=>{let g=ht(Math.max(0,Number(c)||0),e.canonicalFps);l.stopAll(),s.detachAudioSource();let h=s.isPlaying();h&&s.pause(),s.seek(g),e.currentTime=s.now(),e.isPlaying=!1,e.mediaForceSyncNextTick=!0;let E=e.capturedTimeline;if($e(E),st(e.currentTime),Pe(\"pause\"),m?.keepPlaying&&h){Xr.play();return}Me(),Ue.redraw(),Te(!0)},renderSeek:(c,m)=>{let g=ht(Math.max(0,Number(c)||0),e.canonicalFps);l.stopAll(),s.detachAudioSource(),s.isPlaying()&&s.pause(),s.seek(g),e.currentTime=s.now(),e.isPlaying=!1,e.mediaForceSyncNextTick=!0,st(e.currentTime,{activateChildren:!0,suppressEvents:m?.suppressEvents}),Me(),Ue.redraw(),Te(!0)},getTime:()=>s.now(),getDuration:()=>{let c=s.getDuration();return Number.isFinite(c)?c:0},isPlaying:()=>s.isPlaying(),setPlaybackRate:c=>{ui(c),s.setRate(e.playbackRate),ro()},getPlaybackRate:()=>e.playbackRate},Qr=W(e.capturedTimeline,0);Qr>0&&s.setDuration(Qr);let Ne=Zo({getTimeline:()=>e.capturedTimeline,setTimeline:c=>{e.capturedTimeline=c},getTimelineRegistry:()=>window.__timelines??{},getIsPlaying:()=>e.isPlaying,setIsPlaying:c=>{e.isPlaying!==c&&(e.mediaForceSyncNextTick=!0),e.isPlaying=c},getPlaybackRate:()=>e.playbackRate,setPlaybackRate:ui,getCanonicalFps:()=>e.canonicalFps,onSyncMedia:(c,m)=>{e.currentTime=Math.max(0,Number(c)||0),e.isPlaying!==m&&(e.mediaForceSyncNextTick=!0),e.isPlaying=m,Me()},onStatePost:Te,onDeterministicSeek:(c,m)=>{for(let g of e.deterministicAdapters)if(!(g.name===\"gsap\"&&e.capturedTimeline))try{g.seek({time:Number(c)||0,suppressEvents:m?.suppressEvents})}catch(h){T(\"runtime.init.site11\",h)}},onDeterministicPause:()=>Pe(\"pause\"),onDeterministicPlay:()=>Pe(\"play\"),onRenderFrameSeek:()=>{Ue.redraw()},onShowNativeVideos:()=>{},getSafeDuration:()=>W(e.capturedTimeline,0),transport:Xr});window.__player=b(Ne),window.__playerReady=!0,uo(ge),Ke(\"composition_loaded\",{duration:Ne.getDuration(),compositionId:document.querySelector(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")??null}),e.controlBridgeHandler=lo({onPlay:()=>{Ne.play(),Ke(\"composition_played\",{time:Ne.getTime()})},onPause:()=>{Ne.pause(),Ke(\"composition_paused\",{time:Ne.getTime()})},onStopMedia:()=>{l.stopAll();let c=document.querySelectorAll(\"video, audio\");for(let m of c)m instanceof HTMLMediaElement&&!m.paused&&m.pause()},onSeek:(c,m)=>{Ne.seek(c),Ke(\"composition_seeked\",{time:c})},onSetMuted:c=>{e.bridgeMuted=c;let m=c||e.mediaOutputMuted;l.setMuted(m);let g=document.querySelectorAll(\"video, audio\");for(let h of g)h instanceof HTMLMediaElement&&(h.muted=m||h.defaultMuted)},onSetVolume:c=>{e.bridgeVolume=c,l.setVolume(c);let m=document.querySelectorAll(\"video, audio\");for(let g of m){if(!(g instanceof HTMLMediaElement))continue;let h=parseFloat(g.dataset.volume??\"\"),E=Number.isFinite(h)?h:1;g.volume=E*c}},onSetMediaOutputMuted:c=>{e.mediaOutputMuted=c;let m=c||e.bridgeMuted;l.setMuted(m);let g=document.querySelectorAll(\"video, audio\");for(let h of g)h instanceof HTMLMediaElement&&(h.muted=m||h.defaultMuted)},onSetNativeMediaSyncDisabled:c=>{e.nativeMediaSyncDisabled!==c&&(e.nativeMediaSyncDisabled=c,e.mediaForceSyncNextTick=!0,c?(l.stopAll(),s.detachAudioSource()):Me())},onSetWebAudioMediaDisabled:c=>{e.webAudioMediaDisabled!==c&&(e.webAudioMediaDisabled=c,e.mediaForceSyncNextTick=!0,c&&(l.stopAll(),s.detachAudioSource()),Me())},onSetPlaybackRate:c=>{ui(c),e.transportClock&&e.transportClock.setRate(e.playbackRate),ro()},onSetRootDuration:ru,onSetColorGrading:(c,m)=>{Ue.setGrading(c,m)},onSetColorGradingCompare:(c,m)=>{Ue.setCompare(c,m)},onTick:()=>{if(e.tornDown||!s.isPlaying())return;let c=s.now();if(e.currentTime=c,st(c),s.reachedEnd()){l.stopAll(),s.detachAudioSource(),s.pause(),e.isPlaying=!1;let m=s.getDuration();Number.isFinite(m)&&(s.seek(m),e.currentTime=m,st(m)),Pe(\"pause\"),Me(),Te(!0)}},onEnablePickMode:()=>gn.enablePickMode(),onDisablePickMode:()=>gn.disablePickMode(),getCanonicalFps:()=>e.canonicalFps}),e.deterministicAdapters=[ko(),xo({resolveStartSeconds:c=>P(c,0)}),yo(),Eo(),wo(),Co(),_o(),Fo(),To(),vo(),Mo(),bo({getTimeline:()=>e.capturedTimeline})],Lo(),Ro(),window.__hfReseekGpu=c=>{let m=Math.max(0,Number(c)||0);window.__hfThreeTime=m,window.__hfTypegpuTime=m,Ao(m)},Ge(),ii(),Pe(\"discover\");let au=()=>{let c=e.capturedTimeline,m=we();e.capturedTimeline&&(m||e.capturedTimeline!==c||!Ne._timeline)&&(Ne._timeline=e.capturedTimeline);let g=W(e.capturedTimeline,0);if(g>0&&s.setDuration(g),Pe(\"discover\",e.currentTime),!e.capturedTimeline){let h=window.__timelines??{},E=Object.keys(h).filter(N=>h[N]);if(E.length>0){let B=F()?.getAttribute(\"data-composition-id\")??null;y(\"root_timeline_unbound_registry_present\",{reason:B?\"root data-composition-id has no matching key in window.__timelines\":\"root composition element has no data-composition-id attribute\",rootCompositionId:B,registeredTimelineKeys:E},\"root_timeline_unbound_registry_present\"),console.warn(\"[hyperframes] Root timeline not bound \\u2014 render will freeze at t=0. \"+(B?`Root data-composition-id is \"${B}\" but window.__timelines has no such key. `:\"Root composition element has no data-composition-id. \")+`Registered timeline keys: [${E.join(\", \")}]. Register the root timeline under its data-composition-id (window.__timelines[\"${B??\"<root-id>\"}\"] = tl).`)}}window.__renderReady=!0,rt(),Te(!0)},ft=null,lu=()=>{if(ft)return;let c=()=>{window.removeEventListener(\"hf-timelines-built\",c),ft=null,ot()};ft=c,window.addEventListener(\"hf-timelines-built\",c)};S(()=>{ft&&(window.removeEventListener(\"hf-timelines-built\",ft),ft=null)}),ot=()=>{if(!Y){window.__renderReady=!1;return}if(window.__hfTimelinesBuilding){window.__renderReady=!1,lu();return}if(Pe(\"discover\",e.currentTime),!su()){window.__renderReady=!1;return}au()},ot(),Y&&setTimeout(()=>{ot()},0);let xn=0,ci=!1,uu=(c,m,g,h)=>{try{let E=h?.suppressEvents===!0;$e(c),typeof c.totalTime==\"function\"?c.totalTime(m,E):c.seek(m,E)}catch(E){T(g,E)}},cu=(c,m)=>{let g=window.__timelines??{},h=F()?.getAttribute(\"data-composition-id\")??null;for(let[E,N]of Object.entries(g)){if(!N||E===h)continue;let B=document.querySelector(`[data-composition-id=\"${CSS.escape(E)}\"]`);if(!B)continue;let Q=P(B,0);if(!Number.isFinite(Q))continue;let q=X(B,{includeAuthoredTimingAttrs:!0}),de=O(N),pe=q!=null&&q>0?q:de,se=Math.max(0,pe!=null&&pe>0?Math.min(pe,c-Q):c-Q);uu(N,se,\"runtime.init.transport.childTimeline\",m)}},du=c=>{let m=window.__timelines??{};for(let g of Object.values(m))if(!(!g||g===c))try{g.play()}catch(h){T(\"runtime.init.activateSiblings\",h)}},Zr=c=>typeof c==\"object\"&&c!==null,Nt=new WeakMap,fu=[\"onStart\",\"onUpdate\",\"onComplete\",\"onReverseComplete\",\"onRepeat\"],eo=(c,m)=>{let g=c[m];if(typeof g!=\"function\")return null;try{let h=Number(g.call(c));return Number.isFinite(h)?h:null}catch(h){return T(\"runtime.init.gsapCallbackDuration\",h),null}},mu=c=>{let m=Nt.get(c);if(m!=null)return m;if(!(\"getChildren\"in c)||typeof c.getChildren!=\"function\")return!1;let g;try{g=c.getChildren(!0,!0,!0)}catch(h){return T(\"runtime.init.gsapCallbackChildren\",h),Nt.set(c,!1),!1}if(!Array.isArray(g))return Nt.set(c,!1),!1;for(let h of g){if(!Zr(h))continue;let E=h.vars;if(!Zr(E)||!fu.some(q=>typeof E[q]==\"function\"))continue;let Q=eo(h,\"totalDuration\")??eo(h,\"duration\");if(Q!=null&&Q<=1e-6)return Nt.set(c,!0),!0}return Nt.set(c,!1),!1},st=(c,m)=>{let g=e.capturedTimeline,h=m?.suppressEvents===!0;if(g){m?.activateChildren&&du(g);let E=g,N=c;if(typeof E.totalDuration==\"function\")try{let B=Number(E.totalDuration());Number.isFinite(B)&&B>0&&c>B&&(N=B)}catch(B){T(\"runtime.init.transport.clampDuration\",B)}try{typeof g.totalTime==\"function\"?(g.totalTime(N,h),!h&&!mu(g)&&(g.totalTime(N+.001,!0),g.totalTime(N,!0))):g.seek(N,h)}catch(B){T(\"runtime.init.transport.seek\",B)}}else cu(c,m);for(let E of e.deterministicAdapters)if(!(E.name===\"gsap\"&&g))try{E.seek({time:c,suppressEvents:h})}catch(N){T(\"runtime.init.transport.adapter\",N)}},pu=()=>{try{return document.querySelector(`[${Al}]`)!=null}catch{return!1}},to=()=>{if(!(e.tornDown||ci)){ci=!0;try{if(e.transportRafId=window.requestAnimationFrame(to),xn+=1,wl({tick:xn,isPlaying:s.isPlaying(),hasCapturedTimeline:e.capturedTimeline!=null,currentTimeSeconds:s.now()})){let m=e.capturedTimeline;if(we()){e.capturedTimeline&&!Ne._timeline&&(Ne._timeline=e.capturedTimeline),e.capturedTimeline&&e.capturedTimeline!==m&&$e(e.capturedTimeline);let g=W(e.capturedTimeline,0);g>0&&s.setDuration(g),rt()}}if(xn%20===0&&rt(),xn%30===0&&ii(),e.capturedTimeline){let m=W(e.capturedTimeline,0);m>0&&(!s.isPlaying()||m>=s.getDuration())&&s.setDuration(m)}if(s.isPlaying()&&!e.mediaOutputMuted)if(!e.nativeMediaSyncDisabled&&!e.webAudioMediaDisabled&&l.isActive()&&l.context){let m=l.getTime();m>=0&&s.attachAudioSource({currentTimeSeconds:m})}else{let m=document.querySelectorAll(\"audio[data-start]\"),g=!1;for(let h of m){if(!(h instanceof HTMLMediaElement)||!h.isConnected)continue;let E=Number.parseFloat(h.dataset.start??\"\"),N=Number.parseFloat(h.dataset.duration??\"\"),B=Number.isFinite(N)&&N>0?E+N:1/0,Q=Number.parseFloat(h.dataset.playbackStart??h.dataset.mediaStart??\"0\")||0;if(Number.isFinite(E)&&e.currentTime>=E&&e.currentTime<B){h.paused?!h.error&&h.readyState<HTMLMediaElement.HAVE_FUTURE_DATA&&(s.attachAudioSource({currentTimeSeconds:e.currentTime}),g=!0):(s.attachAudioSource({el:h,compositionStart:E,mediaStart:Q}),g=!0);break}}!g&&s.hasAudioSource()&&s.detachAudioSource()}else s.hasAudioSource()&&s.detachAudioSource();let c=s.now();if(e.currentTime=c,(s.isPlaying()||!pu())&&st(c),s.isPlaying()&&s.reachedEnd()){l.stopAll(),s.detachAudioSource(),s.pause(),e.isPlaying=!1;let m=s.getDuration();Number.isFinite(m)&&(s.seek(m),e.currentTime=m,st(m)),Pe(\"pause\"),Me(),Te(!0);return}s.isPlaying()&&Me(),Te(!1)}finally{ci=!1}}},no=c=>{let m=document.querySelectorAll(\"video, audio\");for(let g of m){if(!(g instanceof HTMLMediaElement)||!g.isConnected)continue;let h=Number.parseFloat(g.dataset.start??\"\");if(!Number.isFinite(h))continue;let E=Number.parseFloat(g.dataset.duration??\"\"),N=Number.isFinite(E)&&E>0?h+E:1/0;if(c<h||c>=N)continue;let B=Number.parseFloat(g.dataset.playbackStart??g.dataset.mediaStart??\"0\")||0,Q=c-h+B;if(Q>=0)try{g.currentTime=Q}catch{}}},io=()=>{if(e.nativeMediaSyncDisabled||e.webAudioMediaDisabled)return;let c=l.startGeneration(),m=document.querySelectorAll(\"audio[data-start]\");for(let g of m){if(!(g instanceof HTMLMediaElement)||!g.isConnected)continue;let h=Number.parseFloat(g.dataset.start??\"\");if(!Number.isFinite(h))continue;let E=Number.parseFloat(g.dataset.playbackStart??g.dataset.mediaStart??\"0\")||0,N=Number.parseFloat(g.dataset.volume??\"\"),B=Number.isFinite(N)?N:1,Q=Number.parseFloat(g.dataset.duration??\"\"),q=Number.isFinite(Q)&&Q>0?Q:Number.POSITIVE_INFINITY,de=g.closest(\"[data-composition-id]\");if(de){let pe=P(de,0),se=X(de,{includeAuthoredTimingAttrs:!0});se!=null&&se>0&&(q=Math.min(q,Math.max(0,pe+se-h)))}l.decodeAudioElement(g).then(pe=>{!pe||!s.isPlaying()||l.schedulePlayback(g,pe,h,E,s.now(),B*e.bridgeVolume,c,e.playbackRate,q)})}},ro=()=>{l.setRate(e.playbackRate)&&!e.nativeMediaSyncDisabled&&!e.webAudioMediaDisabled&&f&&s.isPlaying()&&l.hasBoundedActiveSources()&&(l.stopAll(),io())};if(e.capturedTimeline){let c=W(e.capturedTimeline,0);c>0&&s.setDuration(c),$e(e.capturedTimeline)}tl(window),e.transportRafId=window.requestAnimationFrame(to),rt(),Te(!0);let di=()=>{if(!e.tornDown){e.tornDown=!0,e.transportRafId!=null&&(window.cancelAnimationFrame(e.transportRafId),e.transportRafId=null),e.transportClock=null,l.destroy(),it!=null&&(window.clearTimeout(it),it=null),u!=null&&(window.cancelAnimationFrame(u),u=null),eu(),e.controlBridgeHandler&&(window.removeEventListener(\"message\",e.controlBridgeHandler),e.controlBridgeHandler=null),i&&(window.removeEventListener(\"error\",i),i=null),r&&(window.removeEventListener(\"unhandledrejection\",r),r=null),e.beforeUnloadHandler&&(window.removeEventListener(\"beforeunload\",e.beforeUnloadHandler),e.beforeUnloadHandler=null),gn.disablePickMode();for(let c of e.deterministicAdapters)if(!(!c||typeof c.revert!=\"function\"))try{c.revert()}catch(m){T(\"runtime.init.site12\",m)}e.deterministicAdapters=[];for(let c of o.splice(0))try{c()}catch(m){T(\"runtime.init.site13\",m)}for(let c of e.injectedCompStyles)try{c.remove()}catch(m){T(\"runtime.init.site14\",m)}e.injectedCompStyles=[];for(let c of e.injectedCompLinks)try{c.remove()}catch(m){T(\"runtime.init.site15\",m)}e.injectedCompLinks=[];for(let c of e.injectedCompScripts)try{c.remove()}catch(m){T(\"runtime.init.site16\",m)}e.injectedCompScripts=[],e.capturedTimeline=null,window.__hfRuntimeTeardown===di&&(window.__hfRuntimeTeardown=null)}};window.__hfRuntimeTeardown=di,e.beforeUnloadHandler=di,window.addEventListener(\"beforeunload\",e.beforeUnloadHandler)}var Fl=[\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"S\",\"B\",\"S\",\"WS\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"B\",\"B\",\"S\",\"WS\",\"ON\",\"ON\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ES\",\"CS\",\"ES\",\"CS\",\"CS\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"CS\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"CS\",\"ON\",\"ET\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"ON\",\"ON\",\"BN\",\"ON\",\"ON\",\"ET\",\"ET\",\"EN\",\"EN\",\"ON\",\"L\",\"ON\",\"ON\",\"ON\",\"EN\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\"],Pr=[[697,698,\"ON\"],[706,719,\"ON\"],[722,735,\"ON\"],[741,749,\"ON\"],[751,767,\"ON\"],[768,879,\"NSM\"],[884,885,\"ON\"],[894,894,\"ON\"],[900,901,\"ON\"],[903,903,\"ON\"],[1014,1014,\"ON\"],[1155,1161,\"NSM\"],[1418,1418,\"ON\"],[1421,1422,\"ON\"],[1423,1423,\"ET\"],[1424,1424,\"R\"],[1425,1469,\"NSM\"],[1470,1470,\"R\"],[1471,1471,\"NSM\"],[1472,1472,\"R\"],[1473,1474,\"NSM\"],[1475,1475,\"R\"],[1476,1477,\"NSM\"],[1478,1478,\"R\"],[1479,1479,\"NSM\"],[1480,1535,\"R\"],[1536,1541,\"AN\"],[1542,1543,\"ON\"],[1544,1544,\"AL\"],[1545,1546,\"ET\"],[1547,1547,\"AL\"],[1548,1548,\"CS\"],[1549,1549,\"AL\"],[1550,1551,\"ON\"],[1552,1562,\"NSM\"],[1563,1610,\"AL\"],[1611,1631,\"NSM\"],[1632,1641,\"AN\"],[1642,1642,\"ET\"],[1643,1644,\"AN\"],[1645,1647,\"AL\"],[1648,1648,\"NSM\"],[1649,1749,\"AL\"],[1750,1756,\"NSM\"],[1757,1757,\"AN\"],[1758,1758,\"ON\"],[1759,1764,\"NSM\"],[1765,1766,\"AL\"],[1767,1768,\"NSM\"],[1769,1769,\"ON\"],[1770,1773,\"NSM\"],[1774,1775,\"AL\"],[1776,1785,\"EN\"],[1786,1808,\"AL\"],[1809,1809,\"NSM\"],[1810,1839,\"AL\"],[1840,1866,\"NSM\"],[1867,1957,\"AL\"],[1958,1968,\"NSM\"],[1969,1983,\"AL\"],[1984,2026,\"R\"],[2027,2035,\"NSM\"],[2036,2037,\"R\"],[2038,2041,\"ON\"],[2042,2044,\"R\"],[2045,2045,\"NSM\"],[2046,2069,\"R\"],[2070,2073,\"NSM\"],[2074,2074,\"R\"],[2075,2083,\"NSM\"],[2084,2084,\"R\"],[2085,2087,\"NSM\"],[2088,2088,\"R\"],[2089,2093,\"NSM\"],[2094,2136,\"R\"],[2137,2139,\"NSM\"],[2140,2143,\"R\"],[2144,2191,\"AL\"],[2192,2193,\"AN\"],[2194,2198,\"AL\"],[2199,2207,\"NSM\"],[2208,2249,\"AL\"],[2250,2273,\"NSM\"],[2274,2274,\"AN\"],[2275,2306,\"NSM\"],[2362,2362,\"NSM\"],[2364,2364,\"NSM\"],[2369,2376,\"NSM\"],[2381,2381,\"NSM\"],[2385,2391,\"NSM\"],[2402,2403,\"NSM\"],[2433,2433,\"NSM\"],[2492,2492,\"NSM\"],[2497,2500,\"NSM\"],[2509,2509,\"NSM\"],[2530,2531,\"NSM\"],[2546,2547,\"ET\"],[2555,2555,\"ET\"],[2558,2558,\"NSM\"],[2561,2562,\"NSM\"],[2620,2620,\"NSM\"],[2625,2626,\"NSM\"],[2631,2632,\"NSM\"],[2635,2637,\"NSM\"],[2641,2641,\"NSM\"],[2672,2673,\"NSM\"],[2677,2677,\"NSM\"],[2689,2690,\"NSM\"],[2748,2748,\"NSM\"],[2753,2757,\"NSM\"],[2759,2760,\"NSM\"],[2765,2765,\"NSM\"],[2786,2787,\"NSM\"],[2801,2801,\"ET\"],[2810,2815,\"NSM\"],[2817,2817,\"NSM\"],[2876,2876,\"NSM\"],[2879,2879,\"NSM\"],[2881,2884,\"NSM\"],[2893,2893,\"NSM\"],[2901,2902,\"NSM\"],[2914,2915,\"NSM\"],[2946,2946,\"NSM\"],[3008,3008,\"NSM\"],[3021,3021,\"NSM\"],[3059,3064,\"ON\"],[3065,3065,\"ET\"],[3066,3066,\"ON\"],[3072,3072,\"NSM\"],[3076,3076,\"NSM\"],[3132,3132,\"NSM\"],[3134,3136,\"NSM\"],[3142,3144,\"NSM\"],[3146,3149,\"NSM\"],[3157,3158,\"NSM\"],[3170,3171,\"NSM\"],[3192,3198,\"ON\"],[3201,3201,\"NSM\"],[3260,3260,\"NSM\"],[3276,3277,\"NSM\"],[3298,3299,\"NSM\"],[3328,3329,\"NSM\"],[3387,3388,\"NSM\"],[3393,3396,\"NSM\"],[3405,3405,\"NSM\"],[3426,3427,\"NSM\"],[3457,3457,\"NSM\"],[3530,3530,\"NSM\"],[3538,3540,\"NSM\"],[3542,3542,\"NSM\"],[3633,3633,\"NSM\"],[3636,3642,\"NSM\"],[3647,3647,\"ET\"],[3655,3662,\"NSM\"],[3761,3761,\"NSM\"],[3764,3772,\"NSM\"],[3784,3790,\"NSM\"],[3864,3865,\"NSM\"],[3893,3893,\"NSM\"],[3895,3895,\"NSM\"],[3897,3897,\"NSM\"],[3898,3901,\"ON\"],[3953,3966,\"NSM\"],[3968,3972,\"NSM\"],[3974,3975,\"NSM\"],[3981,3991,\"NSM\"],[3993,4028,\"NSM\"],[4038,4038,\"NSM\"],[4141,4144,\"NSM\"],[4146,4151,\"NSM\"],[4153,4154,\"NSM\"],[4157,4158,\"NSM\"],[4184,4185,\"NSM\"],[4190,4192,\"NSM\"],[4209,4212,\"NSM\"],[4226,4226,\"NSM\"],[4229,4230,\"NSM\"],[4237,4237,\"NSM\"],[4253,4253,\"NSM\"],[4957,4959,\"NSM\"],[5008,5017,\"ON\"],[5120,5120,\"ON\"],[5760,5760,\"WS\"],[5787,5788,\"ON\"],[5906,5908,\"NSM\"],[5938,5939,\"NSM\"],[5970,5971,\"NSM\"],[6002,6003,\"NSM\"],[6068,6069,\"NSM\"],[6071,6077,\"NSM\"],[6086,6086,\"NSM\"],[6089,6099,\"NSM\"],[6107,6107,\"ET\"],[6109,6109,\"NSM\"],[6128,6137,\"ON\"],[6144,6154,\"ON\"],[6155,6157,\"NSM\"],[6158,6158,\"BN\"],[6159,6159,\"NSM\"],[6277,6278,\"NSM\"],[6313,6313,\"NSM\"],[6432,6434,\"NSM\"],[6439,6440,\"NSM\"],[6450,6450,\"NSM\"],[6457,6459,\"NSM\"],[6464,6464,\"ON\"],[6468,6469,\"ON\"],[6622,6655,\"ON\"],[6679,6680,\"NSM\"],[6683,6683,\"NSM\"],[6742,6742,\"NSM\"],[6744,6750,\"NSM\"],[6752,6752,\"NSM\"],[6754,6754,\"NSM\"],[6757,6764,\"NSM\"],[6771,6780,\"NSM\"],[6783,6783,\"NSM\"],[6832,6877,\"NSM\"],[6880,6891,\"NSM\"],[6912,6915,\"NSM\"],[6964,6964,\"NSM\"],[6966,6970,\"NSM\"],[6972,6972,\"NSM\"],[6978,6978,\"NSM\"],[7019,7027,\"NSM\"],[7040,7041,\"NSM\"],[7074,7077,\"NSM\"],[7080,7081,\"NSM\"],[7083,7085,\"NSM\"],[7142,7142,\"NSM\"],[7144,7145,\"NSM\"],[7149,7149,\"NSM\"],[7151,7153,\"NSM\"],[7212,7219,\"NSM\"],[7222,7223,\"NSM\"],[7376,7378,\"NSM\"],[7380,7392,\"NSM\"],[7394,7400,\"NSM\"],[7405,7405,\"NSM\"],[7412,7412,\"NSM\"],[7416,7417,\"NSM\"],[7616,7679,\"NSM\"],[8125,8125,\"ON\"],[8127,8129,\"ON\"],[8141,8143,\"ON\"],[8157,8159,\"ON\"],[8173,8175,\"ON\"],[8189,8190,\"ON\"],[8192,8202,\"WS\"],[8203,8205,\"BN\"],[8207,8207,\"R\"],[8208,8231,\"ON\"],[8232,8232,\"WS\"],[8233,8233,\"B\"],[8234,8238,\"BN\"],[8239,8239,\"CS\"],[8240,8244,\"ET\"],[8245,8259,\"ON\"],[8260,8260,\"CS\"],[8261,8286,\"ON\"],[8287,8287,\"WS\"],[8288,8303,\"BN\"],[8304,8304,\"EN\"],[8308,8313,\"EN\"],[8314,8315,\"ES\"],[8316,8318,\"ON\"],[8320,8329,\"EN\"],[8330,8331,\"ES\"],[8332,8334,\"ON\"],[8352,8399,\"ET\"],[8400,8432,\"NSM\"],[8448,8449,\"ON\"],[8451,8454,\"ON\"],[8456,8457,\"ON\"],[8468,8468,\"ON\"],[8470,8472,\"ON\"],[8478,8483,\"ON\"],[8485,8485,\"ON\"],[8487,8487,\"ON\"],[8489,8489,\"ON\"],[8494,8494,\"ET\"],[8506,8507,\"ON\"],[8512,8516,\"ON\"],[8522,8525,\"ON\"],[8528,8543,\"ON\"],[8585,8587,\"ON\"],[8592,8721,\"ON\"],[8722,8722,\"ES\"],[8723,8723,\"ET\"],[8724,9013,\"ON\"],[9083,9108,\"ON\"],[9110,9257,\"ON\"],[9280,9290,\"ON\"],[9312,9351,\"ON\"],[9352,9371,\"EN\"],[9450,9899,\"ON\"],[9901,10239,\"ON\"],[10496,11123,\"ON\"],[11126,11263,\"ON\"],[11493,11498,\"ON\"],[11503,11505,\"NSM\"],[11513,11519,\"ON\"],[11647,11647,\"NSM\"],[11744,11775,\"NSM\"],[11776,11869,\"ON\"],[11904,11929,\"ON\"],[11931,12019,\"ON\"],[12032,12245,\"ON\"],[12272,12287,\"ON\"],[12288,12288,\"WS\"],[12289,12292,\"ON\"],[12296,12320,\"ON\"],[12330,12333,\"NSM\"],[12336,12336,\"ON\"],[12342,12343,\"ON\"],[12349,12351,\"ON\"],[12441,12442,\"NSM\"],[12443,12444,\"ON\"],[12448,12448,\"ON\"],[12539,12539,\"ON\"],[12736,12773,\"ON\"],[12783,12783,\"ON\"],[12829,12830,\"ON\"],[12880,12895,\"ON\"],[12924,12926,\"ON\"],[12977,12991,\"ON\"],[13004,13007,\"ON\"],[13175,13178,\"ON\"],[13278,13279,\"ON\"],[13311,13311,\"ON\"],[19904,19967,\"ON\"],[42128,42182,\"ON\"],[42509,42511,\"ON\"],[42607,42610,\"NSM\"],[42611,42611,\"ON\"],[42612,42621,\"NSM\"],[42622,42623,\"ON\"],[42654,42655,\"NSM\"],[42736,42737,\"NSM\"],[42752,42785,\"ON\"],[42888,42888,\"ON\"],[43010,43010,\"NSM\"],[43014,43014,\"NSM\"],[43019,43019,\"NSM\"],[43045,43046,\"NSM\"],[43048,43051,\"ON\"],[43052,43052,\"NSM\"],[43064,43065,\"ET\"],[43124,43127,\"ON\"],[43204,43205,\"NSM\"],[43232,43249,\"NSM\"],[43263,43263,\"NSM\"],[43302,43309,\"NSM\"],[43335,43345,\"NSM\"],[43392,43394,\"NSM\"],[43443,43443,\"NSM\"],[43446,43449,\"NSM\"],[43452,43453,\"NSM\"],[43493,43493,\"NSM\"],[43561,43566,\"NSM\"],[43569,43570,\"NSM\"],[43573,43574,\"NSM\"],[43587,43587,\"NSM\"],[43596,43596,\"NSM\"],[43644,43644,\"NSM\"],[43696,43696,\"NSM\"],[43698,43700,\"NSM\"],[43703,43704,\"NSM\"],[43710,43711,\"NSM\"],[43713,43713,\"NSM\"],[43756,43757,\"NSM\"],[43766,43766,\"NSM\"],[43882,43883,\"ON\"],[44005,44005,\"NSM\"],[44008,44008,\"NSM\"],[44013,44013,\"NSM\"],[64285,64285,\"R\"],[64286,64286,\"NSM\"],[64287,64296,\"R\"],[64297,64297,\"ES\"],[64298,64335,\"R\"],[64336,64450,\"AL\"],[64451,64466,\"ON\"],[64467,64829,\"AL\"],[64830,64847,\"ON\"],[64848,64911,\"AL\"],[64912,64913,\"ON\"],[64914,64967,\"AL\"],[64968,64975,\"ON\"],[64976,65007,\"BN\"],[65008,65020,\"AL\"],[65021,65023,\"ON\"],[65024,65039,\"NSM\"],[65040,65049,\"ON\"],[65056,65071,\"NSM\"],[65072,65103,\"ON\"],[65104,65104,\"CS\"],[65105,65105,\"ON\"],[65106,65106,\"CS\"],[65108,65108,\"ON\"],[65109,65109,\"CS\"],[65110,65118,\"ON\"],[65119,65119,\"ET\"],[65120,65121,\"ON\"],[65122,65123,\"ES\"],[65124,65126,\"ON\"],[65128,65128,\"ON\"],[65129,65130,\"ET\"],[65131,65131,\"ON\"],[65136,65278,\"AL\"],[65279,65279,\"BN\"],[65281,65282,\"ON\"],[65283,65285,\"ET\"],[65286,65290,\"ON\"],[65291,65291,\"ES\"],[65292,65292,\"CS\"],[65293,65293,\"ES\"],[65294,65295,\"CS\"],[65296,65305,\"EN\"],[65306,65306,\"CS\"],[65307,65312,\"ON\"],[65339,65344,\"ON\"],[65371,65381,\"ON\"],[65504,65505,\"ET\"],[65506,65508,\"ON\"],[65509,65510,\"ET\"],[65512,65518,\"ON\"],[65520,65528,\"BN\"],[65529,65533,\"ON\"],[65534,65535,\"BN\"],[65793,65793,\"ON\"],[65856,65932,\"ON\"],[65936,65948,\"ON\"],[65952,65952,\"ON\"],[66045,66045,\"NSM\"],[66272,66272,\"NSM\"],[66273,66299,\"EN\"],[66422,66426,\"NSM\"],[67584,67870,\"R\"],[67871,67871,\"ON\"],[67872,68096,\"R\"],[68097,68099,\"NSM\"],[68100,68100,\"R\"],[68101,68102,\"NSM\"],[68103,68107,\"R\"],[68108,68111,\"NSM\"],[68112,68151,\"R\"],[68152,68154,\"NSM\"],[68155,68158,\"R\"],[68159,68159,\"NSM\"],[68160,68324,\"R\"],[68325,68326,\"NSM\"],[68327,68408,\"R\"],[68409,68415,\"ON\"],[68416,68863,\"R\"],[68864,68899,\"AL\"],[68900,68903,\"NSM\"],[68904,68911,\"AL\"],[68912,68921,\"AN\"],[68922,68927,\"AL\"],[68928,68937,\"AN\"],[68938,68968,\"R\"],[68969,68973,\"NSM\"],[68974,68974,\"ON\"],[68975,69215,\"R\"],[69216,69246,\"AN\"],[69247,69290,\"R\"],[69291,69292,\"NSM\"],[69293,69311,\"R\"],[69312,69327,\"AL\"],[69328,69336,\"ON\"],[69337,69369,\"AL\"],[69370,69375,\"NSM\"],[69376,69423,\"R\"],[69424,69445,\"AL\"],[69446,69456,\"NSM\"],[69457,69487,\"AL\"],[69488,69505,\"R\"],[69506,69509,\"NSM\"],[69510,69631,\"R\"],[69633,69633,\"NSM\"],[69688,69702,\"NSM\"],[69714,69733,\"ON\"],[69744,69744,\"NSM\"],[69747,69748,\"NSM\"],[69759,69761,\"NSM\"],[69811,69814,\"NSM\"],[69817,69818,\"NSM\"],[69826,69826,\"NSM\"],[69888,69890,\"NSM\"],[69927,69931,\"NSM\"],[69933,69940,\"NSM\"],[70003,70003,\"NSM\"],[70016,70017,\"NSM\"],[70070,70078,\"NSM\"],[70089,70092,\"NSM\"],[70095,70095,\"NSM\"],[70191,70193,\"NSM\"],[70196,70196,\"NSM\"],[70198,70199,\"NSM\"],[70206,70206,\"NSM\"],[70209,70209,\"NSM\"],[70367,70367,\"NSM\"],[70371,70378,\"NSM\"],[70400,70401,\"NSM\"],[70459,70460,\"NSM\"],[70464,70464,\"NSM\"],[70502,70508,\"NSM\"],[70512,70516,\"NSM\"],[70587,70592,\"NSM\"],[70606,70606,\"NSM\"],[70608,70608,\"NSM\"],[70610,70610,\"NSM\"],[70625,70626,\"NSM\"],[70712,70719,\"NSM\"],[70722,70724,\"NSM\"],[70726,70726,\"NSM\"],[70750,70750,\"NSM\"],[70835,70840,\"NSM\"],[70842,70842,\"NSM\"],[70847,70848,\"NSM\"],[70850,70851,\"NSM\"],[71090,71093,\"NSM\"],[71100,71101,\"NSM\"],[71103,71104,\"NSM\"],[71132,71133,\"NSM\"],[71219,71226,\"NSM\"],[71229,71229,\"NSM\"],[71231,71232,\"NSM\"],[71264,71276,\"ON\"],[71339,71339,\"NSM\"],[71341,71341,\"NSM\"],[71344,71349,\"NSM\"],[71351,71351,\"NSM\"],[71453,71453,\"NSM\"],[71455,71455,\"NSM\"],[71458,71461,\"NSM\"],[71463,71467,\"NSM\"],[71727,71735,\"NSM\"],[71737,71738,\"NSM\"],[71995,71996,\"NSM\"],[71998,71998,\"NSM\"],[72003,72003,\"NSM\"],[72148,72151,\"NSM\"],[72154,72155,\"NSM\"],[72160,72160,\"NSM\"],[72193,72198,\"NSM\"],[72201,72202,\"NSM\"],[72243,72248,\"NSM\"],[72251,72254,\"NSM\"],[72263,72263,\"NSM\"],[72273,72278,\"NSM\"],[72281,72283,\"NSM\"],[72330,72342,\"NSM\"],[72344,72345,\"NSM\"],[72544,72544,\"NSM\"],[72546,72548,\"NSM\"],[72550,72550,\"NSM\"],[72752,72758,\"NSM\"],[72760,72765,\"NSM\"],[72850,72871,\"NSM\"],[72874,72880,\"NSM\"],[72882,72883,\"NSM\"],[72885,72886,\"NSM\"],[73009,73014,\"NSM\"],[73018,73018,\"NSM\"],[73020,73021,\"NSM\"],[73023,73029,\"NSM\"],[73031,73031,\"NSM\"],[73104,73105,\"NSM\"],[73109,73109,\"NSM\"],[73111,73111,\"NSM\"],[73459,73460,\"NSM\"],[73472,73473,\"NSM\"],[73526,73530,\"NSM\"],[73536,73536,\"NSM\"],[73538,73538,\"NSM\"],[73562,73562,\"NSM\"],[73685,73692,\"ON\"],[73693,73696,\"ET\"],[73697,73713,\"ON\"],[78912,78912,\"NSM\"],[78919,78933,\"NSM\"],[90398,90409,\"NSM\"],[90413,90415,\"NSM\"],[92912,92916,\"NSM\"],[92976,92982,\"NSM\"],[94031,94031,\"NSM\"],[94095,94098,\"NSM\"],[94178,94178,\"ON\"],[94180,94180,\"NSM\"],[113821,113822,\"NSM\"],[113824,113827,\"BN\"],[117760,117973,\"ON\"],[118e3,118009,\"EN\"],[118010,118012,\"ON\"],[118016,118451,\"ON\"],[118458,118480,\"ON\"],[118496,118512,\"ON\"],[118528,118573,\"NSM\"],[118576,118598,\"NSM\"],[119143,119145,\"NSM\"],[119155,119162,\"BN\"],[119163,119170,\"NSM\"],[119173,119179,\"NSM\"],[119210,119213,\"NSM\"],[119273,119274,\"ON\"],[119296,119361,\"ON\"],[119362,119364,\"NSM\"],[119365,119365,\"ON\"],[119552,119638,\"ON\"],[120513,120513,\"ON\"],[120539,120539,\"ON\"],[120571,120571,\"ON\"],[120597,120597,\"ON\"],[120629,120629,\"ON\"],[120655,120655,\"ON\"],[120687,120687,\"ON\"],[120713,120713,\"ON\"],[120745,120745,\"ON\"],[120771,120771,\"ON\"],[120782,120831,\"EN\"],[121344,121398,\"NSM\"],[121403,121452,\"NSM\"],[121461,121461,\"NSM\"],[121476,121476,\"NSM\"],[121499,121503,\"NSM\"],[121505,121519,\"NSM\"],[122880,122886,\"NSM\"],[122888,122904,\"NSM\"],[122907,122913,\"NSM\"],[122915,122916,\"NSM\"],[122918,122922,\"NSM\"],[123023,123023,\"NSM\"],[123184,123190,\"NSM\"],[123566,123566,\"NSM\"],[123628,123631,\"NSM\"],[123647,123647,\"ET\"],[124140,124143,\"NSM\"],[124398,124399,\"NSM\"],[124643,124643,\"NSM\"],[124646,124646,\"NSM\"],[124654,124655,\"NSM\"],[124661,124661,\"NSM\"],[124928,125135,\"R\"],[125136,125142,\"NSM\"],[125143,125251,\"R\"],[125252,125258,\"NSM\"],[125259,126063,\"R\"],[126064,126143,\"AL\"],[126144,126207,\"R\"],[126208,126287,\"AL\"],[126288,126463,\"R\"],[126464,126703,\"AL\"],[126704,126705,\"ON\"],[126706,126719,\"AL\"],[126720,126975,\"R\"],[126976,127019,\"ON\"],[127024,127123,\"ON\"],[127136,127150,\"ON\"],[127153,127167,\"ON\"],[127169,127183,\"ON\"],[127185,127221,\"ON\"],[127232,127242,\"EN\"],[127243,127247,\"ON\"],[127279,127279,\"ON\"],[127338,127343,\"ON\"],[127405,127405,\"ON\"],[127584,127589,\"ON\"],[127744,128728,\"ON\"],[128732,128748,\"ON\"],[128752,128764,\"ON\"],[128768,128985,\"ON\"],[128992,129003,\"ON\"],[129008,129008,\"ON\"],[129024,129035,\"ON\"],[129040,129095,\"ON\"],[129104,129113,\"ON\"],[129120,129159,\"ON\"],[129168,129197,\"ON\"],[129200,129211,\"ON\"],[129216,129217,\"ON\"],[129232,129240,\"ON\"],[129280,129623,\"ON\"],[129632,129645,\"ON\"],[129648,129660,\"ON\"],[129664,129674,\"ON\"],[129678,129734,\"ON\"],[129736,129736,\"ON\"],[129741,129756,\"ON\"],[129759,129770,\"ON\"],[129775,129784,\"ON\"],[129792,129938,\"ON\"],[129940,130031,\"ON\"],[130032,130041,\"EN\"],[130042,130042,\"ON\"],[131070,131071,\"BN\"],[196606,196607,\"BN\"],[262142,262143,\"BN\"],[327678,327679,\"BN\"],[393214,393215,\"BN\"],[458750,458751,\"BN\"],[524286,524287,\"BN\"],[589822,589823,\"BN\"],[655358,655359,\"BN\"],[720894,720895,\"BN\"],[786430,786431,\"BN\"],[851966,851967,\"BN\"],[917502,917759,\"BN\"],[917760,917999,\"NSM\"],[918e3,921599,\"BN\"],[983038,983039,\"BN\"],[1048574,1048575,\"BN\"],[1114110,1114111,\"BN\"]];function Hm(e){if(e<=255)return Fl[e];let t=0,n=Pr.length-1;for(;t<=n;){let i=t+n>>1,r=Pr[i];if(e<r[0]){n=i-1;continue}if(e>r[1]){t=i+1;continue}return r[2]}return\"L\"}function Gm(e){let t=e.length;if(t===0)return null;let n=new Array(t),i=!1;for(let l=0;l<t;){let f=e.charCodeAt(l),p=f,d=1;if(f>=55296&&f<=56319&&l+1<t){let S=e.charCodeAt(l+1);S>=56320&&S<=57343&&(p=(f-55296<<10)+(S-56320)+65536,d=2)}let x=Hm(p);(x===\"R\"||x===\"AL\"||x===\"AN\")&&(i=!0);for(let S=0;S<d;S++)n[l+S]=x;l+=d}if(!i)return null;let r=0;for(let l=0;l<t;l++){let f=n[l];if(f===\"L\"){r=0;break}if(f===\"R\"||f===\"AL\"){r=1;break}}let o=new Int8Array(t);for(let l=0;l<t;l++)o[l]=r;let a=r&1?\"R\":\"L\",u=a,s=u;for(let l=0;l<t;l++)n[l]===\"NSM\"?n[l]=s:s=n[l];s=u;for(let l=0;l<t;l++){let f=n[l];f===\"EN\"?n[l]=s===\"AL\"?\"AN\":\"EN\":(f===\"R\"||f===\"L\"||f===\"AL\")&&(s=f)}for(let l=0;l<t;l++)n[l]===\"AL\"&&(n[l]=\"R\");for(let l=1;l<t-1;l++)n[l]===\"ES\"&&n[l-1]===\"EN\"&&n[l+1]===\"EN\"&&(n[l]=\"EN\"),n[l]===\"CS\"&&(n[l-1]===\"EN\"||n[l-1]===\"AN\")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!==\"EN\")continue;let f;for(f=l-1;f>=0&&n[f]===\"ET\";f--)n[f]=\"EN\";for(f=l+1;f<t&&n[f]===\"ET\";f++)n[f]=\"EN\"}for(let l=0;l<t;l++){let f=n[l];(f===\"WS\"||f===\"ES\"||f===\"ET\"||f===\"CS\")&&(n[l]=\"ON\")}s=u;for(let l=0;l<t;l++){let f=n[l];f===\"EN\"?n[l]=s===\"L\"?\"L\":\"EN\":(f===\"R\"||f===\"L\")&&(s=f)}for(let l=0;l<t;l++){if(n[l]!==\"ON\")continue;let f=l+1;for(;f<t&&n[f]===\"ON\";)f++;let p=l>0?n[l-1]:u,d=f<t?n[f]:u,x=p!==\"L\"?\"R\":\"L\";if(x===(d!==\"L\"?\"R\":\"L\"))for(let y=l;y<f;y++)n[y]=x;l=f-1}for(let l=0;l<t;l++)n[l]===\"ON\"&&(n[l]=a);for(let l=0;l<t;l++){let f=n[l];(o[l]&1)===0?f===\"R\"?o[l]++:(f===\"AN\"||f===\"EN\")&&(o[l]+=2):(f===\"L\"||f===\"AN\"||f===\"EN\")&&o[l]++}return o}function Tl(e,t){let n=Gm(e);if(n===null)return null;let i=new Int8Array(t.length);for(let r=0;r<t.length;r++)i[r]=n[t[r]];return i}var Um=/[ \\t\\n\\r\\f]+/g,Wm=/[\\t\\n\\r\\f]| {2,}|^ | $/;function Vm(e){let t=e??\"normal\";return t===\"pre-wrap\"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function zm(e){if(!Wm.test(e))return e;let t=e.replace(Um,\" \");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function jm(e){return/[\\r\\f]/.test(e)?e.replace(/\\r\\n/g,`\n`).replace(/[\\r\\f]/g,`\n`):e.replace(/\\r\\n/g,`\n`)}var Or=null,$m;function qm(){return Or===null&&(Or=new Intl.Segmenter($m,{granularity:\"word\"})),Or}var Km=/\\p{Script=Arabic}/u,Qn=/\\p{M}/u,Il=/\\p{Nd}/u;function vl(e){return Km.test(e)}function Ml(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=44032&&e<=55215||e>=65280&&e<=65519}function Ie(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){let i=e.charCodeAt(t+1);if(i>=56320&&i<=57343){let r=(n-55296<<10)+(i-56320)+65536;if(Ml(r))return!0;t++;continue}}if(Ml(n))return!0}}return!1}function Jm(e){let t=ti(e);return t!==null&&(ei.has(t)||tt.has(t))}var Ym=new Set([\"\\xA0\",\"\\u202F\",\"\\u2060\",\"\\uFEFF\"]);function Xm(e){return Ie(e)}function Qm(e){let t=ti(e);return t!==null&&Ym.has(t)}function Zn(e){return!Jm(e)&&!Qm(e)}var ei=new Set([\"\\uFF0C\",\"\\uFF0E\",\"\\uFF01\",\"\\uFF1A\",\"\\uFF1B\",\"\\uFF1F\",\"\\u3001\",\"\\u3002\",\"\\u30FB\",\"\\uFF09\",\"\\u3015\",\"\\u3009\",\"\\u300B\",\"\\u300D\",\"\\u300F\",\"\\u3011\",\"\\u3017\",\"\\u3019\",\"\\u301B\",\"\\u30FC\",\"\\u3005\",\"\\u303B\",\"\\u309D\",\"\\u309E\",\"\\u30FD\",\"\\u30FE\"]),fn=new Set(['\"',\"(\",\"[\",\"{\",\"\\u201C\",\"\\u2018\",\"\\xAB\",\"\\u2039\",\"\\uFF08\",\"\\u3014\",\"\\u3008\",\"\\u300A\",\"\\u300C\",\"\\u300E\",\"\\u3010\",\"\\u3016\",\"\\u3018\",\"\\u301A\"]),Hr=new Set([\"'\",\"\\u2019\"]),tt=new Set([\".\",\",\",\"!\",\"?\",\":\",\";\",\"\\u060C\",\"\\u061B\",\"\\u061F\",\"\\u0964\",\"\\u0965\",\"\\u104A\",\"\\u104B\",\"\\u104C\",\"\\u104D\",\"\\u104F\",\")\",\"]\",\"}\",\"%\",'\"',\"\\u201D\",\"\\u2019\",\"\\xBB\",\"\\u203A\",\"\\u2026\"]),Zm=new Set([\":\",\".\",\"\\u060C\",\"\\u061B\"]),ep=new Set([\"\\u104F\"]),tp=new Set([\"\\u201D\",\"\\u2019\",\"\\xBB\",\"\\u203A\",\"\\u300D\",\"\\u300F\",\"\\u3011\",\"\\u300B\",\"\\u3009\",\"\\u3015\",\"\\uFF09\"]);function np(e){if(Gr(e))return!0;let t=!1;for(let n of e){if(tt.has(n)){t=!0;continue}if(!(t&&Qn.test(n)))return!1}return t}function ip(e){for(let t of e)if(!ei.has(t)&&!tt.has(t))return!1;return e.length>0}function rp(e){if(Gr(e))return!0;for(let t of e)if(!fn.has(t)&&!Hr.has(t)&&!Qn.test(t))return!1;return e.length>0}function Gr(e){let t=!1;for(let n of e)if(!(n===\"\\\\\"||Qn.test(n))){if(fn.has(n)||tt.has(n)||Hr.has(n)){t=!0;continue}return!1}return t}function Pl(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let i=e.charCodeAt(n);if(i<56320||i>57343)return n;let r=n-1;if(r<0)return n;let o=e.charCodeAt(r);return o>=55296&&o<=56319?r:n}function ti(e){if(e.length===0)return null;let t=Pl(e,e.length);return e.slice(t)}function op(e){let t=Array.from(e),n=t.length;for(;n>0;){let i=t[n-1];if(Qn.test(i)){n--;continue}if(fn.has(i)||Hr.has(i)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(\"\"),tail:t.slice(n).join(\"\")}}function sp(e,t,n){return n===\"text\"&&!t&&e.length===1&&e!==\"-\"&&e!==\"\\u2014\"?e:null}function Nl(e,t,n,i){let r=t[i],o=e[i];if(r==null)return o;let a=n[i];if(o.length===a)return o;let u=r.repeat(a);return e[i]=u,u}function Ll(e,t){return e&&t!==null&&Zm.has(t)}function ap(e){let t=ti(e);return t!==null&&ep.has(t)}function lp(e){if(e.length<2||e[0]!==\" \")return null;let t=e.slice(1);return/^\\p{M}+$/u.test(t)?{space:\" \",marks:t}:null}function ni(e){let t=e.length;for(;t>0;){let n=Pl(e,t),i=e.slice(n,t);if(tp.has(i))return!0;if(!tt.has(i))return!1;t=n}return!1}function up(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===\" \")return\"preserved-space\";if(e===\"\t\")return\"tab\";if(t.preserveHardBreaks&&e===`\n`)return\"hard-break\"}return e===\" \"?\"space\":e===\"\\xA0\"||e===\"\\u202F\"||e===\"\\u2060\"||e===\"\\uFEFF\"?\"glue\":e===\"\\u200B\"?\"zero-width-break\":e===\"\\xAD\"?\"soft-hyphen\":\"text\"}var cp=/[\\x20\\t\\n\\xA0\\xAD\\u200B\\u202F\\u2060\\uFEFF]/;function ve(e){return e.length===1?e[0]:e.join(\"\")}function dp(e,t){let n=[];for(let i=e.length-1;i>=0;i--)n.push(e[i]);return n.push(t),ve(n)}function fp(e,t,n,i){if(!cp.test(e))return[{text:e,isWordLike:t,kind:\"text\",start:n}];let r=[],o=null,a=[],u=n,s=!1,l=0;for(let f of e){let p=up(f,i),d=p===\"text\"&&t;if(o!==null&&p===o&&d===s){a.push(f),l+=f.length;continue}o!==null&&r.push({text:ve(a),isWordLike:s,kind:o,start:u}),o=p,a=[f],u=n+l,s=d,l+=f.length}return o!==null&&r.push({text:ve(a),isWordLike:s,kind:o,start:u}),r}function Br(e){return e===\"space\"||e===\"preserved-space\"||e===\"zero-width-break\"||e===\"hard-break\"}var mp=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function pp(e,t){let n=e.texts[t];return n.startsWith(\"www.\")?!0:mp.test(n)&&t+1<e.len&&e.kinds[t+1]===\"text\"&&e.texts[t+1]===\"//\"}function hp(e){return e.includes(\"?\")&&(e.includes(\"://\")||e.startsWith(\"www.\"))}function gp(e){let t=e.texts.slice(),n=e.isWordLike.slice(),i=e.kinds.slice(),r=e.starts.slice();for(let a=0;a<e.len;a++){if(i[a]!==\"text\"||!pp(e,a))continue;let u=[t[a]],s=a+1;for(;s<e.len&&!Br(i[s]);){u.push(t[s]),n[a]=!0;let l=t[s].includes(\"?\");if(i[s]=\"text\",t[s]=\"\",s++,l)break}t[a]=ve(u)}let o=0;for(let a=0;a<t.length;a++){let u=t[a];u.length!==0&&(o!==a&&(t[o]=u,n[o]=n[a],i[o]=i[a],r[o]=r[a]),o++)}return t.length=o,n.length=o,i.length=o,r.length=o,{len:o,texts:t,isWordLike:n,kinds:i,starts:r}}function xp(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let a=e.texts[o];if(t.push(a),n.push(e.isWordLike[o]),i.push(e.kinds[o]),r.push(e.starts[o]),!hp(a))continue;let u=o+1;if(u>=e.len||Br(e.kinds[u]))continue;let s=[],l=e.starts[u],f=u;for(;f<e.len&&!Br(e.kinds[f]);)s.push(e.texts[f]),f++;s.length>0&&(t.push(ve(s)),n.push(!0),i.push(\"text\"),r.push(l),o=f-1)}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}var bp=new Set([\":\",\"-\",\"/\",\"\\xD7\",\",\",\".\",\"+\",\"\\u2013\",\"\\u2014\"]),Rl=/^[A-Za-z0-9_]+[,:;]*$/,kl=/[,:;]+$/;function Ol(e){for(let t of e)if(Il.test(t))return!0;return!1}function dn(e){if(e.length===0)return!1;for(let t of e)if(!(Il.test(t)||bp.has(t)))return!1;return!0}function yp(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let a=e.texts[o],u=e.kinds[o];if(u===\"text\"&&dn(a)&&Ol(a)){let s=[a],l=o+1;for(;l<e.len&&e.kinds[l]===\"text\"&&dn(e.texts[l]);)s.push(e.texts[l]),l++;t.push(ve(s)),n.push(!0),i.push(\"text\"),r.push(e.starts[o]),o=l-1;continue}t.push(a),n.push(e.isWordLike[o]),i.push(u),r.push(e.starts[o])}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Sp(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let a=e.texts[o],u=e.kinds[o],s=e.isWordLike[o];if(u===\"text\"&&s&&Rl.test(a)){let l=[a],f=kl.test(a),p=o+1;for(;f&&p<e.len&&e.kinds[p]===\"text\"&&e.isWordLike[p]&&Rl.test(e.texts[p]);){let d=e.texts[p];l.push(d),f=kl.test(d),p++}t.push(ve(l)),n.push(!0),i.push(\"text\"),r.push(e.starts[o]),o=p-1;continue}t.push(a),n.push(s),i.push(u),r.push(e.starts[o])}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Ep(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let a=e.texts[o];if(e.kinds[o]===\"text\"&&a.includes(\"-\")){let u=a.split(\"-\"),s=u.length>1;for(let l=0;l<u.length;l++){let f=u[l];if(!s)break;(f.length===0||!Ol(f)||!dn(f))&&(s=!1)}if(s){let l=0;for(let f=0;f<u.length;f++){let p=u[f],d=f<u.length-1?`${p}-`:p;t.push(d),n.push(!0),i.push(\"text\"),r.push(e.starts[o]+l),l+=d.length}continue}}t.push(a),n.push(e.isWordLike[o]),i.push(e.kinds[o]),r.push(e.starts[o])}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Ap(e){let t=[],n=[],i=[],r=[],o=0;for(;o<e.len;){let a=[e.texts[o]],u=e.isWordLike[o],s=e.kinds[o],l=e.starts[o];if(s===\"glue\"){let f=[a[0]],p=l;for(o++;o<e.len&&e.kinds[o]===\"glue\";)f.push(e.texts[o]),o++;let d=ve(f);if(o<e.len&&e.kinds[o]===\"text\")a[0]=d,a.push(e.texts[o]),u=e.isWordLike[o],s=\"text\",l=p,o++;else{t.push(d),n.push(!1),i.push(\"glue\"),r.push(p);continue}}else o++;if(s===\"text\")for(;o<e.len&&e.kinds[o]===\"glue\";){let f=[];for(;o<e.len&&e.kinds[o]===\"glue\";)f.push(e.texts[o]),o++;let p=ve(f);if(o<e.len&&e.kinds[o]===\"text\"){a.push(p,e.texts[o]),u=u||e.isWordLike[o],o++;continue}a.push(p)}t.push(ve(a)),n.push(u),i.push(s),r.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function wp(e){let t=e.texts.slice(),n=e.isWordLike.slice(),i=e.kinds.slice(),r=e.starts.slice();for(let o=0;o<t.length-1;o++){if(i[o]!==\"text\"||i[o+1]!==\"text\"||!Ie(t[o])||!Ie(t[o+1]))continue;let a=op(t[o]);a!==null&&(t[o]=a.head,t[o+1]=a.tail+t[o+1],r[o+1]=r[o]+a.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Dl(e,t,n){let i=qm(),r=0,o=[],a=[],u=[],s=[],l=[],f=[],p=[],d=[],x=[],S=[],y=[],b=[];for(let v of i.segment(e))for(let w of fp(v.segment,v.isWordLike??!1,v.index,n)){let ie=function(){f[I]!==null&&(a[I]=[Nl(o,f,p,I)],f[I]=null),a[I].push(w.text),u[I]=u[I]||w.isWordLike,d[I]=d[I]||L,x[I]=x[I]||R,S[I]=P,y[I]=X,b[I]=Ll(x[I],z)},C=w.kind===\"text\",F=sp(w.text,w.isWordLike,w.kind),L=Ie(w.text),R=vl(w.text),z=ti(w.text),P=ni(w.text),X=ap(w.text),I=r-1;t.carryCJKAfterClosingQuote&&C&&r>0&&s[I]===\"text\"&&L&&d[I]&&S[I]||C&&r>0&&s[I]===\"text\"&&ip(w.text)&&d[I]||C&&r>0&&s[I]===\"text\"&&y[I]?ie():C&&r>0&&s[I]===\"text\"&&w.isWordLike&&R&&b[I]?(ie(),u[I]=!0):F!==null&&r>0&&s[I]===\"text\"&&f[I]===F?p[I]=(p[I]??1)+1:C&&!w.isWordLike&&r>0&&s[I]===\"text\"&&(np(w.text)||w.text===\"-\"&&u[I])?ie():(o[r]=w.text,a[r]=[w.text],u[r]=w.isWordLike,s[r]=w.kind,l[r]=w.start,f[r]=F,p[r]=F===null?0:1,d[r]=L,x[r]=R,S[r]=P,y[r]=X,b[r]=Ll(R,z),r++)}for(let v=0;v<r;v++){if(f[v]!==null){o[v]=Nl(o,f,p,v);continue}o[v]=ve(a[v])}for(let v=1;v<r;v++)s[v]===\"text\"&&!u[v]&&Gr(o[v])&&s[v-1]===\"text\"&&(o[v-1]+=o[v],u[v-1]=u[v-1]||u[v],o[v]=\"\");let A=Array.from({length:r},()=>null),_=-1;for(let v=r-1;v>=0;v--){let w=o[v];if(w.length!==0){if(s[v]===\"text\"&&!u[v]&&rp(w)&&_>=0&&s[_]===\"text\"){let C=A[_]??[];C.push(w),A[_]=C,l[_]=l[v],o[v]=\"\";continue}_=v}}for(let v=0;v<r;v++){let w=A[v];w!=null&&(o[v]=dp(w,o[v]))}let M=0;for(let v=0;v<r;v++){let w=o[v];w.length!==0&&(M!==v&&(o[M]=w,u[M]=u[v],s[M]=s[v],l[M]=l[v]),M++)}o.length=M,u.length=M,s.length=M,l.length=M;let H=Ap({len:M,texts:o,isWordLike:u,kinds:s,starts:l}),k=wp(Sp(Ep(yp(xp(gp(H))))));for(let v=0;v<k.len-1;v++){let w=lp(k.texts[v]);w!==null&&(k.kinds[v]!==\"space\"&&k.kinds[v]!==\"preserved-space\"||k.kinds[v+1]!==\"text\"||!vl(k.texts[v+1])||(k.texts[v]=w.space,k.isWordLike[v]=!1,k.kinds[v]=k.kinds[v]===\"preserved-space\"?\"preserved-space\":\"space\",k.texts[v+1]=w.marks+k.texts[v+1],k.starts[v+1]=k.starts[v]+w.space.length))}return k}function Cp(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],i=0;for(let r=0;r<e.len;r++)e.kinds[r]===\"hard-break\"&&(n.push({startSegmentIndex:i,endSegmentIndex:r,consumedEndSegmentIndex:r+1}),i=r+1);return i<e.len&&n.push({startSegmentIndex:i,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function _p(e){if(e.len<=1)return e;let t=[],n=[],i=[],r=[],o=null,a=!1,u=0,s=!1,l=!1;function f(){o!==null&&(t.push(ve(o)),n.push(a),i.push(\"text\"),r.push(u),o=null)}for(let p=0;p<e.len;p++){let d=e.texts[p],x=e.kinds[p],S=e.isWordLike[p],y=e.starts[p];if(x===\"text\"){let b=Xm(d),A=Zn(d);if(o!==null&&s&&l){o.push(d),a=a||S,s=s||b,l=A;continue}f(),o=[d],a=S,u=y,s=b,l=A;continue}f(),t.push(d),n.push(S),i.push(x),r.push(y)}return f(),{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Bl(e,t,n=\"normal\",i=\"normal\"){let r=Vm(n),o=r.mode===\"pre-wrap\"?jm(e):zm(e);if(o.length===0)return{normalized:o,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let a=i===\"keep-all\"?_p(Dl(o,t,r)):Dl(o,t,r);return{normalized:o,chunks:Cp(a,r),...a}}var wt=null,Hl=new Map,Ct=null,Fp=96,Tp=/\\p{Emoji_Presentation}/u,vp=/[\\p{Emoji_Presentation}\\p{Extended_Pictographic}\\p{Regional_Indicator}\\uFE0F\\u20E3]/u,Ur=null,Gl=new Map;function Wr(){if(wt!==null)return wt;if(typeof OffscreenCanvas<\"u\")return wt=new OffscreenCanvas(1,1).getContext(\"2d\"),wt;if(typeof document<\"u\")return wt=document.createElement(\"canvas\").getContext(\"2d\"),wt;throw new Error(\"Text measurement requires OffscreenCanvas or a DOM canvas context.\")}function Mp(e){let t=Hl.get(e);return t||(t=new Map,Hl.set(e,t)),t}function qe(e,t){let n=t.get(e);return n===void 0&&(n={width:Wr().measureText(e).width,containsCJK:Ie(e)},t.set(e,n)),n}function _t(){if(Ct!==null)return Ct;if(typeof navigator>\"u\")return Ct={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},Ct;let e=navigator.userAgent,n=navigator.vendor===\"Apple Computer, Inc.\"&&e.includes(\"Safari/\")&&!e.includes(\"Chrome/\")&&!e.includes(\"Chromium/\")&&!e.includes(\"CriOS/\")&&!e.includes(\"FxiOS/\")&&!e.includes(\"EdgiOS/\"),i=e.includes(\"Chrome/\")||e.includes(\"Chromium/\")||e.includes(\"CriOS/\")||e.includes(\"Edg/\");return Ct={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:i,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},Ct}function Np(e){let t=e.match(/(\\d+(?:\\.\\d+)?)\\s*px/);return t?parseFloat(t[1]):16}function Ul(){return Ur===null&&(Ur=new Intl.Segmenter(void 0,{granularity:\"grapheme\"})),Ur}function Lp(e){return Tp.test(e)||e.includes(\"\\uFE0F\")}function Wl(e){return vp.test(e)}function Rp(e,t){let n=Gl.get(e);if(n!==void 0)return n;let i=Wr();i.font=e;let r=i.measureText(\"\\u{1F600}\").width;if(n=0,r>t+.5&&typeof document<\"u\"&&document.body!==null){let o=document.createElement(\"span\");o.style.font=e,o.style.display=\"inline-block\",o.style.visibility=\"hidden\",o.style.position=\"absolute\",o.textContent=\"\\u{1F600}\",document.body.appendChild(o);let a=o.getBoundingClientRect().width;document.body.removeChild(o),r-a>.5&&(n=r-a)}return Gl.set(e,n),n}function kp(e){let t=0,n=Ul();for(let i of n.segment(e))Lp(i.segment)&&t++;return t}function Dp(e,t){return t.emojiCount===void 0&&(t.emojiCount=kp(e)),t.emojiCount}function nt(e,t,n){return n===0?t.width:t.width-Dp(e,t)*n}function Vl(e,t,n,i,r){if(t.breakableFitAdvances!==void 0)return t.breakableFitAdvances;let o=Ul(),a=[];for(let f of o.segment(e))a.push(f.segment);if(a.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(r===\"sum-graphemes\"){let f=[];for(let p of a){let d=qe(p,n);f.push(nt(p,d,i))}return t.breakableFitAdvances=f,t.breakableFitAdvances}if(r===\"pair-context\"||a.length>Fp){let f=[],p=null,d=0;for(let x of a){let S=qe(x,n),y=nt(x,S,i);if(p===null)f.push(y);else{let b=p+x,A=qe(b,n);f.push(nt(b,A,i)-d)}p=x,d=y}return t.breakableFitAdvances=f,t.breakableFitAdvances}let u=[],s=\"\",l=0;for(let f of a){s+=f;let p=qe(s,n),d=nt(s,p,i);u.push(d-l),l=d}return t.breakableFitAdvances=u,t.breakableFitAdvances}function zl(e,t){let n=Wr();n.font=e;let i=Mp(e),r=Np(e),o=t?Rp(e,r):0;return{cache:i,fontSize:r,emojiCorrection:o}}function Ip(e,t){for(;t<e.widths.length;){let n=e.kinds[t];if(n!==\"space\"&&n!==\"zero-width-break\"&&n!==\"soft-hyphen\")break;t++}return t}function Pp(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function Op(e,t,n,i,r){let o=0,a=t;for(;o<e.length;){let u=a+e[o];if((o+1<e.length?u+r:u)>n+i)break;a=u,o++}return{fitCount:o,fittedWidth:a}}function jl(e,t){return e.simpleLineWalkFastPath?$l(e,t):ql(e,t)}function $l(e,t,n){let{widths:i,kinds:r,breakableFitAdvances:o}=e;if(i.length===0)return 0;let u=_t().lineFitEpsilon,s=t+u,l=0,f=0,p=!1,d=0,x=0,S=0,y=0,b=-1,A=0;function _(){b=-1,A=0}function M(F=S,L=y,R=f){l++,n?.({startSegmentIndex:d,startGraphemeIndex:x,endSegmentIndex:F,endGraphemeIndex:L,width:R}),f=0,p=!1,_()}function H(F,L){p=!0,d=F,x=0,S=F+1,y=0,f=L}function k(F,L,R){p=!0,d=F,x=L,S=F,y=L+1,f=R}function v(F,L){if(!p){H(F,L);return}f+=L,S=F+1,y=0}function w(F,L){let R=o[F];for(let z=L;z<R.length;z++){let P=R[z];p?f+P>s?(M(),k(F,z,P)):(f+=P,S=F,y=z+1):k(F,z,P)}p&&S===F&&y===R.length&&(S=F+1,y=0)}let C=0;for(;C<i.length&&!(!p&&(C=Ip(e,C),C>=i.length));){let F=i[C],L=r[C],R=L===\"space\"||L===\"preserved-space\"||L===\"tab\"||L===\"zero-width-break\"||L===\"soft-hyphen\";if(!p){F>t&&o[C]!==null?w(C,0):H(C,F),R&&(b=C+1,A=f-F),C++;continue}if(f+F>s){if(R){v(C,F),M(C+1,0,f-F),C++;continue}if(b>=0){if(S>b||S===b&&y>0){M();continue}M(b,0,A);continue}if(F>t&&o[C]!==null){M(),w(C,0),C++;continue}M();continue}v(C,F),R&&(b=C+1,A=f-F),C++}return p&&M(),l}function ql(e,t,n){if(e.simpleLineWalkFastPath)return $l(e,t,n);let{widths:i,lineEndFitAdvances:r,lineEndPaintAdvances:o,kinds:a,breakableFitAdvances:u,discretionaryHyphenWidth:s,tabStopAdvance:l,chunks:f}=e;if(i.length===0||f.length===0)return 0;let p=_t(),d=p.lineFitEpsilon,x=t+d,S=0,y=0,b=!1,A=0,_=0,M=0,H=0,k=-1,v=0,w=0,C=null;function F(){k=-1,v=0,w=0,C=null}function L(j=M,Y=H,O=y){S++,n?.({startSegmentIndex:A,startGraphemeIndex:_,endSegmentIndex:j,endGraphemeIndex:Y,width:O}),y=0,b=!1,F()}function R(j,Y){b=!0,A=j,_=0,M=j+1,H=0,y=Y}function z(j,Y,O){b=!0,A=j,_=Y,M=j,H=Y+1,y=O}function P(j,Y){if(!b){R(j,Y);return}y+=Y,M=j+1,H=0}function X(j,Y,O,V){if(!Y)return;let Ae=j===\"tab\"?0:r[O],G=j===\"tab\"?V:o[O];k=O+1,v=y-V+Ae,w=y-V+G,C=j}function I(j,Y){let O=u[j];for(let V=Y;V<O.length;V++){let Ae=O[V];b?y+Ae>x?(L(),z(j,V,Ae)):(y+=Ae,M=j,H=V+1):z(j,V,Ae)}b&&M===j&&H===O.length&&(M=j+1,H=0)}function ie(j){if(C!==\"soft-hyphen\")return!1;let Y=u[j];if(Y==null)return!1;let{fitCount:O,fittedWidth:V}=Op(Y,y,t,d,s);return O===0?!1:(y=V,M=j,H=O,F(),O===Y.length?(M=j+1,H=0,!0):(L(j,O,V+s),I(j,O),!0))}function Fe(j){S++,n?.({startSegmentIndex:j.startSegmentIndex,startGraphemeIndex:0,endSegmentIndex:j.consumedEndSegmentIndex,endGraphemeIndex:0,width:0}),F()}for(let j=0;j<f.length;j++){let Y=f[j];if(Y.startSegmentIndex===Y.endSegmentIndex){Fe(Y);continue}b=!1,y=0,A=Y.startSegmentIndex,_=0,M=Y.startSegmentIndex,H=0,F();let O=Y.startSegmentIndex;for(;O<Y.endSegmentIndex;){let V=a[O],Ae=V===\"space\"||V===\"preserved-space\"||V===\"tab\"||V===\"zero-width-break\"||V===\"soft-hyphen\",G=V===\"tab\"?Pp(y,l):i[O];if(V===\"soft-hyphen\"){b&&(M=O+1,H=0,k=O+1,v=y+s,w=y+s,C=V),O++;continue}if(!b){G>t&&u[O]!==null?I(O,0):R(O,G),X(V,Ae,O,G),O++;continue}if(y+G>x){let U=y+(V===\"tab\"?0:r[O]),le=y+(V===\"tab\"?G:o[O]);if(C===\"soft-hyphen\"&&p.preferEarlySoftHyphenBreak&&v<=x){L(k,0,w);continue}if(C===\"soft-hyphen\"&&ie(O)){O++;continue}if(Ae&&U<=x){P(O,G),L(O+1,0,le),O++;continue}if(k>=0&&v<=x){if(M>k||M===k&&H>0){L();continue}let oe=k;L(oe,0,w),O=oe;continue}if(G>t&&u[O]!==null){L(),I(O,0),O++;continue}L();continue}P(O,G),X(V,Ae,O,G),O++}if(b){let V=k===Y.consumedEndSegmentIndex?w:y;L(Y.consumedEndSegmentIndex,0,V)}}return S}var Vr=null;function Bp(){return Vr===null&&(Vr=new Intl.Segmenter(void 0,{granularity:\"grapheme\"})),Vr}function Hp(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function Gp(e,t){let n=[],i=[],r=0,o=!1,a=!1,u=!1;function s(){i.length!==0&&(n.push({text:i.length===1?i[0]:i.join(\"\"),start:r}),i=[],o=!1,a=!1,u=!1)}function l(p,d,x){i=[p],r=d,o=x,a=ni(p),u=fn.has(p)}function f(p,d){i.push(p),o=o||d;let x=ni(p);p.length===1&&tt.has(p)?a=a||x:a=x,u=!1}for(let p of Bp().segment(e)){let d=p.segment,x=Ie(d);if(i.length===0){l(d,p.index,x);continue}if(u||ei.has(d)||tt.has(d)||t.carryCJKAfterClosingQuote&&x&&a){f(d,x);continue}if(!o&&!x){f(d,x);continue}s(),l(d,p.index,x)}return s(),n}function Up(e){if(e.length<=1)return e;let t=[],n=[e[0].text],i=e[0].start,r=Ie(e[0].text),o=Zn(e[0].text);function a(){t.push({text:n.length===1?n[0]:n.join(\"\"),start:i})}for(let u=1;u<e.length;u++){let s=e[u],l=Ie(s.text),f=Zn(s.text);if(r&&o){n.push(s.text),r=r||l,o=f;continue}a(),n=[s.text],i=s.start,r=l,o=f}return a(),t}function Wp(e,t,n,i){let r=_t(),{cache:o,emojiCorrection:a}=zl(t,Wl(e.normalized)),u=nt(\"-\",qe(\"-\",o),a),l=nt(\" \",qe(\" \",o),a)*8;if(e.len===0)return Hp(n);let f=[],p=[],d=[],x=[],S=e.chunks.length<=1,y=n?[]:null,b=[],A=n?[]:null,_=Array.from({length:e.len});function M(w,C,F,L,R,z,P){R!==\"text\"&&R!==\"space\"&&R!==\"zero-width-break\"&&(S=!1),f.push(C),p.push(F),d.push(L),x.push(R),y?.push(z),b.push(P),A!==null&&A.push(w)}function H(w,C,F,L,R){let z=qe(w,o),P=nt(w,z,a),X=C===\"space\"||C===\"preserved-space\"||C===\"zero-width-break\"?0:P,I=C===\"space\"||C===\"zero-width-break\"?0:P;if(R&&L&&w.length>1){let ie=\"sum-graphemes\";dn(w)?ie=\"pair-context\":r.preferPrefixWidthsForBreakableRuns&&(ie=\"segment-prefixes\");let Fe=Vl(w,z,o,a,ie);M(w,P,X,I,C,F,Fe);return}M(w,P,X,I,C,F,null)}for(let w=0;w<e.len;w++){_[w]=f.length;let C=e.texts[w],F=e.isWordLike[w],L=e.kinds[w],R=e.starts[w];if(L===\"soft-hyphen\"){M(C,0,u,u,L,R,null);continue}if(L===\"hard-break\"){M(C,0,0,0,L,R,null);continue}if(L===\"tab\"){M(C,0,0,0,L,R,null);continue}let z=qe(C,o);if(L===\"text\"&&z.containsCJK){let P=Gp(C,r),X=i===\"keep-all\"?Up(P):P;for(let I=0;I<X.length;I++){let ie=X[I];H(ie.text,\"text\",R+ie.start,F,i===\"keep-all\"||!Ie(ie.text))}continue}H(C,L,R,F,!0)}let k=Vp(e.chunks,_,f.length),v=y===null?null:Tl(e.normalized,y);return A!==null?{widths:f,lineEndFitAdvances:p,lineEndPaintAdvances:d,kinds:x,simpleLineWalkFastPath:S,segLevels:v,breakableFitAdvances:b,discretionaryHyphenWidth:u,tabStopAdvance:l,chunks:k,segments:A}:{widths:f,lineEndFitAdvances:p,lineEndPaintAdvances:d,kinds:x,simpleLineWalkFastPath:S,segLevels:v,breakableFitAdvances:b,discretionaryHyphenWidth:u,tabStopAdvance:l,chunks:k}}function Vp(e,t,n){let i=[];for(let r=0;r<e.length;r++){let o=e[r],a=o.startSegmentIndex<t.length?t[o.startSegmentIndex]:n,u=o.endSegmentIndex<t.length?t[o.endSegmentIndex]:n,s=o.consumedEndSegmentIndex<t.length?t[o.consumedEndSegmentIndex]:n;i.push({startSegmentIndex:a,endSegmentIndex:u,consumedEndSegmentIndex:s})}return i}function zp(e,t,n,i){let r=i?.wordBreak??\"normal\",o=Bl(e,_t(),i?.whiteSpace,r);return Wp(o,t,n,r)}function Kl(e,t,n){return zp(e,t,!1,n)}function Jl(e,t,n){let i=jl(e,t);return{lineCount:i,height:i*n}}var jp={maxWidth:1600,baseFontSize:78,minFontSize:42,fontWeight:900,fontFamily:\"Outfit\",step:2};function Yl(e,t){let n={...jp,...t},i=1.2;for(let r=n.baseFontSize;r>=n.minFontSize;r-=n.step){let o=`${n.fontWeight} ${r}px ${n.fontFamily}`,a=Kl(e,o),{lineCount:u}=Jl(a,n.maxWidth,r*i);if(u<=1)return{fontSize:r,fits:!0}}return{fontSize:n.minFontSize,fits:!1}}window.__timelines=window.__timelines||{};ml();window.__hyperframes={fitTextFontSize:Yl,getVariables:fo};function Xl(){let e=window;e.__hyperframeRuntimeBootstrapped||(e.__hyperframeRuntimeBootstrapped=!0,_l())}document.readyState===\"loading\"?document.addEventListener(\"DOMContentLoaded\",Xl,{once:!0}):Xl();})();\n";
|
|
3
3
|
/**
|
|
4
4
|
* Returns the pre-built hyperframe runtime IIFE as a string constant.
|
|
5
5
|
* This is the production-safe path: no esbuild, no file I/O,
|