TestSvelteStatic / bundle.js
kwabs22
Static hosting attempt
43e4f9c
raw
history blame
5.97 kB
var app=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function i(t,n){t.appendChild(n)}function u(t,n,e){t.insertBefore(n,e||null)}function l(t){t.parentNode&&t.parentNode.removeChild(t)}function s(t){return document.createElement(t)}function a(t){return document.createTextNode(t)}function f(){return a(" ")}function d(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function h(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function p(t,n,e){for(let e=0;e<t.options.length;e+=1){const o=t.options[e];if(o.__value===n)return void(o.selected=!0)}e&&void 0===n||(t.selectedIndex=-1)}let $;function g(t){$=t}function m(t){(function(){if(!$)throw new Error("Function called outside component initialization");return $})().$$.on_mount.push(t)}const v=[],_=[];let b=[];const y=[],x=Promise.resolve();let k=!1;function w(t){b.push(t)}const E=new Set;let S=0;function j(){if(0!==S)return;const t=$;do{try{for(;S<v.length;){const t=v[S];S++,g(t),A(t.$$)}}catch(t){throw v.length=0,S=0,t}for(g(null),v.length=0,S=0;_.length;)_.pop()();for(let t=0;t<b.length;t+=1){const n=b[t];E.has(n)||(E.add(n),n())}b.length=0}while(v.length);for(;y.length;)y.pop()();k=!1,E.clear(),g(t)}function A(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(w)}}const C=new Set;let O;function H(t,n){t&&t.i&&(C.delete(t),t.i(n))}function L(t,e,c,i){const{fragment:u,after_update:l}=t.$$;u&&u.m(e,c),i||w((()=>{const e=t.$$.on_mount.map(n).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(w)}function M(t,n){const e=t.$$;null!==e.fragment&&(!function(t){const n=[],e=[];b.forEach((o=>-1===t.indexOf(o)?n.push(o):e.push(o))),e.forEach((t=>t())),b=n}(e.after_update),o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function N(t,n){-1===t.$$.dirty[0]&&(v.push(t),k||(k=!0,x.then(j)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function T(n,r,c,i,u,s,a,f=[-1]){const d=$;g(n);const h=n.$$={fragment:null,ctx:[],props:s,update:t,not_equal:u,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(d?d.$$.context:[])),callbacks:e(),dirty:f,skip_bound:!1,root:r.target||d.$$.root};a&&a(h.root);let p=!1;if(h.ctx=c?c(n,r.props||{},((t,e,...o)=>{const r=o.length?o[0]:e;return h.ctx&&u(h.ctx[t],h.ctx[t]=r)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](r),p&&N(n,t)),e})):[],h.update(),p=!0,o(h.before_update),h.fragment=!!i&&i(h.ctx),r.target){if(r.hydrate){const t=function(t){return Array.from(t.childNodes)}(r.target);h.fragment&&h.fragment.l(t),t.forEach(l)}else h.fragment&&h.fragment.c();r.intro&&H(n.$$.fragment),L(n,r.target,r.anchor,r.customElement),j()}g(d)}class F{$destroy(){M(this,1),this.$destroy=t}$on(n,e){if(!r(e))return t;const o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(e),()=>{const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function V(t,n,e){const o=t.slice();return o[3]=n[e],o}function q(n){let e,o,r=n[3]+"";return{c(){e=s("option"),o=a(r),e.__value=n[3],e.value=e.__value},m(t,n){u(t,e,n),i(e,o)},p:t,d(t){t&&l(e)}}}function B(n){let e,r,c,a,$,g,m,v,_,b,y=n[1],x=[];for(let t=0;t<y.length;t+=1)x[t]=q(V(n,y,t));return{c(){e=s("h1"),e.textContent="AI Vision Assistant - Auto prompt HF agent + Cohere + Object detection",r=f(),c=s("video"),c.innerHTML='<track kind="captions" src="path/to/your/captions/file.vtt" srclang="en" label="English"/>',a=f(),$=s("div"),g=s("button"),g.textContent="Verb Test",m=f(),v=s("select");for(let t=0;t<x.length;t+=1)x[t].c();h(c,"id","videoCanvas"),h(c,"width","1080"),h(c,"height","1780"),c.autoplay=!0,void 0===n[0]&&w((()=>n[2].call(v))),h($,"id","frameForButtons")},m(t,o){u(t,e,o),u(t,r,o),u(t,c,o),u(t,a,o),u(t,$,o),i($,g),i($,m),i($,v);for(let t=0;t<x.length;t+=1)x[t]&&x[t].m(v,null);p(v,n[0],!0),_||(b=[d(g,"click",I),d(v,"change",n[2])],_=!0)},p(t,[n]){if(2&n){let e;for(y=t[1],e=0;e<y.length;e+=1){const o=V(t,y,e);x[e]?x[e].p(o,n):(x[e]=q(o),x[e].c(),x[e].m(v,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=y.length}3&n&&p(v,t[0])},i:t,o:t,d(t){t&&l(e),t&&l(r),t&&l(c),t&&l(a),t&&l($),function(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}(x,t),_=!1,o(b)}}}function I(){}function z(t,n,e){let o="Stove - lu",r=["Stove - lu","Refrigerator - bingxiang","Spoon - shao"];return m((()=>{})),[o,r,function(){o=function(t){const n=t.querySelector(":checked");return n&&n.__value}(this),e(0,o),e(1,r)}]}class P extends F{constructor(t){super(),T(this,t,z,B,c,{})}}function R(t){let n,e,o,r,c,d,p,$,g,m,v,_;return v=new P({}),{c(){var i;n=s("main"),e=s("h1"),o=a("Hello "),r=a(t[0]),c=a("!"),d=f(),p=s("p"),p.innerHTML='Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn how to build Svelte apps.',$=f(),g=s("h1"),g.textContent="My new component test",m=f(),(i=v.$$.fragment)&&i.c(),h(e,"class","svelte-1tky8bj"),h(g,"class","svelte-1tky8bj"),h(n,"class","svelte-1tky8bj")},m(t,l){u(t,n,l),i(n,e),i(e,o),i(e,r),i(e,c),i(n,d),i(n,p),i(n,$),i(n,g),i(n,m),L(v,n,null),_=!0},p(t,[n]){(!_||1&n)&&function(t,n){n=""+n,t.data!==n&&(t.data=n)}(r,t[0])},i(t){_||(H(v.$$.fragment,t),_=!0)},o(t){!function(t,n,e,o){if(t&&t.o){if(C.has(t))return;C.add(t),O.c.push((()=>{C.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}else o&&o()}(v.$$.fragment,t),_=!1},d(t){t&&l(n),M(v)}}}function D(t,n,e){let{name:o}=n;return t.$$set=t=>{"name"in t&&e(0,o=t.name)},[o]}return new class extends F{constructor(t){super(),T(this,t,D,R,c,{name:0})}}({target:document.body,props:{name:"world"}})}();
//# sourceMappingURL=bundle.js.map