@htmlbricks/hb-terms-doc-templates 0.66.4 → 0.66.6
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/main.iife.js +1 -1
- package/manifest.json +2 -3
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(ii){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const yn=1,_n=2,ni=4,kn=8,wn=16,bn=1,zn=2,ri="[",It="[!",ai="[?",Pt="]",Oe={},C=Symbol(),oi="http://www.w3.org/1999/xhtml",$n=!1;var si=Array.isArray,xn=Array.prototype.indexOf,Ue=Array.prototype.includes,ut=Array.from,ft=Object.keys,ht=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyDescriptors,En=Object.prototype,Sn=Array.prototype,li=Object.getPrototypeOf,ci=Object.isExtensible;const In=()=>{};function Pn(e){for(var t=0;t<e.length;t++)e[t]()}function di(){var e,t,i=new Promise((n,r)=>{e=n,t=r});return{promise:i,resolve:e,reject:t}}const I=2,Ge=4,pt=8,ui=1<<24,ye=16,ie=32,_e=64,Ct=128,V=512,S=1024,A=2048,oe=4096,G=8192,W=16384,ke=32768,fi=1<<25,He=65536,hi=1<<17,Cn=1<<18,Pe=1<<19,An=1<<20,se=1<<25,Ce=65536,At=1<<21,Lt=1<<22,we=1<<23,Nt=Symbol("$state"),Ln=Symbol("legacy props"),Nn=Symbol(""),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Xe=3,Ze=8;function qn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Rn(e,t,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Fn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function On(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Un(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Gn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Hn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Vn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function vt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Wn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function ne(e){w=e}let k;function q(e){if(e===null)throw vt(),Oe;return k=e}function mt(){return q(le(k))}function Ye(e){if(w){if(le(k)!==null)throw vt(),Oe;k=e}}function Bn(e=1){if(w){for(var t=e,i=k;t--;)i=le(i);k=i}}function gt(e=!0){for(var t=0,i=k;;){if(i.nodeType===Ze){var n=i.data;if(n===Pt){if(t===0)return i;t-=1}else(n===ri||n===It||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var r=le(i);e&&i.remove(),i=r}}function pi(e){if(!e||e.nodeType!==Ze)throw vt(),Oe;return e.data}function vi(e){return e===this.v}function Qn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function mi(e){return!Qn(e,this.v)}let Jn=!1,B=null;function Ve(e){B=e}function gi(e,t=!1,i){B={p:B,i:!1,c:null,e:null,s:e,x:null,r:y,l:null}}function yi(e){var t=B,i=t.e;if(i!==null){t.e=null;for(var n of i)Gi(n)}return e!==void 0&&(t.x=e),t.i=!0,B=t.p,e??{}}function _i(){return!0}let Ae=[];function ki(){var e=Ae;Ae=[],Pn(e)}function Le(e){if(Ae.length===0&&!et){var t=Ae;queueMicrotask(()=>{t===Ae&&ki()})}Ae.push(e)}function Kn(){for(;Ae.length>0;)ki()}function wi(e){var t=y;if(t===null)return g.f|=we,e;if((t.f&ke)===0&&(t.f&Ge)===0)throw e;be(e,t)}function be(e,t){for(;t!==null;){if((t.f&Ct)!==0){if((t.f&ke)===0)throw e;try{t.b.error(e);return}catch(i){e=i}}t=t.parent}throw e}const Xn=-7169;function x(e,t){e.f=e.f&Xn|t}function Dt(e){(e.f&V)!==0||e.deps===null?x(e,S):x(e,oe)}function bi(e){if(e!==null)for(const t of e)(t.f&I)===0||(t.f&Ce)===0||(t.f^=Ce,bi(t.deps))}function zi(e,t,i){(e.f&A)!==0?t.add(e):(e.f&oe)!==0&&i.add(e),bi(e.deps),x(e,S)}const ze=new Set;let z=null,re=null,qt=null,et=!1,Rt=!1,We=null,yt=null;var $i=0;let Zn=1;class pe{id=Zn++;current=new Map;previous=new Map;#e=new Set;#i=new Set;#t=new Map;#r=new Map;#a=null;#n=[];#o=new Set;#s=new Set;#l=new Map;is_fork=!1;#u=!1;#c=new Set;#f(){return this.is_fork||this.#r.size>0}#p(){for(const n of this.#c)for(const r of n.#r.keys()){for(var t=!1,i=r;i.parent!==null;){if(this.#l.has(i)){t=!0;break}i=i.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var i=this.#l.get(t);if(i){this.#l.delete(t);for(var n of i.d)x(n,A),this.schedule(n);for(n of i.m)x(n,oe),this.schedule(n)}}#h(){if($i++>1e3&&(ze.delete(this),er()),!this.#f()){for(const l of this.#o)this.#s.delete(l),x(l,A),this.schedule(l);for(const l of this.#s)x(l,oe),this.schedule(l)}const t=this.#n;this.#n=[],this.apply();var i=We=[],n=[],r=yt=[];for(const l of t)try{this.#d(l,i,n)}catch(c){throw Ii(l),c}if(z=null,r.length>0){var a=pe.ensure();for(const l of r)a.schedule(l)}if(We=null,yt=null,this.#f()||this.#p()){this.#v(n),this.#v(i);for(const[l,c]of this.#l)Si(l,c)}else{this.#t.size===0&&ze.delete(this),this.#o.clear(),this.#s.clear();for(const l of this.#e)l(this);this.#e.clear(),xi(n),xi(i),this.#a?.resolve()}var s=z;if(this.#n.length>0){const l=s??=this;l.#n.push(...this.#n.filter(c=>!l.#n.includes(c)))}s!==null&&(ze.add(s),s.#h()),ze.has(this)||this.#m()}#d(t,i,n){t.f^=S;for(var r=t.first;r!==null;){var a=r.f,s=(a&(ie|_e))!==0,l=s&&(a&S)!==0,c=l||(a&G)!==0||this.#l.has(r);if(!c&&r.fn!==null){s?r.f^=S:(a&Ge)!==0?i.push(r):ot(r)&&((a&ye)!==0&&this.#s.add(r),Qe(r));var d=r.first;if(d!==null){r=d;continue}}for(;r!==null;){var o=r.next;if(o!==null){r=o;break}r=r.parent}}}#v(t){for(var i=0;i<t.length;i+=1)zi(t[i],this.#o,this.#s)}capture(t,i,n=!1){i!==C&&!this.previous.has(t)&&this.previous.set(t,i),(t.f&we)===0&&(this.current.set(t,[t.v,n]),re?.set(t,t.v))}activate(){z=this}deactivate(){z=null,re=null}flush(){try{Rt=!0,z=this,this.#h()}finally{$i=0,qt=null,We=null,yt=null,Rt=!1,z=null,re=null,$e.clear()}}discard(){for(const t of this.#i)t(this);this.#i.clear(),ze.delete(this)}#m(){for(const d of ze){var t=d.id<this.id,i=[];for(const[o,[p,u]]of this.current){if(d.current.has(o)){var n=d.current.get(o)[0];if(t&&p!==n)d.current.set(o,[p,u]);else continue}i.push(o)}var r=[...d.current.keys()].filter(o=>!this.current.has(o));if(r.length===0)t&&d.discard();else if(i.length>0){d.activate();var a=new Set,s=new Map;for(var l of i)Ti(l,r,a,s);if(d.#n.length>0){d.apply();for(var c of d.#n)d.#d(c,[],[]);d.#n=[]}d.deactivate()}}for(const d of ze)d.#c.has(this)&&(d.#c.delete(this),d.#c.size===0&&!d.#f()&&(d.activate(),d.#h()))}increment(t,i){let n=this.#t.get(i)??0;if(this.#t.set(i,n+1),t){let r=this.#r.get(i)??0;this.#r.set(i,r+1)}}decrement(t,i,n){let r=this.#t.get(i)??0;if(r===1?this.#t.delete(i):this.#t.set(i,r-1),t){let a=this.#r.get(i)??0;a===1?this.#r.delete(i):this.#r.set(i,a-1)}this.#u||n||(this.#u=!0,Le(()=>{this.#u=!1,this.flush()}))}transfer_effects(t,i){for(const n of t)this.#o.add(n);for(const n of i)this.#s.add(n);t.clear(),i.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#i.add(t)}settled(){return(this.#a??=di()).promise}static ensure(){if(z===null){const t=z=new pe;Rt||(ze.add(z),et||Le(()=>{z===t&&t.flush()}))}return z}apply(){{re=null;return}}schedule(t){if(qt=t,t.b?.is_pending&&(t.f&(Ge|pt|ui))!==0&&(t.f&ke)===0){t.b.defer_effect(t);return}for(var i=t;i.parent!==null;){i=i.parent;var n=i.f;if(We!==null&&i===y&&(g===null||(g.f&I)===0))return;if((n&(_e|ie))!==0){if((n&S)===0)return;i.f^=S}}this.#n.push(i)}}function _t(e){var t=et;et=!0;try{for(var i;;){if(Kn(),z===null)return i;z.flush()}}finally{et=t}}function er(){try{Un()}catch(e){be(e,qt)}}let ve=null;function xi(e){var t=e.length;if(t!==0){for(var i=0;i<t;){var n=e[i++];if((n.f&(W|G))===0&&ot(n)&&(ve=new Set,Qe(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Vi(n),ve?.size>0)){$e.clear();for(const r of ve){if((r.f&(W|G))!==0)continue;const a=[r];let s=r.parent;for(;s!==null;)ve.has(s)&&(ve.delete(s),a.push(s)),s=s.parent;for(let l=a.length-1;l>=0;l--){const c=a[l];(c.f&(W|G))===0&&Qe(c)}}ve.clear()}}ve=null}}function Ti(e,t,i,n){if(!i.has(e)&&(i.add(e),e.reactions!==null))for(const r of e.reactions){const a=r.f;(a&I)!==0?Ti(r,t,i,n):(a&(Lt|ye))!==0&&(a&A)===0&&Ei(r,t,n)&&(x(r,A),Ft(r))}}function Ei(e,t,i){const n=i.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const r of e.deps){if(Ue.call(t,r))return!0;if((r.f&I)!==0&&Ei(r,t,i))return i.set(r,!0),!0}return i.set(e,!1),!1}function Ft(e){z.schedule(e)}function Si(e,t){if(!((e.f&ie)!==0&&(e.f&S)!==0)){(e.f&A)!==0?t.d.push(e):(e.f&oe)!==0&&t.m.push(e),x(e,S);for(var i=e.first;i!==null;)Si(i,t),i=i.next}}function Ii(e){x(e,S);for(var t=e.first;t!==null;)Ii(t),t=t.next}function tr(e){let t=0,i=Ne(0),n;return()=>{Ht()&&(b(i),Hi(()=>(t===0&&(n=Tr(()=>e(()=>tt(i)))),t+=1,()=>{Le(()=>{t-=1,t===0&&(n?.(),n=void 0,tt(i))})})))}}var ir=He|Pe;function nr(e,t,i,n){new rr(e,t,i,n)}class rr{parent;is_pending=!1;transform_error;#e;#i=w?k:null;#t;#r;#a;#n=null;#o=null;#s=null;#l=null;#u=0;#c=0;#f=!1;#p=new Set;#h=new Set;#d=null;#v=tr(()=>(this.#d=Ne(this.#u),()=>{this.#d=null}));constructor(t,i,n,r){this.#e=t,this.#t=i,this.#r=a=>{var s=y;s.b=this,s.f|=Ct,n(a)},this.parent=y.b,this.transform_error=r??this.parent?.transform_error??(a=>a),this.#a=Yt(()=>{if(w){const a=this.#i;mt();const s=a.data===It;if(a.data.startsWith(ai)){const c=JSON.parse(a.data.slice(ai.length));this.#w(c)}else s?this.#b():this.#m()}else this.#_()},ir),w&&(this.#e=k)}#m(){try{this.#n=Q(()=>this.#r(this.#e))}catch(t){this.error(t)}}#w(t){const i=this.#t.failed;i&&(this.#s=Q(()=>{i(this.#e,()=>t,()=>()=>{})}))}#b(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=Q(()=>t(this.#e)),Le(()=>{var i=this.#l=document.createDocumentFragment(),n=M();i.append(n),this.#n=this.#y(()=>Q(()=>this.#r(n))),this.#c===0&&(this.#e.before(i),this.#l=null,Re(this.#o,()=>{this.#o=null}),this.#g(z))}))}#_(){try{if(this.is_pending=this.has_pending_snippet(),this.#c=0,this.#u=0,this.#n=Q(()=>{this.#r(this.#e)}),this.#c>0){var t=this.#l=document.createDocumentFragment();Bt(this.#n,t);const i=this.#t.pending;this.#o=Q(()=>i(this.#e))}else this.#g(z)}catch(i){this.error(i)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#p,this.#h)}defer_effect(t){zi(t,this.#p,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#y(t){var i=y,n=g,r=B;J(this.#a),O(this.#a),Ve(this.#a.ctx);try{return pe.ensure(),t()}catch(a){return wi(a),null}finally{J(i),O(n),Ve(r)}}#k(t,i){if(!this.has_pending_snippet()){this.parent&&this.parent.#k(t,i);return}this.#c+=t,this.#c===0&&(this.#g(i),this.#o&&Re(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,i){this.#k(t,i),this.#u+=t,!(!this.#d||this.#f)&&(this.#f=!0,Le(()=>{this.#f=!1,this.#d&&Be(this.#d,this.#u)}))}get_effect_pending(){return this.#v(),b(this.#d)}error(t){var i=this.#t.onerror;let n=this.#t.failed;if(!i&&!n)throw t;this.#n&&(R(this.#n),this.#n=null),this.#o&&(R(this.#o),this.#o=null),this.#s&&(R(this.#s),this.#s=null),w&&(q(this.#i),Bn(),q(gt()));var r=!1,a=!1;const s=()=>{if(r){Wn();return}r=!0,a&&Vn(),this.#s!==null&&Re(this.#s,()=>{this.#s=null}),this.#y(()=>{this.#_()})},l=c=>{try{a=!0,i?.(c,s),a=!1}catch(d){be(d,this.#a&&this.#a.parent)}n&&(this.#s=this.#y(()=>{try{return Q(()=>{var d=y;d.b=this,d.f|=Ct,n(this.#e,()=>c,()=>s)})}catch(d){return be(d,this.#a.parent),null}}))};Le(()=>{var c;try{c=this.transform_error(t)}catch(d){be(d,this.#a&&this.#a.parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(l,d=>be(d,this.#a&&this.#a.parent)):l(c)})}}function ar(e,t,i,n){const r=Mt;var a=e.filter(u=>!u.settled);if(i.length===0&&a.length===0){n(t.map(r));return}var s=y,l=or(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(u=>u.promise)):null;function d(u){l();try{n(u)}catch(v){(s.f&W)===0&&be(v,s)}kt()}if(i.length===0){c.then(()=>d(t.map(r)));return}var o=Pi();function p(){Promise.all(i.map(u=>sr(u))).then(u=>d([...t.map(r),...u])).catch(u=>be(u,s)).finally(()=>o())}c?c.then(()=>{l(),p(),kt()}):p()}function or(){var e=y,t=g,i=B,n=z;return function(a=!0){J(e),O(t),Ve(i),a&&(e.f&W)===0&&(n?.activate(),n?.apply())}}function kt(e=!0){J(null),O(null),Ve(null),e&&z?.deactivate()}function Pi(){var e=y,t=e.b,i=z,n=t.is_rendered();return t.update_pending_count(1,i),i.increment(n,e),(r=!1)=>{t.update_pending_count(-1,i),i.decrement(n,e,r)}}function Mt(e){var t=I|A,i=g!==null&&(g.f&I)!==0?g:null;return y!==null&&(y.f|=Pe),{ctx:B,deps:null,effects:null,equals:vi,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:i??y,ac:null}}function sr(e,t,i){let n=y;n===null&&qn();var r=void 0,a=Ne(C),s=!g,l=new Map;return kr(()=>{var c=y,d=di();r=d.promise;try{Promise.resolve(e()).then(d.resolve,d.reject).finally(kt)}catch(v){d.reject(v),kt()}var o=z;if(s){if((c.f&ke)!==0)var p=Pi();if(n.b.is_rendered())l.get(o)?.reject(he),l.delete(o);else{for(const v of l.values())v.reject(he);l.clear()}l.set(o,d)}const u=(v,h=void 0)=>{if(p){var _=h===he;p(_)}if(!(h===he||(c.f&W)!==0)){if(o.activate(),h)a.f|=we,Be(a,h);else{(a.f&we)!==0&&(a.f^=we),Be(a,v);for(const[f,m]of l){if(l.delete(f),f===o)break;m.reject(he)}}o.deactivate()}};d.promise.then(u,v=>u(null,v||"unknown"))}),vr(()=>{for(const c of l.values())c.reject(he)}),new Promise(c=>{function d(o){function p(){o===r?c(a):d(r)}o.then(p,p)}d(r)})}function lr(e){const t=Mt(e);return t.equals=mi,t}function cr(e){var t=e.effects;if(t!==null){e.effects=null;for(var i=0;i<t.length;i+=1)R(t[i])}}function dr(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return(t.f&W)===0?t:null;t=t.parent}return null}function Ot(e){var t,i=y;J(dr(e));try{e.f&=~Ce,cr(e),t=en(e)}finally{J(i)}return t}function Ci(e){var t=e.v,i=Ot(e);if(!e.equals(i)&&(e.wv=Xi(),(!z?.is_fork||e.deps===null)&&(e.v=i,z?.capture(e,t,!0),e.deps===null))){x(e,S);return}xe||(re!==null?(Ht()||z?.is_fork)&&re.set(e,i):Dt(e))}function ur(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=In,t.ac=null,st(t,0),Vt(t))}function Ai(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Qe(t)}let Ut=new Set;const $e=new Map;let Li=!1;function Ne(e,t){var i={f:0,v:e,reactions:null,equals:vi,rv:0,wv:0};return i}function me(e,t){const i=Ne(e);return zr(i),i}function Ni(e,t=!1,i=!0){const n=Ne(e);return t||(n.equals=mi),n}function H(e,t,i=!1){g!==null&&(!ae||(g.f&hi)!==0)&&_i()&&(g.f&(I|ye|Lt|hi))!==0&&(K===null||!Ue.call(K,e))&&Yn();let n=i?it(t):t;return Be(e,n,yt)}function Be(e,t,i=null){if(!e.equals(t)){var n=e.v;xe?$e.set(e,t):$e.set(e,n),e.v=t;var r=pe.ensure();if(r.capture(e,n),(e.f&I)!==0){const a=e;(e.f&A)!==0&&Ot(a),re===null&&Dt(a)}e.wv=Xi(),Di(e,A,i),y!==null&&(y.f&S)!==0&&(y.f&(ie|_e))===0&&(X===null?$r([e]):X.push(e)),!r.is_fork&&Ut.size>0&&!Li&&fr()}return t}function fr(){Li=!1;for(const e of Ut)(e.f&S)!==0&&x(e,oe),ot(e)&&Qe(e);Ut.clear()}function tt(e){H(e,e.v+1)}function Di(e,t,i){var n=e.reactions;if(n!==null)for(var r=n.length,a=0;a<r;a++){var s=n[a],l=s.f,c=(l&A)===0;if(c&&x(s,t),(l&I)!==0){var d=s;re?.delete(d),(l&Ce)===0&&(l&V&&(s.f|=Ce),Di(d,oe,i))}else if(c){var o=s;(l&ye)!==0&&ve!==null&&ve.add(o),i!==null?i.push(o):Ft(o)}}}function it(e){if(typeof e!="object"||e===null||Nt in e)return e;const t=li(e);if(t!==En&&t!==Sn)return e;var i=new Map,n=si(e),r=me(0),a=Me,s=l=>{if(Me===a)return l();var c=g,d=Me;O(null),Ki(a);var o=l();return O(c),Ki(d),o};return n&&i.set("length",me(e.length)),new Proxy(e,{defineProperty(l,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Gn();var o=i.get(c);return o===void 0?s(()=>{var p=me(d.value);return i.set(c,p),p}):H(o,d.value,!0),!0},deleteProperty(l,c){var d=i.get(c);if(d===void 0){if(c in l){const o=s(()=>me(C));i.set(c,o),tt(r)}}else H(d,C),tt(r);return!0},get(l,c,d){if(c===Nt)return e;var o=i.get(c),p=c in l;if(o===void 0&&(!p||je(l,c)?.writable)&&(o=s(()=>{var v=it(p?l[c]:C),h=me(v);return h}),i.set(c,o)),o!==void 0){var u=b(o);return u===C?void 0:u}return Reflect.get(l,c,d)},getOwnPropertyDescriptor(l,c){var d=Reflect.getOwnPropertyDescriptor(l,c);if(d&&"value"in d){var o=i.get(c);o&&(d.value=b(o))}else if(d===void 0){var p=i.get(c),u=p?.v;if(p!==void 0&&u!==C)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return d},has(l,c){if(c===Nt)return!0;var d=i.get(c),o=d!==void 0&&d.v!==C||Reflect.has(l,c);if(d!==void 0||y!==null&&(!o||je(l,c)?.writable)){d===void 0&&(d=s(()=>{var u=o?it(l[c]):C,v=me(u);return v}),i.set(c,d));var p=b(d);if(p===C)return!1}return o},set(l,c,d,o){var p=i.get(c),u=c in l;if(n&&c==="length")for(var v=d;v<p.v;v+=1){var h=i.get(v+"");h!==void 0?H(h,C):v in l&&(h=s(()=>me(C)),i.set(v+"",h))}if(p===void 0)(!u||je(l,c)?.writable)&&(p=s(()=>me(void 0)),H(p,it(d)),i.set(c,p));else{u=p.v!==C;var _=s(()=>it(d));H(p,_)}var f=Reflect.getOwnPropertyDescriptor(l,c);if(f?.set&&f.set.call(o,d),!u){if(n&&typeof c=="string"){var m=i.get("length"),T=Number(c);Number.isInteger(T)&&T>=m.v&&H(m,T+1)}tt(r)}return!0},ownKeys(l){b(r);var c=Reflect.ownKeys(l).filter(p=>{var u=i.get(p);return u===void 0||u.v!==C});for(var[d,o]of i)o.v!==C&&!(d in l)&&c.push(d);return c},setPrototypeOf(){Hn()}})}var qi,Ri,Fi,Mi;function jt(){if(qi===void 0){qi=window,Ri=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,i=Text.prototype;Fi=je(t,"firstChild").get,Mi=je(t,"nextSibling").get,ci(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ci(i)&&(i.__t=void 0)}}function M(e=""){return document.createTextNode(e)}function De(e){return Fi.call(e)}function le(e){return Mi.call(e)}function nt(e,t){if(!w)return De(e);var i=De(k);if(i===null)i=k.appendChild(M());else if(t&&i.nodeType!==Xe){var n=M();return i?.before(n),q(n),n}return t&&wt(i),q(i),i}function rt(e,t=!1){if(!w){var i=De(e);return i instanceof Comment&&i.data===""?le(i):i}if(t){if(k?.nodeType!==Xe){var n=M();return k?.before(n),q(n),n}wt(k)}return k}function at(e,t=1,i=!1){let n=w?k:e;for(var r;t--;)r=n,n=le(n);if(!w)return n;if(i){if(n?.nodeType!==Xe){var a=M();return n===null?r?.after(a):n.before(a),q(a),a}wt(n)}return q(n),n}function Oi(e){e.textContent=""}function Ui(){return!1}function Gt(e,t,i){return document.createElementNS(oi,e,void 0)}function wt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Xe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function ji(e){var t=g,i=y;O(null),J(null);try{return e()}finally{O(t),J(i)}}function hr(e){y===null&&(g===null&&On(),Mn()),xe&&Fn()}function pr(e,t){var i=t.last;i===null?t.last=t.first=e:(i.next=e,e.prev=i,t.last=e)}function ce(e,t){var i=y;i!==null&&(i.f&G)!==0&&(e|=G);var n={ctx:B,deps:null,nodes:null,f:e|A|V,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null},r=n;if((e&Ge)!==0)We!==null?We.push(n):pe.ensure().schedule(n);else if(t!==null){try{Qe(n)}catch(s){throw R(n),s}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&(r.f&Pe)===0&&(r=r.first,(e&ye)!==0&&(e&He)!==0&&r!==null&&(r.f|=He))}if(r!==null&&(r.parent=i,i!==null&&pr(r,i),g!==null&&(g.f&I)!==0&&(e&_e)===0)){var a=g;(a.effects??=[]).push(r)}return n}function Ht(){return g!==null&&!ae}function vr(e){const t=ce(pt,null);return x(t,S),t.teardown=e,t}function mr(e){hr();var t=y.f,i=!g&&(t&ie)!==0&&(t&ke)===0;if(i){var n=B;(n.e??=[]).push(e)}else return Gi(e)}function Gi(e){return ce(Ge|An,e)}function gr(e){pe.ensure();const t=ce(_e|Pe,e);return()=>{R(t)}}function yr(e){pe.ensure();const t=ce(_e|Pe,e);return(i={})=>new Promise(n=>{i.outro?Re(t,()=>{R(t),n(void 0)}):(R(t),n(void 0))})}function _r(e){return ce(Ge,e)}function kr(e){return ce(Lt|Pe,e)}function Hi(e,t=0){return ce(pt|t,e)}function qe(e,t=[],i=[],n=[]){ar(n,t,i,r=>{ce(pt,()=>e(...r.map(b)))})}function Yt(e,t=0){var i=ce(ye|t,e);return i}function Q(e){return ce(ie|Pe,e)}function Yi(e){var t=e.teardown;if(t!==null){const i=xe,n=g;Qi(!0),O(null);try{t.call(null)}finally{Qi(i),O(n)}}}function Vt(e,t=!1){var i=e.first;for(e.first=e.last=null;i!==null;){const r=i.ac;r!==null&&ji(()=>{r.abort(he)});var n=i.next;(i.f&_e)!==0?i.parent=null:R(i,t),i=n}}function wr(e){for(var t=e.first;t!==null;){var i=t.next;(t.f&ie)===0&&R(t),t=i}}function R(e,t=!0){var i=!1;(t||(e.f&Cn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(br(e.nodes.start,e.nodes.end),i=!0),x(e,fi),Vt(e,t&&!i),st(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)a.stop();Yi(e),e.f^=fi,e.f|=W;var r=e.parent;r!==null&&r.first!==null&&Vi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function br(e,t){for(;e!==null;){var i=e===t?null:le(e);e.remove(),e=i}}function Vi(e){var t=e.parent,i=e.prev,n=e.next;i!==null&&(i.next=n),n!==null&&(n.prev=i),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=i))}function Re(e,t,i=!0){var n=[];Wi(e,n,!0);var r=()=>{i&&R(e),t&&t()},a=n.length;if(a>0){var s=()=>--a||r();for(var l of n)l.out(s)}else r()}function Wi(e,t,i){if((e.f&G)===0){e.f^=G;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||i)&&t.push(l);for(var r=e.first;r!==null;){var a=r.next,s=(r.f&He)!==0||(r.f&ie)!==0&&(e.f&ye)!==0;Wi(r,t,s?i:!1),r=a}}}function Wt(e){Bi(e,!0)}function Bi(e,t){if((e.f&G)!==0){e.f^=G,(e.f&S)===0&&(x(e,A),pe.ensure().schedule(e));for(var i=e.first;i!==null;){var n=i.next,r=(i.f&He)!==0||(i.f&ie)!==0;Bi(i,r?t:!1),i=n}var a=e.nodes&&e.nodes.t;if(a!==null)for(const s of a)(s.is_global||t)&&s.in()}}function Bt(e,t){if(e.nodes)for(var i=e.nodes.start,n=e.nodes.end;i!==null;){var r=i===n?null:le(i);t.append(i),i=r}}let bt=!1,xe=!1;function Qi(e){xe=e}let g=null,ae=!1;function O(e){g=e}let y=null;function J(e){y=e}let K=null;function zr(e){g!==null&&(K===null?K=[e]:K.push(e))}let U=null,Y=0,X=null;function $r(e){X=e}let Ji=1,Fe=0,Me=Fe;function Ki(e){Me=e}function Xi(){return++Ji}function ot(e){var t=e.f;if((t&A)!==0)return!0;if(t&I&&(e.f&=~Ce),(t&oe)!==0){for(var i=e.deps,n=i.length,r=0;r<n;r++){var a=i[r];if(ot(a)&&Ci(a),a.wv>e.wv)return!0}(t&V)!==0&&re===null&&x(e,S)}return!1}function Zi(e,t,i=!0){var n=e.reactions;if(n!==null&&!(K!==null&&Ue.call(K,e)))for(var r=0;r<n.length;r++){var a=n[r];(a.f&I)!==0?Zi(a,t,!1):t===a&&(i?x(a,A):(a.f&S)!==0&&x(a,oe),Ft(a))}}function en(e){var t=U,i=Y,n=X,r=g,a=K,s=B,l=ae,c=Me,d=e.f;U=null,Y=0,X=null,g=(d&(ie|_e))===0?e:null,K=null,Ve(e.ctx),ae=!1,Me=++Fe,e.ac!==null&&(ji(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=At;var o=e.fn,p=o();e.f|=ke;var u=e.deps,v=z?.is_fork;if(U!==null){var h;if(v||st(e,Y),u!==null&&Y>0)for(u.length=Y+U.length,h=0;h<U.length;h++)u[Y+h]=U[h];else e.deps=u=U;if(Ht()&&(e.f&V)!==0)for(h=Y;h<u.length;h++)(u[h].reactions??=[]).push(e)}else!v&&u!==null&&Y<u.length&&(st(e,Y),u.length=Y);if(_i()&&X!==null&&!ae&&u!==null&&(e.f&(I|oe|A))===0)for(h=0;h<X.length;h++)Zi(X[h],e);if(r!==null&&r!==e){if(Fe++,r.deps!==null)for(let _=0;_<i;_+=1)r.deps[_].rv=Fe;if(t!==null)for(const _ of t)_.rv=Fe;X!==null&&(n===null?n=X:n.push(...X))}return(e.f&we)!==0&&(e.f^=we),p}catch(_){return wi(_)}finally{e.f^=At,U=t,Y=i,X=n,g=r,K=a,Ve(s),ae=l,Me=c}}function xr(e,t){let i=t.reactions;if(i!==null){var n=xn.call(i,e);if(n!==-1){var r=i.length-1;r===0?i=t.reactions=null:(i[n]=i[r],i.pop())}}if(i===null&&(t.f&I)!==0&&(U===null||!Ue.call(U,t))){var a=t;(a.f&V)!==0&&(a.f^=V,a.f&=~Ce),Dt(a),ur(a),st(a,0)}}function st(e,t){var i=e.deps;if(i!==null)for(var n=t;n<i.length;n++)xr(e,i[n])}function Qe(e){var t=e.f;if((t&W)===0){x(e,S);var i=y,n=bt;y=e,bt=!0;try{(t&(ye|ui))!==0?wr(e):Vt(e),Yi(e);var r=en(e);e.teardown=typeof r=="function"?r:null,e.wv=Ji;var a;$n&&Jn&&(e.f&A)!==0&&e.deps}finally{bt=n,y=i}}}function b(e){var t=e.f,i=(t&I)!==0;if(g!==null&&!ae){var n=y!==null&&(y.f&W)!==0;if(!n&&(K===null||!Ue.call(K,e))){var r=g.deps;if((g.f&At)!==0)e.rv<Fe&&(e.rv=Fe,U===null&&r!==null&&r[Y]===e?Y++:U===null?U=[e]:U.push(e));else{(g.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[g]:Ue.call(a,g)||a.push(g)}}}if(xe&&$e.has(e))return $e.get(e);if(i){var s=e;if(xe){var l=s.v;return((s.f&S)===0&&s.reactions!==null||nn(s))&&(l=Ot(s)),$e.set(s,l),l}var c=(s.f&V)===0&&!ae&&g!==null&&(bt||(g.f&V)!==0),d=(s.f&ke)===0;ot(s)&&(c&&(s.f|=V),Ci(s)),c&&!d&&(Ai(s),tn(s))}if(re?.has(e))return re.get(e);if((e.f&we)!==0)throw e.v;return e.v}function tn(e){if(e.f|=V,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&I)!==0&&(t.f&V)===0&&(Ai(t),tn(t))}function nn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($e.has(t)||(t.f&I)!==0&&nn(t))return!0;return!1}function Tr(e){var t=ae;try{return ae=!0,e()}finally{ae=t}}const zt=Symbol("events"),Er=new Set,rn=new Set;let an=null;function on(e){var t=this,i=t.ownerDocument,n=e.type,r=e.composedPath?.()||[],a=r[0]||e.target;an=e;var s=0,l=an===e&&e[zt];if(l){var c=r.indexOf(l);if(c!==-1&&(t===document||t===window)){e[zt]=t;return}var d=r.indexOf(t);if(d===-1)return;c<=d&&(s=c)}if(a=r[s]||e.target,a!==t){ht(e,"currentTarget",{configurable:!0,get(){return a||i}});var o=g,p=y;O(null),J(null);try{for(var u,v=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var _=a[zt]?.[n];_!=null&&(!a.disabled||e.target===a)&&_.call(a,e)}catch(f){u?v.push(f):u=f}if(e.cancelBubble||h===t||h===null)break;a=h}if(u){for(let f of v)queueMicrotask(()=>{throw f});throw u}}finally{e[zt]=t,delete e.currentTarget,O(o),J(p)}}}const Sr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ir(e){return Sr?.createHTML(e)??e}function Pr(e){var t=Gt("template");return t.innerHTML=Ir(e.replaceAll("<!>","<!---->")),t.content}function Te(e,t){var i=y;i.nodes===null&&(i.nodes={start:e,end:t,a:null,t:null})}function Ee(e,t){var i=(t&bn)!==0,n=(t&zn)!==0,r,a=!e.startsWith("<!>");return()=>{if(w)return Te(k,null),k;r===void 0&&(r=Pr(a?e:"<!>"+e),i||(r=De(r)));var s=n||Ri?document.importNode(r,!0):r.cloneNode(!0);if(i){var l=De(s),c=s.lastChild;Te(l,c)}else Te(s,s);return s}}function Cr(e=""){if(!w){var t=M(e+"");return Te(t,t),t}var i=k;return i.nodeType!==Xe?(i.before(i=M()),q(i)):wt(i),Te(i,i),i}function sn(){if(w)return Te(k,null),k;var e=document.createDocumentFragment(),t=document.createComment(""),i=M();return e.append(t,i),Te(t,i),e}function Z(e,t){if(w){var i=y;((i.f&ke)===0||i.nodes.end===null)&&(i.nodes.end=k),mt();return}e!==null&&e.before(t)}const Ar=["touchstart","touchmove"];function Lr(e){return Ar.includes(e)}function lt(e,t){var i=t==null?"":typeof t=="object"?`${t}`:t;i!==(e.__t??=e.nodeValue)&&(e.__t=i,e.nodeValue=`${i}`)}function ln(e,t){return cn(e,t)}function Nr(e,t){jt(),t.intro=t.intro??!1;const i=t.target,n=w,r=k;try{for(var a=De(i);a&&(a.nodeType!==Ze||a.data!==ri);)a=le(a);if(!a)throw Oe;ne(!0),q(a);const s=cn(e,{...t,anchor:a});return ne(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw s;return s!==Oe&&console.warn("Failed to hydrate: ",s),t.recover===!1&&jn(),jt(),Oi(i),ne(!1),ln(e,t)}finally{ne(n),q(r)}}const $t=new Map;function cn(e,{target:t,anchor:i,props:n={},events:r,context:a,intro:s=!0,transformError:l}){jt();var c=void 0,d=yr(()=>{var o=i??t.appendChild(M());nr(o,{pending:()=>{}},v=>{gi({});var h=B;if(a&&(h.c=a),r&&(n.$$events=r),w&&Te(v,null),c=e(v,n)||{},w&&(y.nodes.end=k,k===null||k.nodeType!==Ze||k.data!==Pt))throw vt(),Oe;yi()},l);var p=new Set,u=v=>{for(var h=0;h<v.length;h++){var _=v[h];if(!p.has(_)){p.add(_);var f=Lr(_);for(const $ of[t,document]){var m=$t.get($);m===void 0&&(m=new Map,$t.set($,m));var T=m.get(_);T===void 0?($.addEventListener(_,on,{passive:f}),m.set(_,1)):m.set(_,T+1)}}}};return u(ut(Er)),rn.add(u),()=>{for(var v of p)for(const f of[t,document]){var h=$t.get(f),_=h.get(v);--_==0?(f.removeEventListener(v,on),h.delete(v),h.size===0&&$t.delete(f)):h.set(v,_)}rn.delete(u),o!==i&&o.parentNode?.removeChild(o)}});return Qt.set(c,d),c}let Qt=new WeakMap;function Dr(e,t){const i=Qt.get(e);return i?(Qt.delete(e),i(t)):Promise.resolve()}class qr{anchor;#e=new Map;#i=new Map;#t=new Map;#r=new Set;#a=!0;constructor(t,i=!0){this.anchor=t,this.#a=i}#n=t=>{if(this.#e.has(t)){var i=this.#e.get(t),n=this.#i.get(i);if(n)Wt(n),this.#r.delete(i);else{var r=this.#t.get(i);r&&(this.#i.set(i,r.effect),this.#t.delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[a,s]of this.#e){if(this.#e.delete(a),a===t)break;const l=this.#t.get(s);l&&(R(l.effect),this.#t.delete(s))}for(const[a,s]of this.#i){if(a===i||this.#r.has(a))continue;const l=()=>{if(Array.from(this.#e.values()).includes(a)){var d=document.createDocumentFragment();Bt(s,d),d.append(M()),this.#t.set(a,{effect:s,fragment:d})}else R(s);this.#r.delete(a),this.#i.delete(a)};this.#a||!n?(this.#r.add(a),Re(s,l,!1)):l()}}};#o=t=>{this.#e.delete(t);const i=Array.from(this.#e.values());for(const[n,r]of this.#t)i.includes(n)||(R(r.effect),this.#t.delete(n))};ensure(t,i){var n=z,r=Ui();if(i&&!this.#i.has(t)&&!this.#t.has(t))if(r){var a=document.createDocumentFragment(),s=M();a.append(s),this.#t.set(t,{effect:Q(()=>i(s)),fragment:a})}else this.#i.set(t,Q(()=>i(this.anchor)));if(this.#e.set(n,t),r){for(const[l,c]of this.#i)l===t?n.unskip_effect(c):n.skip_effect(c);for(const[l,c]of this.#t)l===t?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else w&&(this.anchor=k),this.#n(n)}}function Je(e,t,i=!1){var n;w&&(n=k,mt());var r=new qr(e),a=i?He:0;function s(l,c){if(w){var d=pi(n);if(l!==parseInt(d.substring(1))){var o=gt();q(o),r.anchor=o,ne(!1),r.ensure(l,c),ne(!0);return}}r.ensure(l,c)}Yt(()=>{var l=!1;t((c,d=0)=>{l=!0,s(d,c)}),l||s(-1,null)},a)}function Rr(e,t,i){for(var n=[],r=t.length,a,s=t.length,l=0;l<r;l++){let p=t[l];Re(p,()=>{if(a){if(a.pending.delete(p),a.done.add(p),a.pending.size===0){var u=e.outrogroups;Jt(e,ut(a.done)),u.delete(a),u.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=n.length===0&&i!==null;if(c){var d=i,o=d.parentNode;Oi(o),o.append(d),e.items.clear()}Jt(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Jt(e,t,i=!0){var n;if(e.pending.size>0){n=new Set;for(const s of e.pending.values())for(const l of s)n.add(e.items.get(l).e)}for(var r=0;r<t.length;r++){var a=t[r];if(n?.has(a)){a.f|=se;const s=document.createDocumentFragment();Bt(a,s)}else R(t[r],i)}}var dn;function Kt(e,t,i,n,r,a=null){var s=e,l=new Map,c=(t&ni)!==0;if(c){var d=e;s=w?q(De(d)):d.appendChild(M())}w&&mt();var o=null,p=lr(()=>{var $=i();return si($)?$:$==null?[]:ut($)}),u,v=new Map,h=!0;function _($){(T.effect.f&W)===0&&(T.pending.delete($),T.fallback=o,Fr(T,u,s,t,n),o!==null&&(u.length===0?(o.f&se)===0?Wt(o):(o.f^=se,dt(o,null,s)):Re(o,()=>{o=null})))}function f($){T.pending.delete($)}var m=Yt(()=>{u=b(p);var $=u.length;let j=!1;if(w){var Ke=pi(s)===It;Ke!==($===0)&&(s=gt(),q(s),ne(!1),j=!0)}for(var ee=new Set,D=z,de=Ui(),ue=0;ue<$;ue+=1){w&&k.nodeType===Ze&&k.data===Pt&&(s=k,j=!0,ne(!1));var te=u[ue],fe=n(te,ue),E=h?null:l.get(fe);E?(E.v&&Be(E.v,te),E.i&&Be(E.i,ue),de&&D.unskip_effect(E.e)):(E=Mr(l,h?s:dn??=M(),te,fe,ue,r,t,i),h||(E.e.f|=se),l.set(fe,E)),ee.add(fe)}if($===0&&a&&!o&&(h?o=Q(()=>a(s)):(o=Q(()=>a(dn??=M())),o.f|=se)),$>ee.size&&Rn(),w&&$>0&&q(gt()),!h)if(v.set(D,ee),de){for(const[Et,St]of l)ee.has(Et)||D.skip_effect(St.e);D.oncommit(_),D.ondiscard(f)}else _(D);j&&ne(!0),b(p)}),T={effect:m,items:l,pending:v,outrogroups:null,fallback:o};h=!1,w&&(s=k)}function ct(e){for(;e!==null&&(e.f&ie)===0;)e=e.next;return e}function Fr(e,t,i,n,r){var a=(n&kn)!==0,s=t.length,l=e.items,c=ct(e.effect.first),d,o=null,p,u=[],v=[],h,_,f,m;if(a)for(m=0;m<s;m+=1)h=t[m],_=r(h,m),f=l.get(_).e,(f.f&se)===0&&(f.nodes?.a?.measure(),(p??=new Set).add(f));for(m=0;m<s;m+=1){if(h=t[m],_=r(h,m),f=l.get(_).e,e.outrogroups!==null)for(const te of e.outrogroups)te.pending.delete(f),te.done.delete(f);if((f.f&G)!==0&&(Wt(f),a&&(f.nodes?.a?.unfix(),(p??=new Set).delete(f))),(f.f&se)!==0)if(f.f^=se,f===c)dt(f,null,i);else{var T=o?o.next:c;f===e.effect.last&&(e.effect.last=f.prev),f.prev&&(f.prev.next=f.next),f.next&&(f.next.prev=f.prev),Se(e,o,f),Se(e,f,T),dt(f,T,i),o=f,u=[],v=[],c=ct(o.next);continue}if(f!==c){if(d!==void 0&&d.has(f)){if(u.length<v.length){var $=v[0],j;o=$.prev;var Ke=u[0],ee=u[u.length-1];for(j=0;j<u.length;j+=1)dt(u[j],$,i);for(j=0;j<v.length;j+=1)d.delete(v[j]);Se(e,Ke.prev,ee.next),Se(e,o,Ke),Se(e,ee,$),c=$,o=ee,m-=1,u=[],v=[]}else d.delete(f),dt(f,c,i),Se(e,f.prev,f.next),Se(e,f,o===null?e.effect.first:o.next),Se(e,o,f),o=f;continue}for(u=[],v=[];c!==null&&c!==f;)(d??=new Set).add(c),v.push(c),c=ct(c.next);if(c===null)continue}(f.f&se)===0&&u.push(f),o=f,c=ct(f.next)}if(e.outrogroups!==null){for(const te of e.outrogroups)te.pending.size===0&&(Jt(e,ut(te.done)),e.outrogroups?.delete(te));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||d!==void 0){var D=[];if(d!==void 0)for(f of d)(f.f&G)===0&&D.push(f);for(;c!==null;)(c.f&G)===0&&c!==e.fallback&&D.push(c),c=ct(c.next);var de=D.length;if(de>0){var ue=(n&ni)!==0&&s===0?i:null;if(a){for(m=0;m<de;m+=1)D[m].nodes?.a?.measure();for(m=0;m<de;m+=1)D[m].nodes?.a?.fix()}Rr(e,D,ue)}}a&&Le(()=>{if(p!==void 0)for(f of p)f.nodes?.a?.apply()})}function Mr(e,t,i,n,r,a,s,l){var c=(s&yn)!==0?(s&wn)===0?Ni(i,!1,!1):Ne(i):null,d=(s&_n)!==0?Ne(r):null;return{v:c,i:d,e:Q(()=>(a(t,c??i,d??r,l),()=>{e.delete(n)}))}}function dt(e,t,i){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end,a=t&&(t.f&se)===0?t.nodes.start:i;n!==null;){var s=le(n);if(a.before(n),n===r)return;n=s}}function Se(e,t,i){t===null?e.effect.first=i:t.next=i,i===null?e.effect.last=t:i.prev=t}function Or(e,t){_r(()=>{var i=e.getRootNode(),n=i.host?i:i.head??i.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const r=Gt("style");r.id=t.hash,r.textContent=t.code,n.appendChild(r)}})}function Ur(e,t,i){var n=""+e;return n}function jr(e,t,i,n,r,a){var s=e.__className;if(w||s!==i||s===void 0){var l=Ur(i);(!w||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=i}return a}const Gr=Symbol("is custom element"),Hr=Symbol("is html"),Yr=Dn?"link":"LINK";function Vr(e,t,i,n){var r=Wr(e);w&&(r[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Yr)||r[t]!==(r[t]=i)&&(t==="loading"&&(e[Nn]=i),i==null?e.removeAttribute(t):typeof i!="string"&&un(e).includes(t)?e[t]=i:e.setAttribute(t,i))}function xt(e,t,i){var n=g,r=y;let a=w;w&&ne(!1),O(null),J(null);try{t!=="style"&&(Xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?un(e).includes(t):i&&typeof i=="object")?e[t]=i:Vr(e,t,i==null?i:String(i))}finally{O(n),J(r),a&&ne(!0)}}function Wr(e){return e.__attributes??={[Gr]:e.nodeName.includes("-"),[Hr]:e.namespaceURI===oi}}var Xt=new Map;function un(e){var t=e.getAttribute("is")||e.nodeName,i=Xt.get(t);if(i)return i;Xt.set(t,i=[]);for(var n,r=e,a=Element.prototype;a!==r;){n=Tn(r);for(var s in n)n[s].set&&i.push(s);r=li(r)}return i}function Zt(e,t,i,n){var r=n,a=!0,s=()=>(a&&(a=!1,r=n),r),l;l=e[t],l===void 0&&n!==void 0&&(l=s());var c;c=()=>{var u=e[t];return u===void 0?s():(a=!0,u)};var d=!1,o=Mt(()=>(d=!1,c())),p=y;return(function(u,v){if(arguments.length>0){const h=v?b(o):u;return H(o,h),d=!0,r!==void 0&&(r=h),u}return xe&&d||(p.f&W)!==0?o.v:b(o)})}function Br(e){return new Qr(e)}class Qr{#e;#i;constructor(t){var i=new Map,n=(a,s)=>{var l=Ni(s,!1,!1);return i.set(a,l),l};const r=new Proxy({...t.props||{},$$events:{}},{get(a,s){return b(i.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===Ln?!0:(b(i.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return H(i.get(s)??n(s,l),l),Reflect.set(a,s,l)}});this.#i=(t.hydrate?Nr:ln)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&_t(),this.#e=r.$$events;for(const a of Object.keys(this.#i))a==="$set"||a==="$destroy"||a==="$on"||ht(this,a,{get(){return this.#i[a]},set(s){this.#i[a]=s},enumerable:!0});this.#i.$set=a=>{Object.assign(r,a)},this.#i.$destroy=()=>{Dr(this.#i)}}$set(t){this.#i.$set(t)}$on(t,i){this.#e[t]=this.#e[t]||[];const n=(...r)=>i.call(this,...r);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(r=>r!==n)}}$destroy(){this.#i.$destroy()}}let fn;typeof HTMLElement=="function"&&(fn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,i){super(),this.$$ctor=e,this.$$s=t,i&&(this.$$shadowRoot=this.attachShadow(i))}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return r=>{const a=Gt("slot");n!=="default"&&(a.name=n),Z(r,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Jr(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const r=this.$$g_p(n.name);r in this.$$d||(this.$$d[r]=Tt(r,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Br({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=gr(()=>{Hi(()=>{this.$$r=!0;for(const n of ft(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const r=Tt(n,this.$$d[n],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,r)}this.$$r=!1})});for(const n in this.$$l)for(const r of this.$$l[n]){const a=this.$$c.$on(n,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(e,t,i){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Tt(e,i,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ft(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Tt(e,t,i,n){const r=i[e]?.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!i[e])return t;if(n==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Jr(e){const t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}function Kr(e,t,i,n,r,a){let s=class extends fn{constructor(){super(e,i,r),this.$$p_d=t}static get observedAttributes(){return ft(t).map(l=>(t[l].attribute||l).toLowerCase())}};return ft(t).forEach(l=>{ht(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){c=Tt(l,c,t),this.$$d[l]=c;var d=this.$$c;if(d){var o=je(d,l)?.get;o?d[l]=c:d.$set({[l]:c})}}})}),n.forEach(l=>{ht(s.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=s,s}const Xr={version:"0.66.4"};function Zr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const i=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${i}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const r=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(r+"-","")}/${i}`}document.head.appendChild(n)}catch(n){console.warn(n)}}class Ie{dictionary;lang="";constructor(t){if(!t?.dictionary)throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(t?.lang)}setLang(t){t||(t=Ie.getDefaultLang()),this.lang=t}translateWord(t,i){return Ie.getDictionaryWord(t,this.dictionary,i||this.lang)}translateDate(t,i,n){return Ie.formatDate(t,i,n||this.lang)}static getDefaultLang(){let t="en";return navigator?.languages&&navigator.languages[0]?.split("-")[0]?.toLowerCase()?.length&&(t=navigator.languages[0].split("-")[0].toLowerCase()),t}static getDictionaryWord(t,i,n){if(!t)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(n&&i[n]?.[t])return i[n][t];let r="";const a=Ie.getDefaultLang();if(!n||a!==n){const s=i?.[a];s?.[t]&&(r=s[t])}return r}static formatDate(t,i,n){if(!t)throw new Error("no date provided");if(typeof t.getMonth!="function")throw new Error("wrong date format");return new Intl.DateTimeFormat(n||Ie.getDefaultLang(),i).format(t)}}function ei(e){let t=1;const i=e.chapters.filter(n=>n).sort((n,r)=>n.index-r.index);for(const n of i){n.index=t,t++;let r=1;const a=n.paragraphs.filter(s=>s).sort((s,l)=>s.index-l.index);for(const s of a){s.index=r,r++;let l=1;if(s.list?.length){const c=s.list.filter(d=>d).sort((d,o)=>d.index-o.index);for(const d of c)d.index=l,l++;s.list=c}}n.paragraphs=a}return e.chapters=i,e}const L=[{key:"name",label:"Nome",nosort:!0},{key:"service",label:"Servizio",nosort:!0},{key:"porpose",label:"Scope",nosort:!0},{key:"details",label:"Tipologie e Durata",nosort:!0}];function N(e){return{_id:e.name,name:e.name,service:e.service,porpose:e.purpose,details:(e.storage==="persistent",""+e.durate)}}function ea(e){const t={id:e.id,title:"INFORMATIVA PRIVACY",int:{key:"it",flag:""},chapters:[{title:"Informazioni relative alla Privacy del sito",index:0,paragraphs:[{key:"i1",content:`In questa sezione sono contenute le informazioni relative alle modalità di gestione di ${e.site.name}, di
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw s;return s!==Oe&&console.warn("Failed to hydrate: ",s),t.recover===!1&&jn(),jt(),Oi(i),ne(!1),ln(e,t)}finally{ne(n),q(r)}}const $t=new Map;function cn(e,{target:t,anchor:i,props:n={},events:r,context:a,intro:s=!0,transformError:l}){jt();var c=void 0,d=yr(()=>{var o=i??t.appendChild(M());nr(o,{pending:()=>{}},v=>{gi({});var h=B;if(a&&(h.c=a),r&&(n.$$events=r),w&&Te(v,null),c=e(v,n)||{},w&&(y.nodes.end=k,k===null||k.nodeType!==Ze||k.data!==Pt))throw vt(),Oe;yi()},l);var p=new Set,u=v=>{for(var h=0;h<v.length;h++){var _=v[h];if(!p.has(_)){p.add(_);var f=Lr(_);for(const $ of[t,document]){var m=$t.get($);m===void 0&&(m=new Map,$t.set($,m));var T=m.get(_);T===void 0?($.addEventListener(_,on,{passive:f}),m.set(_,1)):m.set(_,T+1)}}}};return u(ut(Er)),rn.add(u),()=>{for(var v of p)for(const f of[t,document]){var h=$t.get(f),_=h.get(v);--_==0?(f.removeEventListener(v,on),h.delete(v),h.size===0&&$t.delete(f)):h.set(v,_)}rn.delete(u),o!==i&&o.parentNode?.removeChild(o)}});return Qt.set(c,d),c}let Qt=new WeakMap;function Dr(e,t){const i=Qt.get(e);return i?(Qt.delete(e),i(t)):Promise.resolve()}class qr{anchor;#e=new Map;#i=new Map;#t=new Map;#r=new Set;#a=!0;constructor(t,i=!0){this.anchor=t,this.#a=i}#n=t=>{if(this.#e.has(t)){var i=this.#e.get(t),n=this.#i.get(i);if(n)Wt(n),this.#r.delete(i);else{var r=this.#t.get(i);r&&(this.#i.set(i,r.effect),this.#t.delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[a,s]of this.#e){if(this.#e.delete(a),a===t)break;const l=this.#t.get(s);l&&(R(l.effect),this.#t.delete(s))}for(const[a,s]of this.#i){if(a===i||this.#r.has(a))continue;const l=()=>{if(Array.from(this.#e.values()).includes(a)){var d=document.createDocumentFragment();Bt(s,d),d.append(M()),this.#t.set(a,{effect:s,fragment:d})}else R(s);this.#r.delete(a),this.#i.delete(a)};this.#a||!n?(this.#r.add(a),Re(s,l,!1)):l()}}};#o=t=>{this.#e.delete(t);const i=Array.from(this.#e.values());for(const[n,r]of this.#t)i.includes(n)||(R(r.effect),this.#t.delete(n))};ensure(t,i){var n=z,r=Ui();if(i&&!this.#i.has(t)&&!this.#t.has(t))if(r){var a=document.createDocumentFragment(),s=M();a.append(s),this.#t.set(t,{effect:Q(()=>i(s)),fragment:a})}else this.#i.set(t,Q(()=>i(this.anchor)));if(this.#e.set(n,t),r){for(const[l,c]of this.#i)l===t?n.unskip_effect(c):n.skip_effect(c);for(const[l,c]of this.#t)l===t?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else w&&(this.anchor=k),this.#n(n)}}function Je(e,t,i=!1){var n;w&&(n=k,mt());var r=new qr(e),a=i?He:0;function s(l,c){if(w){var d=pi(n);if(l!==parseInt(d.substring(1))){var o=gt();q(o),r.anchor=o,ne(!1),r.ensure(l,c),ne(!0);return}}r.ensure(l,c)}Yt(()=>{var l=!1;t((c,d=0)=>{l=!0,s(d,c)}),l||s(-1,null)},a)}function Rr(e,t,i){for(var n=[],r=t.length,a,s=t.length,l=0;l<r;l++){let p=t[l];Re(p,()=>{if(a){if(a.pending.delete(p),a.done.add(p),a.pending.size===0){var u=e.outrogroups;Jt(e,ut(a.done)),u.delete(a),u.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=n.length===0&&i!==null;if(c){var d=i,o=d.parentNode;Oi(o),o.append(d),e.items.clear()}Jt(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Jt(e,t,i=!0){var n;if(e.pending.size>0){n=new Set;for(const s of e.pending.values())for(const l of s)n.add(e.items.get(l).e)}for(var r=0;r<t.length;r++){var a=t[r];if(n?.has(a)){a.f|=se;const s=document.createDocumentFragment();Bt(a,s)}else R(t[r],i)}}var dn;function Kt(e,t,i,n,r,a=null){var s=e,l=new Map,c=(t&ni)!==0;if(c){var d=e;s=w?q(De(d)):d.appendChild(M())}w&&mt();var o=null,p=lr(()=>{var $=i();return si($)?$:$==null?[]:ut($)}),u,v=new Map,h=!0;function _($){(T.effect.f&W)===0&&(T.pending.delete($),T.fallback=o,Fr(T,u,s,t,n),o!==null&&(u.length===0?(o.f&se)===0?Wt(o):(o.f^=se,dt(o,null,s)):Re(o,()=>{o=null})))}function f($){T.pending.delete($)}var m=Yt(()=>{u=b(p);var $=u.length;let j=!1;if(w){var Ke=pi(s)===It;Ke!==($===0)&&(s=gt(),q(s),ne(!1),j=!0)}for(var ee=new Set,D=z,de=Ui(),ue=0;ue<$;ue+=1){w&&k.nodeType===Ze&&k.data===Pt&&(s=k,j=!0,ne(!1));var te=u[ue],fe=n(te,ue),E=h?null:l.get(fe);E?(E.v&&Be(E.v,te),E.i&&Be(E.i,ue),de&&D.unskip_effect(E.e)):(E=Mr(l,h?s:dn??=M(),te,fe,ue,r,t,i),h||(E.e.f|=se),l.set(fe,E)),ee.add(fe)}if($===0&&a&&!o&&(h?o=Q(()=>a(s)):(o=Q(()=>a(dn??=M())),o.f|=se)),$>ee.size&&Rn(),w&&$>0&&q(gt()),!h)if(v.set(D,ee),de){for(const[Et,St]of l)ee.has(Et)||D.skip_effect(St.e);D.oncommit(_),D.ondiscard(f)}else _(D);j&&ne(!0),b(p)}),T={effect:m,items:l,pending:v,outrogroups:null,fallback:o};h=!1,w&&(s=k)}function ct(e){for(;e!==null&&(e.f&ie)===0;)e=e.next;return e}function Fr(e,t,i,n,r){var a=(n&kn)!==0,s=t.length,l=e.items,c=ct(e.effect.first),d,o=null,p,u=[],v=[],h,_,f,m;if(a)for(m=0;m<s;m+=1)h=t[m],_=r(h,m),f=l.get(_).e,(f.f&se)===0&&(f.nodes?.a?.measure(),(p??=new Set).add(f));for(m=0;m<s;m+=1){if(h=t[m],_=r(h,m),f=l.get(_).e,e.outrogroups!==null)for(const te of e.outrogroups)te.pending.delete(f),te.done.delete(f);if((f.f&G)!==0&&(Wt(f),a&&(f.nodes?.a?.unfix(),(p??=new Set).delete(f))),(f.f&se)!==0)if(f.f^=se,f===c)dt(f,null,i);else{var T=o?o.next:c;f===e.effect.last&&(e.effect.last=f.prev),f.prev&&(f.prev.next=f.next),f.next&&(f.next.prev=f.prev),Se(e,o,f),Se(e,f,T),dt(f,T,i),o=f,u=[],v=[],c=ct(o.next);continue}if(f!==c){if(d!==void 0&&d.has(f)){if(u.length<v.length){var $=v[0],j;o=$.prev;var Ke=u[0],ee=u[u.length-1];for(j=0;j<u.length;j+=1)dt(u[j],$,i);for(j=0;j<v.length;j+=1)d.delete(v[j]);Se(e,Ke.prev,ee.next),Se(e,o,Ke),Se(e,ee,$),c=$,o=ee,m-=1,u=[],v=[]}else d.delete(f),dt(f,c,i),Se(e,f.prev,f.next),Se(e,f,o===null?e.effect.first:o.next),Se(e,o,f),o=f;continue}for(u=[],v=[];c!==null&&c!==f;)(d??=new Set).add(c),v.push(c),c=ct(c.next);if(c===null)continue}(f.f&se)===0&&u.push(f),o=f,c=ct(f.next)}if(e.outrogroups!==null){for(const te of e.outrogroups)te.pending.size===0&&(Jt(e,ut(te.done)),e.outrogroups?.delete(te));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||d!==void 0){var D=[];if(d!==void 0)for(f of d)(f.f&G)===0&&D.push(f);for(;c!==null;)(c.f&G)===0&&c!==e.fallback&&D.push(c),c=ct(c.next);var de=D.length;if(de>0){var ue=(n&ni)!==0&&s===0?i:null;if(a){for(m=0;m<de;m+=1)D[m].nodes?.a?.measure();for(m=0;m<de;m+=1)D[m].nodes?.a?.fix()}Rr(e,D,ue)}}a&&Le(()=>{if(p!==void 0)for(f of p)f.nodes?.a?.apply()})}function Mr(e,t,i,n,r,a,s,l){var c=(s&yn)!==0?(s&wn)===0?Ni(i,!1,!1):Ne(i):null,d=(s&_n)!==0?Ne(r):null;return{v:c,i:d,e:Q(()=>(a(t,c??i,d??r,l),()=>{e.delete(n)}))}}function dt(e,t,i){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end,a=t&&(t.f&se)===0?t.nodes.start:i;n!==null;){var s=le(n);if(a.before(n),n===r)return;n=s}}function Se(e,t,i){t===null?e.effect.first=i:t.next=i,i===null?e.effect.last=t:i.prev=t}function Or(e,t){_r(()=>{var i=e.getRootNode(),n=i.host?i:i.head??i.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const r=Gt("style");r.id=t.hash,r.textContent=t.code,n.appendChild(r)}})}function Ur(e,t,i){var n=""+e;return n}function jr(e,t,i,n,r,a){var s=e.__className;if(w||s!==i||s===void 0){var l=Ur(i);(!w||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=i}return a}const Gr=Symbol("is custom element"),Hr=Symbol("is html"),Yr=Dn?"link":"LINK";function Vr(e,t,i,n){var r=Wr(e);w&&(r[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Yr)||r[t]!==(r[t]=i)&&(t==="loading"&&(e[Nn]=i),i==null?e.removeAttribute(t):typeof i!="string"&&un(e).includes(t)?e[t]=i:e.setAttribute(t,i))}function xt(e,t,i){var n=g,r=y;let a=w;w&&ne(!1),O(null),J(null);try{t!=="style"&&(Xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?un(e).includes(t):i&&typeof i=="object")?e[t]=i:Vr(e,t,i==null?i:String(i))}finally{O(n),J(r),a&&ne(!0)}}function Wr(e){return e.__attributes??={[Gr]:e.nodeName.includes("-"),[Hr]:e.namespaceURI===oi}}var Xt=new Map;function un(e){var t=e.getAttribute("is")||e.nodeName,i=Xt.get(t);if(i)return i;Xt.set(t,i=[]);for(var n,r=e,a=Element.prototype;a!==r;){n=Tn(r);for(var s in n)n[s].set&&i.push(s);r=li(r)}return i}function Zt(e,t,i,n){var r=n,a=!0,s=()=>(a&&(a=!1,r=n),r),l;l=e[t],l===void 0&&n!==void 0&&(l=s());var c;c=()=>{var u=e[t];return u===void 0?s():(a=!0,u)};var d=!1,o=Mt(()=>(d=!1,c())),p=y;return(function(u,v){if(arguments.length>0){const h=v?b(o):u;return H(o,h),d=!0,r!==void 0&&(r=h),u}return xe&&d||(p.f&W)!==0?o.v:b(o)})}function Br(e){return new Qr(e)}class Qr{#e;#i;constructor(t){var i=new Map,n=(a,s)=>{var l=Ni(s,!1,!1);return i.set(a,l),l};const r=new Proxy({...t.props||{},$$events:{}},{get(a,s){return b(i.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===Ln?!0:(b(i.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return H(i.get(s)??n(s,l),l),Reflect.set(a,s,l)}});this.#i=(t.hydrate?Nr:ln)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&_t(),this.#e=r.$$events;for(const a of Object.keys(this.#i))a==="$set"||a==="$destroy"||a==="$on"||ht(this,a,{get(){return this.#i[a]},set(s){this.#i[a]=s},enumerable:!0});this.#i.$set=a=>{Object.assign(r,a)},this.#i.$destroy=()=>{Dr(this.#i)}}$set(t){this.#i.$set(t)}$on(t,i){this.#e[t]=this.#e[t]||[];const n=(...r)=>i.call(this,...r);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(r=>r!==n)}}$destroy(){this.#i.$destroy()}}let fn;typeof HTMLElement=="function"&&(fn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,i){super(),this.$$ctor=e,this.$$s=t,i&&(this.$$shadowRoot=this.attachShadow(i))}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return r=>{const a=Gt("slot");n!=="default"&&(a.name=n),Z(r,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Jr(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const r=this.$$g_p(n.name);r in this.$$d||(this.$$d[r]=Tt(r,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Br({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=gr(()=>{Hi(()=>{this.$$r=!0;for(const n of ft(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const r=Tt(n,this.$$d[n],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,r)}this.$$r=!1})});for(const n in this.$$l)for(const r of this.$$l[n]){const a=this.$$c.$on(n,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(e,t,i){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Tt(e,i,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ft(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Tt(e,t,i,n){const r=i[e]?.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!i[e])return t;if(n==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Jr(e){const t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}function Kr(e,t,i,n,r,a){let s=class extends fn{constructor(){super(e,i,r),this.$$p_d=t}static get observedAttributes(){return ft(t).map(l=>(t[l].attribute||l).toLowerCase())}};return ft(t).forEach(l=>{ht(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){c=Tt(l,c,t),this.$$d[l]=c;var d=this.$$c;if(d){var o=je(d,l)?.get;o?d[l]=c:d.$set({[l]:c})}}})}),n.forEach(l=>{ht(s.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=s,s}const Xr={version:"0.66.6"};function Zr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const i=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${i}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const r=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(r+"-","")}/${i}`}document.head.appendChild(n)}catch(n){console.warn(n)}}class Ie{dictionary;lang="";constructor(t){if(!t?.dictionary)throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(t?.lang)}setLang(t){t||(t=Ie.getDefaultLang()),this.lang=t}translateWord(t,i){return Ie.getDictionaryWord(t,this.dictionary,i||this.lang)}translateDate(t,i,n){return Ie.formatDate(t,i,n||this.lang)}static getDefaultLang(){let t="en";return navigator?.languages&&navigator.languages[0]?.split("-")[0]?.toLowerCase()?.length&&(t=navigator.languages[0].split("-")[0].toLowerCase()),t}static getDictionaryWord(t,i,n){if(!t)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(n&&i[n]?.[t])return i[n][t];let r="";const a=Ie.getDefaultLang();if(!n||a!==n){const s=i?.[a];s?.[t]&&(r=s[t])}return r}static formatDate(t,i,n){if(!t)throw new Error("no date provided");if(typeof t.getMonth!="function")throw new Error("wrong date format");return new Intl.DateTimeFormat(n||Ie.getDefaultLang(),i).format(t)}}function ei(e){let t=1;const i=e.chapters.filter(n=>n).sort((n,r)=>n.index-r.index);for(const n of i){n.index=t,t++;let r=1;const a=n.paragraphs.filter(s=>s).sort((s,l)=>s.index-l.index);for(const s of a){s.index=r,r++;let l=1;if(s.list?.length){const c=s.list.filter(d=>d).sort((d,o)=>d.index-o.index);for(const d of c)d.index=l,l++;s.list=c}}n.paragraphs=a}return e.chapters=i,e}const L=[{key:"name",label:"Nome",nosort:!0},{key:"service",label:"Servizio",nosort:!0},{key:"porpose",label:"Scope",nosort:!0},{key:"details",label:"Tipologie e Durata",nosort:!0}];function N(e){return{_id:e.name,name:e.name,service:e.service,porpose:e.purpose,details:(e.storage==="persistent",""+e.durate)}}function ea(e){const t={id:e.id,title:"INFORMATIVA PRIVACY",int:{key:"it",flag:""},chapters:[{title:"Informazioni relative alla Privacy del sito",index:0,paragraphs:[{key:"i1",content:`In questa sezione sono contenute le informazioni relative alle modalità di gestione di ${e.site.name}, di
|
|
3
3
|
proprietà di ${e.company.name}, in riferimento al trattamento dei dati degli utenti del sito stesso.`,index:0},{key:"i2",content:`La presente informativa ha valore anche ai fini dell'articolo 13 del Regolamento (UE) n. 2016/679, relativo alla protezione delle persone fisiche con
|
|
4
4
|
riguardo al trattamento dei dati personali nonché alla libera circolazione di tali dati, per i soggetti che interagiscono con ${e.site.name}`,index:1},{key:"i3",content:`L'informativa è resa solo per ${e.site.name} e non anche per altri siti web eventualmente consultati dall'utente tramite
|
|
5
5
|
link in esso contenuti.`,index:2},{key:"i4",content:`Scopo del presente documento è fornire indicazioni circa le modalità, i tempi e la natura delle informazioni che i titolari del trattamento devono
|
package/manifest.json
CHANGED
|
@@ -672,8 +672,7 @@
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
],
|
|
675
|
-
"iifeIntegrity": "sha384
|
|
676
|
-
"iifeIntegrityType": "sha384",
|
|
675
|
+
"iifeIntegrity": "sha384-AToSBoYgmsNWUE8HzO+1yLxisI/VKk/6IxiyP/NORts5zfO5BJWuEwWJZqpjzkWS",
|
|
677
676
|
"screenshots": [],
|
|
678
677
|
"licenses": [
|
|
679
678
|
{
|
|
@@ -693,5 +692,5 @@
|
|
|
693
692
|
"size": {},
|
|
694
693
|
"iifePath": "main.iife.js",
|
|
695
694
|
"repoName": "@htmlbricks/hb-terms-doc-templates",
|
|
696
|
-
"version": "0.66.
|
|
695
|
+
"version": "0.66.6"
|
|
697
696
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-terms-doc-templates",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.6",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Renders legal-style documents from `data`: privacy templates with site, company, and admin fields, or cookie policies with a `cookies` list. Use `i18nlang` with registered languages for localized copy; emits `event` for integrations.",
|
|
6
6
|
"licenses": [
|