PageSourceSearch

https://identidadefacil.rs.gov.br/copia-cin.routes-WQULHHZO.js

js identidadefacil.rs.gov.br collected 2026-10-08 18:57:56 UTC 128,251 bytes, 51 lines download raw bytes

vendor: 7,164 bytes, line 1
1import{a as xt,b as Ne,d as Mo,e as Oo,f as Kt,m as wo,n as Ro,o as Vo,p as _t,q as Ao,r as To,s as Fo}from"./chunk-IKACG7M5.js";import{a as ko}from"./chunk-WNQ4N7RJ.js";import{a as Io}from"./chunk-OITUS2KP.js";import{$ as y,$b as $t,Aa as Y,Ac as Eo,Ba as he,C as ht,Cc as So,Db as so,Dc as xo,Ec as Fe,G as F,Ga as It,Gc as _o,Hb as co,Hc as Po,Ia as le,Ib as uo,J as at,Jb as mo,K as lt,Ka as D,Mb as po,Nb as yt,Oa as $e,Pa as Ve,Qa as Ae,Qb as fo,Sb as ho,T as kt,Ub as bt,V as no,W as Wt,Wa as gt,Xa as v,Y as Xt,Ya as ue,Za as ne,_ as ro,ac as Yt,bc as Pe,cc as Jt,db as Ct,dc as Ye,ec as Je,f as Zi,fa as Xe,fc as qt,g as eo,ga as fe,gc as vo,h as to,jb as Oe,jc as go,ka as vt,kb as we,kc as qe,mb as ao,mc as de,nb as lo,nc as Te,oc as Ke,p as io,qa as Q,qc as re,ra as W,sa as yi,sb as Lt,sc as Ze,tc as Co,u as Qt,ua as bi,va as Ei,vc as Et,w as oo,wa as $,wc as St,xa as g,xc as et,ya as f,yc as yo,za as A,zc as bo}from"./chunk-A3JCXIPB.js";import{a as No}from"./chunk-AEN6GUZJ.js";import"./chunk-J6UONIR4.js";import"./chunk-QUJFQN2Y.js";import"./chunk-D2QXPZWH.js";import"./chunk-QG6PEGLO.js";import"./chunk-SHP4ND3R.js";import"./chunk-CEE3YQKQ.js";import"./chunk-RNYCZ223.js";import"./chunk-S3MDNWGF.js";import"./chunk-WIUS5UJB.js";import"./chunk-6D677ZFO.js";import"./chunk-XNDU5ZZL.js";import"./chunk-GXWWUYBK.js";import"./chunk-VZWY4NEG.js";import"./chunk-WI5MSH4N.js";import"./chunk-DGDFF3EP.js";import"./chunk-CKP3SGE2.js";import"./chunk-6N4CUDVL.js";import"./chunk-VXV6LGYV.js";import"./chunk-WCXRWRL6.js";import"./chunk-2TPYN4T3.js";import{e as qi,g as Ki,h as pe}from"./chunk-HHJ6TDNL.js";var zo=qi(Bo=>{"use strict";(function(){"use strict";function l(u){var h=0;return function(){return h<u.length?{done:!1,value:u[h++]}:{done:!0}}}var c=typeof Object.defineProperties=="function"?Object.defineProperty:function(u,h,O){return u==Array.prototype||u==Object.prototype||(u[h]=O.value),u};function o(u){u=[typeof globalThis=="object"&&globalThis,u,typeof window=="object"&&window,typeof self=="object"&&self,typeof global=="object"&&global];for(var h=0;h<u.length;++h){var O=u[h];if(O&&O.Math==Math)return O}throw Error("Cannot find global object")}var r=o(this);function d(u,h){if(h)e:{var O=r;u=u.split(".");for(var S=0;S<u.length-1;S++){var J=u[S];if(!(J in O))break e;O=O[J]}u=u[u.length-1],S=O[u],h=h(S),h!=S&&h!=null&&c(O,u,{configurable:!0,writable:!0,value:h})}}d("Symbol",function(u){function h(me){if(this instanceof h)throw new TypeError("Symbol is not a constructor");return new O(S+(me||"")+"_"+J++,me)}function O(me,b){this.g=me,c(this,"description",{configurable:!0,writable:!0,value:b})}if(u)return u;O.prototype.toString=function(){return this.g};var S="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",J=0;return h}),d("Symbol.iterator",function(u){if(u)return u;u=Symbol("Symbol.iterator");for(var h="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),O=0;O<h.length;O++){var S=r[h[O]];typeof S=="function"&&typeof S.prototype[u]!="function"&&c(S.prototype,u,{configurable:!0,writable:!0,value:function(){return M(l(this))}})}return u});function M(u){return u={next:u},u[Symbol.iterator]=function(){return this},u}function te(u){var h=typeof Symbol<"u"&&Symbol.iterator&&u[Symbol.iterator];return h?h.call(u):{next:l(u)}}function L(){this.i=!1,this.g=null,this.o=void 0,this.j=1,this.m=0,this.h=null}function K(u){if(u.i)throw new TypeError("Generator is already running");u.i=!0}L.prototype.l=function(u){this.o=u};function ye(u,h){u.h={F:h,G:!0},u.j=u.m}L.prototype.return=function(u){this.h={return:u},this.j=this.m};function Le(u){this.g=new L,this.h=u}function Be(u,h){K(u.g);var O=u.g.g;return O?Mt(u,"return"in O?O.return:function(S){return{value:S,done:!0}},h,u.g.return):(u.g.return(h),ze(u))}function Mt(u,h,O,S){try{var J=h.call(u.g.g,O);if(!(J instanceof Object))throw new TypeError("Iterator result "+J+" is not an object");if(!J.done)return u.g.i=!1,J;var me=J.value}catch(b){return u.g.g=null,ye(u.g,b),ze(u)}return u.g.g=null,S.call(u.g,me),ze(u)}function ze(u){for(;u.g.j;)try{var h=u.h(u.g);if(h)return u.g.i=!1,{value:h.value,done:!1}}catch(O){u.g.o=void 0,ye(u.g,O)}if(u.g.i=!1,u.g.h){if(h=u.g.h,u.g.h=null,h.G)throw h.F;return{value:h.return,done:!0}}return{value:void 0,done:!0}}function tt(u){this.next=function(h){return K(u.g),u.g.g?h=Mt(u,u.g.g.next,h,u.g.l):(u.g.l(h),h=ze(u)),h},this.throw=function(h){return K(u.g),u.g.g?h=Mt(u,u.g.g.throw,h,u.g.l):(ye(u.g,h),h=ze(u)),h},this.return=function(h){return Be(u,h)},this[Symbol.iterator]=function(){return this}}function Se(u){function h(S){return u.next(S)}function O(S){return u.throw(S)}return new Promise(function(S,J){function me(b){b.done?S(b.value):Promise.resolve(b.value).then(h,O).then(me,J)}me(u.next())})}d("Promise",function(u){function h(b){this.h=0,this.i=void 0,this.g=[],this.o=!1;var _=this.j();try{b(_.resolve,_.reject)}catch(H){_.reject(H)}}function O(){this.g=null}function S(b){return b instanceof h?b:new h(function(_){_(b)})}if(u)return u;O.prototype.h=function(b){if(this.g==null){this.g=[];var _=this;this.i(function(){_.l()})}this.g.push(b)};var J=r.setTimeout;O.prototype.i=function(b){J(b,0)},O.prototype.l=function(){for(;this.g&&this.g.length;){var b=this.g;this.g=[];for(var _=0;_<b.length;++_){var H=b[_];b[_]=null;try{H()}catch(oe){this.j(oe)}}}this.g=null},O.prototype.j=function(b){this.i(function(){throw b})},h.prototype.j=function(){function b(oe){return function(Ce){H||(H=!0,oe.call(_,Ce))}}var _=this,H=!1;return{resolve:b(this.A),reject:b(this.l)}},h.prototype.A=function(b){if(b===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(b instanceof h)this.C(b);else{e:switch(typeof b){case"object":var _=b!=null;break e;case"function":_=!0;break e;default:_=!1}_?this.v(b):this.m(b)}},h.prototype.v=function(b){var _=void 0;try{_=b.then}catch(H){this.l(H);return}typeof _=="function"?this.D(_,b):this.m(b)},h.prototype.l=function(b){this.u(2,b)},h.prototype.m=function(b){this.u(1,b)},h.prototype.u=function(b,_){if(this.h!=0)throw Error("Cannot settle("+b+", "+_+"): Promise already settled in state"+this.h);this.h=b,this.i=_,this.h===2&&this.B(),this.H()},h.prototype.B=function(){var b=this;J(function(){if(b.I()){var _=r.console;typeof _<"u"&&_.error(b.i)}},1)},h.prototype.I=function(){if(this.o)return!1;var b=r.CustomEvent,_=r.Event,H=r.dispatchEvent;return typeof H>"u"?!0:(typeof b=="function"?b=new b("unhandledrejection",{cancelable:!0}):typeof _=="function"?b=new _("unhandledrejection",{cancelable:!0}):(b=r.document.createEvent("CustomEvent"),b.initCustomEvent("unhandledrejection",!1,!0,b)),b.promise=this,b.reason=this.i,H(b))},h.prototype.H=function(){if(this.g!=null){for(var b=0;b<this.g.length;++b)me.h(this.g[b]);this.g=null}};var me=new O;return h.prototype.C=function(b){var _=this.j();b.s(_.resolve,_.reject)},h.prototype.D=function(b,_){var H=this.j();try{b.call(_,H.resolve,H.reject)}catch(oe){H.reject(oe)}},h.prototype.then=function(b,_){function H(_e,De){return typeof _e=="function"?function(Pt){try{oe(_e(Pt))}catch(ct){Ce(ct)}}:De}var oe,Ce,je=new h(function(_e,De){oe=_e,Ce=De});
1return this.s(H(b,oe),H(_,Ce)),je},h.prototype.catch=function(b){return this.then(void 0,b)},h.prototype.s=function(b,_){function H(){switch(oe.h){case 1:b(oe.i);break;case 2:_(oe.i);break;default:throw Error("Unexpected state: "+oe.h)}}var oe=this;this.g==null?me.h(H):this.g.push(H),this.o=!0},h.resolve=S,h.reject=function(b){return new h(function(_,H){H(b)})},h.race=function(b){return new h(function(_,H){for(var oe=te(b),Ce=oe.next();!Ce.done;Ce=oe.next())S(Ce.value).s(_,H)})},h.all=function(b){var _=te(b),H=_.next();return H.done?S([]):new h(function(oe,Ce){function je(Pt){return function(ct){_e[Pt]=ct,De--,De==0&&oe(_e)}}var _e=[],De=0;do _e.push(void 0),De++,S(H.value).s(je(_e.length-1),Ce),H=_.next();while(!H.done)})},h});var Ot=typeof Object.assign=="function"?Object.assign:function(u,h){for(var O=1;O<arguments.length;O++){var S=arguments[O];if(S)for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(u[J]=S[J])}return u};d("Object.assign",function(u){return u||Ot});var wt=this||self,Rt={facingMode:"user",width:640,height:480};function Z(u,h){this.video=u,this.i=0,this.h=Object.assign(Object.assign({},Rt),h)}Z.prototype.stop=function(){var u=this,h,O,S,J;return Se(new tt(new Le(function(me){if(u.g){for(h=u.g.getTracks(),O=te(h),S=O.next();!S.done;S=O.next())J=S.value,J.stop();u.g=void 0}me.j=0})))},Z.prototype.start=function(){var u=this,h;return Se(new tt(new Le(function(O){return navigator.mediaDevices&&navigator.mediaDevices.getUserMedia||alert("No navigator.mediaDevices.getUserMedia exists."),h=u.h,O.return(navigator.mediaDevices.getUserMedia({video:{facingMode:h.facingMode,width:h.width,height:h.height}}).then(function(S){ui(u,S)}).catch(function(S){var J="Failed to acquire camera feed: "+S;throw console.error(J),alert(J),S}))})))};function Vt(u){window.requestAnimationFrame(function(){At(u)})}function ui(u,h){u.g=h,u.video.srcObject=h,u.video.onloadedmetadata=function(){u.video.play(),Vt(u)}}function At(u){var h=null;u.video.paused||u.video.currentTime===u.i||(u.i=u.video.currentTime,h=u.h.onFrame()),h?h.then(function(){Vt(u)}):Vt(u)}var xe=["Camera"],be=wt;xe[0]in be||typeof be.execScript>"u"||be.execScript("var "+xe[0]);for(var ie;xe.length&&(ie=xe.shift());)xe.length||Z===void 0?be[ie]&&be[ie]!==Object.prototype[ie]?be=be[ie]:be=be[ie]={}:be[ie]=Z}).call(Bo)});var Qo=qi(Ho=>{"use strict";(function(){"use strict";var l;function c(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var o=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,i){return e==Array.prototype||e==Object.prototype||(e[t]=i.value),e};function r(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof global=="object"&&global];for(var t=0;t<e.length;++t){var i=e[t];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}var d=r(this);function M(e,t){if(t)e:{var i=d;e=e.split(".");for(var n=0;n<e.length-1;n++){var a=e[n];if(!(a in i))break e;i=i[a]}e=e[e.length-1],n=i[e],t=t(n),t!=n&&t!=null&&o(i,e,{configurable:!0,writable:!0,value:t})}}M("Symbol",function(e){function t(m){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new i(n+(m||"")+"_"+a++,m)}function i(m,s){this.g=m,o(this,"description",{configurable:!0,writable:!0,value:s})}if(e)return e;i.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",a=0;return t}),M("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),i=0;i<t.length;i++){var n=d[t[i]];typeof n=="function"&&typeof n.prototype[e]!="function"&&o(n.prototype,e,{configurable:!0,writable:!0,value:function(){return te(c(this))}})}return e});function te(e){return e={next:e},e[Symbol.iterator]=function(){return this},e}function L(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:c(e)}}function K(e){if(!(e instanceof Array)){e=L(e);for(var t,i=[];!(t=e.next()).done;)i.push(t.value);e=i}return e}var ye=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},Le;if(typeof Object.setPrototypeOf=="function")Le=Object.setPrototypeOf;else{var Be;e:{var Mt={a:!0},ze={};try{ze.__proto__=Mt,Be=ze.a;break e}catch(e){}Be=!1}Le=Be?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var tt=Le;function Se(e,t){if(e.prototype=ye(t.prototype),e.prototype.constructor=e,tt)tt(e,t);else for(var i in t)if(i!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(t,i);n&&Object.defineProperty(e,i,n)}else e[i]=t[i];e.ea=t.prototype}function Ot(){this.l=!1,this.i=null,this.h=void 0,this.g=1,this.s=this.m=0,this.j=null}function wt(e){if(e.l)throw new TypeError("Generator is already running");e.l=!0}Ot.prototype.o=function(e){this.h=e};function Rt(e,t){e.j={U:t,V:!0},e.g=e.m||e.s}Ot.prototype.return=function(e){this.j={return:e},this.g=this.s};function Z(e,t,i){return e.g=i,{value:t}}function Vt(e){this.g=new Ot,this.h=e}function ui(e,t){wt(e.g);var i=e.g.i;return i?At(e,"return"in i?i.return:function(n){return{value:n,done:!0}},t,e.g.return):(e.g.return(t),xe(e))}function At(e,t,i,n){try{var a=t.call(e.g.i,i);if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");
vendor: 36,783 bytes, lines 1-18
1if(!a.done)return e.g.l=!1,a;var m=a.value}catch(s){return e.g.i=null,Rt(e.g,s),xe(e)}return e.g.i=null,n.call(e.g,m),xe(e)}function xe(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.l=!1,{value:t.value,done:!1}}catch(i){e.g.h=void 0,Rt(e.g,i)}if(e.g.l=!1,e.g.j){if(t=e.g.j,e.g.j=null,t.V)throw t.U;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function be(e){this.next=function(t){return wt(e.g),e.g.i?t=At(e,e.g.i.next,t,e.g.o):(e.g.o(t),t=xe(e)),t},this.throw=function(t){return wt(e.g),e.g.i?t=At(e,e.g.i.throw,t,e.g.o):(Rt(e.g,t),t=xe(e)),t},this.return=function(t){return ui(e,t)},this[Symbol.iterator]=function(){return this}}function ie(e,t){return t=new be(new Vt(t)),tt&&e.prototype&&tt(t,e.prototype),t}function u(e,t){e instanceof String&&(e+="");var i=0,n=!1,a={next:function(){if(!n&&i<e.length){var m=i++;return{value:t(m,e[m]),done:!1}}return n=!0,{done:!0,value:void 0}}};return a[Symbol.iterator]=function(){return a},a}var h=typeof Object.assign=="function"?Object.assign:function(e,t){for(var i=1;i<arguments.length;i++){var n=arguments[i];if(n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};M("Object.assign",function(e){return e||h}),M("Promise",function(e){function t(s){this.h=0,this.i=void 0,this.g=[],this.o=!1;var p=this.j();try{s(p.resolve,p.reject)}catch(C){p.reject(C)}}function i(){this.g=null}function n(s){return s instanceof t?s:new t(function(p){p(s)})}if(e)return e;i.prototype.h=function(s){if(this.g==null){this.g=[];var p=this;this.i(function(){p.l()})}this.g.push(s)};var a=d.setTimeout;i.prototype.i=function(s){a(s,0)},i.prototype.l=function(){for(;this.g&&this.g.length;){var s=this.g;this.g=[];for(var p=0;p<s.length;++p){var C=s[p];s[p]=null;try{C()}catch(E){this.j(E)}}}this.g=null},i.prototype.j=function(s){this.i(function(){throw s})},t.prototype.j=function(){function s(E){return function(w){C||(C=!0,E.call(p,w))}}var p=this,C=!1;return{resolve:s(this.C),reject:s(this.l)}},t.prototype.C=function(s){if(s===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(s instanceof t)this.F(s);else{e:switch(typeof s){case"object":var p=s!=null;break e;case"function":p=!0;break e;default:p=!1}p?this.u(s):this.m(s)}},t.prototype.u=function(s){var p=void 0;try{p=s.then}catch(C){this.l(C);return}typeof p=="function"?this.G(p,s):this.m(s)},t.prototype.l=function(s){this.s(2,s)},t.prototype.m=function(s){this.s(1,s)},t.prototype.s=function(s,p){if(this.h!=0)throw Error("Cannot settle("+s+", "+p+"): Promise already settled in state"+this.h);this.h=s,this.i=p,this.h===2&&this.D(),this.A()},t.prototype.D=function(){var s=this;a(function(){if(s.B()){var p=d.console;typeof p<"u"&&p.error(s.i)}},1)},t.prototype.B=function(){if(this.o)return!1;var s=d.CustomEvent,p=d.Event,C=d.dispatchEvent;return typeof C>"u"?!0:(typeof s=="function"?s=new s("unhandledrejection",{cancelable:!0}):typeof p=="function"?s=new p("unhandledrejection",{cancelable:!0}):(s=d.document.createEvent("CustomEvent"),s.initCustomEvent("unhandledrejection",!1,!0,s)),s.promise=this,s.reason=this.i,C(s))},t.prototype.A=function(){if(this.g!=null){for(var s=0;s<this.g.length;++s)m.h(this.g[s]);this.g=null}};var m=new i;return t.prototype.F=function(s){var p=this.j();s.J(p.resolve,p.reject)},t.prototype.G=function(s,p){var C=this.j();try{s.call(p,C.resolve,C.reject)}catch(E){C.reject(E)}},t.prototype.then=function(s,p){function C(N,V){return typeof N=="function"?function(x){try{E(N(x))}catch(R){w(R)}}:V}var E,w,X=new t(function(N,V){E=N,w=V});return this.J(C(s,E),C(p,w)),X},t.prototype.catch=function(s){return this.then(void 0,s)},t.prototype.J=function(s,p){function C(){switch(E.h){case 1:s(E.i);break;case 2:p(E.i);break;default:throw Error("Unexpected state: "+E.h)}}var E=this;this.g==null?m.h(C):this.g.push(C),this.o=!0},t.resolve=n,t.reject=function(s){return new t(function(p,C){C(s)})},t.race=function(s){return new t(function(p,C){for(var E=L(s),w=E.next();!w.done;w=E.next())n(w.value).J(p,C)})},t.all=function(s){var p=L(s),C=p.next();return C.done?n([]):new t(function(E,w){function X(x){return function(R){N[x]=R,V--,V==0&&E(N)}}var N=[],V=0;do N.push(void 0),V++,n(C.value).J(X(N.length-1),w),C=p.next();while(!C.done)})},t}),M("Object.is",function(e){return e||function(t,i){return t===i?t!==0||1/t===1/i:t!==t&&i!==i}}),M("Array.prototype.includes",function(e){return e||function(t,i){var n=this;n instanceof String&&(n=String(n));var a=n.length;for(i=i||0,0>i&&(i=Math.max(i+a,0));i<a;i++){var m=n[i];if(m===t||Object.is(m,t))return!0}return!1}}),M("String.prototype.includes",function(e){return e||function(t,i){if(this==null)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return this.indexOf(t,i||0)!==-1}}),M("Array.prototype.keys",function(e){return e||function(){return u(this,function(t){return t})}});var O=this||self;function S(e,t){e=e.split(".");var i=O;e[0]in i||typeof i.execScript>"u"||i.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)e.length||t===void 0?i[n]&&i[n]!==Object.prototype[n]?i=i[n]:i=i[n]={}:i[n]=t}function J(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}var me,b=typeof TextDecoder<"u",_,H=typeof TextEncoder<"u";function oe(e){if(H)e=(_||(_=new TextEncoder)).encode(e);else{var t=void 0;t=t===void 0?!1:t;for(var i=0,n=new Uint8Array(3*e.length),a=0;a<e.length;a++){var m=e.charCodeAt(a);if(128>m)n[i++]=m;else{if(2048>m)n[i++]=m>>6|192;else{if(55296<=m&&57343>=m){if(56319>=m&&a<e.length){var s=e.charCodeAt(++a);if(56320<=s&&57343>=s){m=1024*(m-55296)+s-56320+65536,n[i++]=m>>18|240,n[i++]=m>>12&63|128,n[i++]=m>>6&63|128,n[i++]=m&63|128;continue}else a--}if(t)throw Error("Found an unpaired surrogate");m=65533}n[i++]=m>>12|224,n[i++]=m>>6&63|128}n[i++]=m&63|128}}e=n.subarray(0,i)}return e}var Ce={},je=null;function _e(e,t){t===void 0&&(t=0),ct(),t=Ce[t];for(var i=Array(Math.floor(e.length/3)),n=t[64]||"",a=0,m=0;a<e.length-2;a+=3){var s=e[a],p=e[a+1],C=e[a+2],E=t[s>>2];s=t[(s&3)<<4|p>>4],p=t[(p&15)<<2|C>>6],C=t[C&63],i[m++]=E+s+p+C}switch(E=0,C=n,e.length-a){case 2:E=e[a+1],C=t[(E&15)<<2]||n;case 1:e=e[a],i[m]=t[e>>2]+t[(e&3)<<4|E>>4]+C+n}return i.join("")}function De(e){var t=e.length,i=3*t/4;i%3?i=Math.floor(i):"=.".indexOf(e[t-1])!=-1&&(i="=.".indexOf(e[t-2])!=-1?i-2:i-1);var n=new Uint8Array(i),a=0;return Pt(e,function(m){n[a++]=m}),n.subarray(0,a)}function Pt(e,t){function i(C){for(;n<e.length;){var E=e.charAt(n++),w=je[E];if(w!=null)return w;if(!/^[\s\xa0]*$/.test(E))throw Error("Unknown base64 encoding at char: "+E)}return C}ct();for(var n=0;;){var a=i(-1),m=i(0),s=i(64),p=i(64);if(p===64&&a===-1)break;t(a<<2|m>>4),s!=64&&(t(m<<4&240|s>>2),p!=64&&t(s<<6&192|p))}}function ct(){if(!je){je={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],i=0;5>i;i++){var n=e.concat(t[i].split(""));Ce[i]=n;for(var a=0;a<n.length;a++){var m=n[a];je[m]===void 0&&(je[m]=a)}}}}var $o=typeof Uint8Array.prototype.slice=="function",Si;function xi(e,t,i){return t===i?Si||(Si=new Uint8Array(0)):$o?e.slice(t,i):new Uint8Array(e.subarray(t,i))}var Ue=0,He=0;function ut(e,t){t=t===void 0?{}:t,t=t.v===void 0?!1:t.v,this.h=null,this.g=this.j=this.l=0,this.m=!1,this.v=t,e&&_i(this,e)}function _i(e,t){t=t.constructor===Uint8Array?t:t.constructor===ArrayBuffer?new Uint8Array(t):t.constructor===Array?new Uint8Array(t):t.constructor===String?De(t):t instanceof Uint8Array?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e.h=t,e.l=0,e.j=e.h.length,e.g=e.l}ut.prototype.reset=function(){this.g=this.l};function jt(e){for(var t=128,i=0,n=0,a=0;4>a&&128<=t;a++)t=e.h[e.g++],i|=(t&127)<<7*a;if(128<=t&&(t=e.h[e.g++],i|=(t&127)<<28,n|=(t&127)>>4),128<=t)for(a=0;5>a&&128<=t;a++)t=e.h[e.g++],n|=(t&127)<<7*a+3;if(128>t)return e=i>>>0,t=n>>>0,(n=t&2147483648)&&(e=~e+1>>>0,t=~t>>>0,e==0&&(t=t+1>>>0)),e=4294967296*t+(e>>>0),n?-e:e;e.m=!0}ut.prototype.i=function(){var e=this.h,t=e[this.g],i=t&127;return 128>t?(this.g+=1,i):(t=e[this.g+1],i|=(t&127)<<7,128>t?(this.g+=2,i):(t=e[this.g+2],i|=(t&127)<<14,128>t?(this.g+=3,i):(t=e[this.g+3],i|=(t&127)<<21,128>t?(this.g+=4,i):(t=e[this.g+4],i|=(t&15)<<28,128>t?(this.g+=5,i>>>0):(this.g+=5,128<=e[this.g++]&&128<=e[this.g++]&&128<=e[this.g++]&&128<=e[this.g++]&&this.g++,i)))))},ut.prototype.o=function(){var e=this.h[this.g],t=this.h[this.g+1],i=this.h[this.g+2],n=this.h[this.g+3];return this.g+=4,i=(e<<0|t<<8|i<<16|n<<24)>>>0,e=2*(i>>31)+1,t=i>>>23&255,i&=8388607,t==255?i?NaN:1/0*e:t==0?e*Math.pow(2,-149)*i:e*Math.pow(2,t-150)*(i+Math.pow(2,23))};var Mi=[];function Dt(){this.g=new Uint8Array(64),this.h=0}Dt.prototype.push=function(e){if(!(this.h+1<this.g.length)){var t=this.g;this.g=new Uint8Array(Math.ceil(1+2*this.g.length)),this.g.set(t)}this.g[this.h++]=e},Dt.prototype.length=function(){return this.h},Dt.prototype.end=function(){var e=this.g,t=this.h;return this.h=0,xi(e,0,t)};function Qe(e,t){for(;127<t;)e.push(t&127|128),t>>>=7;e.push(t)}function Tt(e){var t={},i=t.N===void 0?!1:t.N;this.o={v:t.v===void 0?!1:t.v},this.N=i,t=this.o,Mi.length?(i=Mi.pop(),t&&(i.v=t.v),e&&_i(i,e),e=i):e=new ut(e,t),this.g=e,this.m=this.g.g,this.h=this.i=this.l=-1,this.j=!1}Tt.prototype.reset=function(){this.g.reset(),this.h=this.l=-1};function Ge(e){var t=e.g;if((t=t.g==t.j)||(t=e.j)||(t=e.g,t=t.m||0>t.g||t.g>t.j),t)return!1;e.m=e.g.g,t=e.g.i();var i=t&7;return i!=0&&i!=5&&i!=1&&i!=2&&i!=3&&i!=4?(e.j=!0,!1):(e.i=t,e.l=t>>>3,e.h=i,!0)}function dt(e){switch(e.h){case 0:if(e.h!=0)dt(e);else{for(e=e.g;e.h[e.g]&128;)e.g++;e.g++}break;case 1:e.h!=1?dt(e):(e=e.g,e.g+=8);break;case 2:if(e.h!=2)dt(e);else{var t=e.g.i();e=e.g,e.g+=t}break;case 5:e.h!=5?dt(e):(e=e.g,e.g+=4);break;case 3:t=e.l;do{if(!Ge(e)){e.j=!0;break}if(e.h==4){e.l!=t&&(e.j=!0);break}dt(e)}while(!0);break;default:e.j=!0}}function Ut(e,t,i){var n=e.g.j,a=e.g.i(),m=e.g.g+a;if(e.g.j=m,i(t,e),i=m-e.g.g,i!==0)throw Error("Message parsing ended unexpectedly. Expected to read "+a+" bytes, instead read "+(a-i)+" bytes, either the data ended unexpectedly or the message misreported its own length");return e.g.g=m,e.g.j=n,t}function Ee(e){return e.g.o()}function Oi(e){var t=e.g.i();e=e.g;var i=e.g;e.g+=t,e=e.h;var n;if(b)(n=me)||(n=me=new TextDecoder("utf-8",{fatal:!1})),n=n.decode(e.subarray(i,i+t));else{t=i+t;for(var a=[],m=null,s,p,C;i<t;)s=e[i++],128>s?a.push(s):224>s?i>=t?a.push(65533):(p=e[i++],194>s||(p&192)!==128?(i--,a.push(65533)):a.push((s&31)<<6|p&63)):240>s?i>=t-1?a.push(65533):(p=e[i++],(p&192)!==128||s===224&&160>p||s===237&&160<=p||((n=e[i++])&192)!==128?(i--,a.push(65533)):a.push((s&15)<<12|(p&63)<<6|n&63)):244>=s?i>=t-2?a.push(65533):(p=e[i++],(p&192)!==128||(s<<28)+(p-144)>>30!==0||((n=e[i++])&192)!==128||((C=e[i++])&192)!==128?(i--,a.push(65533)):(s=(s&7)<<18|(p&63)<<12|(n&63)<<6|C&63,s-=65536,a.push((s>>10&1023)+55296,(s&1023)+56320))):a.push(65533),8192<=a.length&&(m=J(m,a),a.length=0);n=J(m,a)}return n}function wi(e,t,i){var n=e.g.i();for(n=e.g.g+n;e.g.g<n;)i.push(t.call(e.g))}function Ri(e,t){e.h==2?wi(e,ut.prototype.o,t):t.push(Ee(e))}function di(){this.h=[],this.i=0,this.g=new Dt}function mt(e,t){t.length!==0&&(e.h.push(t),e.i+=t.length)}function mi(e){var t=e.i+e.g.length();if(t===0)return new Uint8Array(0);t=new Uint8Array(t);for(var i=e.h,n=i.length,a=0,m=0;m<n;m++){var s=i[m];s.length!==0&&(t.set(s,a),a+=s.length)}return i=e.g,n=i.h,n!==0&&(t.set(i.g.subarray(0,n),a),i.h=0),e.h=[t],t}function Me(e,t,i){if(i!=null){Qe(e.g,8*t+5),e=e.g;var n=i;n=(i=0>n?1:0)?-n:n,n===0?0<1/n?Ue=He=0:(He=0,Ue=2147483648):isNaN(n)?(He=0,Ue=2147483647):34028234663852886e22<n?(He=0,Ue=(i<<31|2139095040)>>>0):11754943508222875e-54>n?(n=Math.round(n/Math.pow(2,-149)),He=0,Ue=(i<<31|n)>>>0):(t=Math.floor(Math.log(n)/Math.LN2),n*=Math.pow(2,-t),n=Math.round(8388608*n),16777216<=n&&++t,He=0,Ue=(i<<31|t+127<<23|n&8388607)>>>0),i=Ue,e.push(i>>>0&255),e.push(i>>>8&255),e.push(i>>>16&255),e.push(i>>>24&255)}}var Vi=typeof Uint8Array=="function";function Ai(e,t,i){if(e!=null)return typeof e=="object"?Vi&&e instanceof Uint8Array?i(e):Pi(e,t,i):t(e)}function Pi(e,t,i){if(Array.isArray(e)){for(var n=Array(e.length),a=0;a<e.length;a++)n[a]=Ai(e[a],t,i);return Array.isArray(e)&&e.W&&Ft(n),n}n={};for(a in e)n[a]=Ai(e[a],t,i);return n}function Yo(e){return typeof e=="number"?isFinite(e)?e:String(e):e}var Jo={W:{value:!0,configurable:!0}};function Ft(e){return Array.isArray(e)&&!Object.isFrozen(e)&&Object.defineProperties(e,Jo),e}var Ti;function se(e,t,i){var n=Ti;Ti=null,e||(e=n),n=this.constructor.ca,e||(e=n?[n]:[]),this.j=n?0:-1,this.m=this.g=null,this.h=e;e:{if(n=this.h.length,e=n-1,n&&(n=this.h[e],!(n===null||typeof n!="object"||Array.isArray(n)||Vi&&n instanceof Uint8Array))){this.l=e-this.j,this.i=n;break e}t!==void 0&&-1<t?(this.l=Math.max(t,e+1-this.j),this.i=null):this.l=Number.MAX_VALUE}if(i)for(t=0;t<i.length;t++)e=i[t],e<this.l?(e+=this.j,(n=this.h[e])?Ft(n):this.h[e]=Gt):(Fi(this),(n=this.i[e])?Ft(n):this.i[e]=Gt)}var Gt=Object.freeze(Ft([]));function Fi(e){var t=e.l+e.j;e.h[t]||(e.i=e.h[t]={})}function ee(e,t,i){return t===-1?null:i!==void 0&&i||t>=e.l?e.i?e.i[t]:void 0:e.h[t+e.j]}function Bt(e,t){var i=i===void 0?!1:i,n=ee(e,t,i);return n==null&&(n=Gt),n===Gt&&(n=Ft([]),I(e,t,n,i)),n}function Ni(e){var t=Bt(e,3);if(e.m||(e.m={}),!e.m[3]){for(var i=0;i<t.length;i++)t[i]=+t[i];e.m[3]=!0}return t}function it(e,t,i){return e=ee(e,t),e??i}function Re(e,t,i){return e=ee(e,t),e=e==null?e:+e,e??(i===void 0?0:i)}function I(e,t,i,n){n!==void 0&&n||t>=e.l?(Fi(e),e.i[t]=i):e.h[t+e.j]=i}function ki(e,t,i){if(i===-1)return null;if(e.g||(e.g={}),!e.g[i]){var n=ee(e,i,!1);n&&(e.g[i]=new t(n))}return e.g[i]}function zt(e,t){e.g||(e.g={});var i=e.g[1];if(!i){var n=Bt(e,1);i=[];for(var a=0;a<n.length;a++)i[a]=new t(n[a]);e.g[1]=i}return i}function Ii(e,t,i){var n=n===void 0?!1:n;e.g||(e.g={});var a=i&&ot(i,!1);e.g[t]=i,I(e,t,a,n)}function Li(e,t,i,n){var a=zt(e,i);t=t||new i,e=Bt(e,1),n!=null?(a.splice(n,0,t),e.splice(n,0,ot(t,!1))):(a.push(t),e.push(ot(t,!1)))}se.prototype.toJSON=function(){var e=ot(this,!1);return Pi(e,Yo,_e)};function ot(e,t){if(e.g)for(var i in e.g){var n=e.g[i];if(Array.isArray(n))for(var a=0;a<n.length;a++)n[a]&&ot(n[a],t);else n&&ot(n,t)}return e.h}se.prototype.toString=function(){return ot(this,!1).toString()};function pi(e,t){if(e=e.o){mt(t,t.g.end());for(var i=0;i<e.length;i++)mt(t,e[i])}}function We(e,t){if(t.h==4)return!1;var i=t.m;return dt(t),t.N||(t=xi(t.g.h,i,t.g.g),(i=e.o)?i.push(t):e.o=[t]),!0}function nt(e){se.call(this,e,-1,Ko)}Se(nt,se),nt.prototype.getRows=function(){return ee(this,1)},nt.prototype.getCols=function(){return ee(this,2)},nt.prototype.getPackedDataList=function(){return Ni(this)},nt.prototype.getLayout=function(){return it(this,4,0)};function qo(e,t){for(;Ge(t);)switch(t.i){case 8:var i=t.g.i();I(e,1,i);break;case 16:i=t.g.i(),I(e,2,i);break;case 29:case 26:Ri(t,e.getPackedDataList());break;case 32:i=jt(t.g),I(e,4,i);break;default:if(!We(e,t))return e}return e}var Ko=[3];function ve(e,t){var i=void 0;return new(i||(i=Promise))(function(n,a){function m(C){try{p(t.next(C))}catch(E){a(E)}}function s(C){try{p(t.throw(C))}catch(E){a(E)}}function p(C){C.done?n(C.value):new i(function(E){E(C.value)}).then(m,s)}p((t=t.apply(e,void 0)).next())})}function Nt(e){se.call(this,e)}Se(Nt,se);function Zo(e,t){for(;Ge(t);)switch(t.i){case 8:var i=t.g.i();I(e,1,i);break;case 21:i=Ee(t),I(e,2,i);break;case 26:i=Oi(t),I(e,3,i);break;case 34:i=Oi(t),I(e,4,i);break;default:if(!We(e,t))return e}return e}function fi(e){se.call(this,e,-1,en)}Se(fi,se),fi.prototype.addClassification=function(e,t){return Li(this,e,Nt,t),this};var en=[1];function pt(e){se.call(this,e)}Se(pt,se);function tn(e,t){for(;Ge(t);)switch(t.i){case 13:var i=Ee(t);I(e,1,i);break;case 21:i=Ee(t),I(e,2,i);break;case 29:i=Ee(t),I(e,3,i);break;case 37:i=Ee(t),I(e,4,i);break;case 45:i=Ee(t),I(e,5,i);break;default:if(!We(e,t))return e}return e}function ji(e){se.call(this,e,-1,on)}Se(ji,se);function Di(e){e:{var t=new ji;for(e=new Tt(e);Ge(e);)switch(e.i){case 10:var i=Ut(e,new pt,tn);Li(t,i,pt,void 0);break;default:if(!We(t,e))break e}}return t}var on=[1];function hi(e){se.call(this,e)}Se(hi,se);function rt(e){se.call(this,e,-1,rn)}Se(rt,se),rt.prototype.getVertexType=function(){return it(this,1,0)},rt.prototype.getPrimitiveType=function(){return it(this,2,0)},rt.prototype.getVertexBufferList=function(){return Ni(this)},rt.prototype.getIndexBufferList=function(){return Bt(this,4)};function nn(e,t){for(;Ge(t);)switch(t.i){case 8:var i=jt(t.g);I(e,1,i);break;case 16:i=jt(t.g),I(e,2,i);break;case 29:case 26:Ri(t,e.getVertexBufferList());break;case 32:case 34:i=t;var n=e.getIndexBufferList();i.h==2?wi(i,ut.prototype.i,n):n.push(i.g.i());break;default:if(!We(e,t))return e}return e}var rn=[3,4];function Ht(e){se.call(this,e)}Se(Ht,se),Ht.prototype.getMesh=function(){return ki(this,rt,1)},Ht.prototype.getPoseTransformMatrix=function(){return ki(this,nt,2)};function an(e){e:{var t=new Ht;for(e=new Tt(e);Ge(e);)switch(e.i){case 10:var i=Ut(e,new rt,nn);Ii(t,1,i);break;case 18:i=Ut(e,new nt,qo),Ii(t,2,i);break;default:if(!We(t,e))break e}}return t}function Ui(e,t,i){if(i=e.createShader(i===0?e.VERTEX_SHADER:e.FRAGMENT_SHADER),e.shaderSource(i,t),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS))throw Error(`Could not compile WebGL shader.
2
3`+e.getShaderInfoLog(i));return i}function ln(e){return zt(e,Nt).map(function(t){return{index:it(t,1,0),Y:Re(t,2),label:ee(t,3)!=null?it(t,3,""):void 0,displayName:ee(t,4)!=null?it(t,4,""):void 0}})}function Gi(e){return{x:Re(e,1),y:Re(e,2),z:Re(e,3),visibility:ee(e,4)!=null?Re(e,4):void 0}}function vi(e,t){this.h=e,this.g=t,this.l=0}function Bi(e,t,i){return sn(e,t),typeof e.g.canvas.transferToImageBitmap=="function"?Promise.resolve(e.g.canvas.transferToImageBitmap()):i?Promise.resolve(e.g.canvas):typeof createImageBitmap=="function"?createImageBitmap(e.g.canvas):(e.i===void 0&&(e.i=document.createElement("canvas")),new Promise(function(n){e.i.height=e.g.canvas.height,e.i.width=e.g.canvas.width,e.i.getContext("2d",{}).drawImage(e.g.canvas,0,0,e.g.canvas.width,e.g.canvas.height),n(e.i)}))}function sn(e,t){var i=e.g;if(e.m===void 0){var n=Ui(i,`
4  attribute vec2 aVertex;
5  attribute vec2 aTex;
6  varying vec2 vTex;
7  void main(void) {
8    gl_Position = vec4(aVertex, 0.0, 1.0);
9    vTex = aTex;
10  }`,0),a=Ui(i,`
11  precision mediump float;
12  varying vec2 vTex;
13  uniform sampler2D sampler0;
14  void main(){
15    gl_FragColor = texture2D(sampler0, vTex);
16  }`,1),m=i.createProgram();if(i.attachShader(m,n),i.attachShader(m,a),i.linkProgram(m),!i.getProgramParameter(m,i.LINK_STATUS))throw Error(`Could not compile WebGL program.
17
18`+i.getProgramInfoLog(m));n=e.m=m,i.useProgram(n),a=i.getUniformLocation(n,"sampler0"),e.j={I:i.getAttribLocation(n,"aVertex"),H:i.getAttribLocation(n,"aTex"),da:a},e.s=i.createBuffer(),i.bindBuffer(i.ARRAY_BUFFER,e.s),i.enableVertexAttribArray(e.j.I),i.vertexAttribPointer(e.j.I,2,i.FLOAT,!1,0,0),i.bufferData(i.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),i.STATIC_DRAW),i.bindBuffer(i.ARRAY_BUFFER,null),e.o=i.createBuffer(),i.bindBuffer(i.ARRAY_BUFFER,e.o),i.enableVertexAttribArray(e.j.H),i.vertexAttribPointer(e.j.H,2,i.FLOAT,!1,0,0),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,1,0,0,1,0,1,1]),i.STATIC_DRAW),i.bindBuffer(i.ARRAY_BUFFER,null),i.uniform1i(a,0)}n=e.j,i.useProgram(e.m),i.canvas.width=t.width,i.canvas.height=t.height,i.viewport(0,0,t.width,t.height),i.activeTexture(i.TEXTURE0),e.h.bindTexture2d(t.glName),i.enableVertexAttribArray(n.I),i.bindBuffer(i.ARRAY_BUFFER,e.s),i.vertexAttribPointer(n.I,2,i.FLOAT,!1,0,0),i.enableVertexAttribArray(n.H),i.bindBuffer(i.ARRAY_BUFFER,e.o),i.vertexAttribPointer(n.H,2,i.FLOAT,!1,0,0),i.bindFramebuffer(i.DRAW_FRAMEBUFFER?i.DRAW_FRAMEBUFFER:i.FRAMEBUFFER,null),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.colorMask(!0,!0,!0,!0),i.drawArrays(i.TRIANGLE_FAN,0,4),i.disableVertexAttribArray(n.I),i.disableVertexAttribArray(n.H),i.bindBuffer(i.ARRAY_BUFFER,null),e.h.bindTexture2d(0)}function cn(e){this.g=e}var un=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]);function dn(e,t){return t+e}function zi(e,t){window[e]=t}function mn(e){var t=document.createElement("script");return t.setAttribute("src",e),t.setAttribute("crossorigin","anonymous"),new Promise(function(i){t.addEventListener("load",function(){i()},!1),t.addEventListener("error",function(){i()},!1),document.body.appendChild(t)})}function pn(){return ve(this,function e(){return ie(e,function(t){switch(t.g){case 1:return t.m=2,Z(t,WebAssembly.instantiate(un),4);case 4:t.g=3,t.m=0;break;case 2:return t.m=0,t.j=null,t.return(!1);case 3:return t.return(!0)}})})}function gi(e){if(this.g=e,this.listeners={},this.j={},this.F={},this.m={},this.s={},this.G=this.o=this.R=!0,this.C=Promise.resolve(),this.P="",this.B={},this.locateFile=e&&e.locateFile||dn,typeof window=="object")var t=window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/";else if(typeof location<"u")t=location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/";else throw Error("solutions can only be loaded on a web page or in a web worker");if(this.S=t,e.options){t=L(Object.keys(e.options));for(var i=t.next();!i.done;i=t.next()){i=i.value;var n=e.options[i].default;n!==void 0&&(this.j[i]=typeof n=="function"?n():n)}}}l=gi.prototype,l.close=function(){return this.i&&this.i.delete(),Promise.resolve()};function fn(e,t){return e.g.files===void 0?[]:typeof e.g.files=="function"?e.g.files(t):e.g.files}function hn(e){return ve(e,function t(){var i=this,n,a,m,s,p,C,E,w,X,N,V;return ie(t,function(x){switch(x.g){case 1:return n=i,i.R?(a=fn(i,i.j),Z(x,pn(),2)):x.return();case 2:if(m=x.h,typeof window=="object")return zi("createMediapipeSolutionsWasm",{locateFile:i.locateFile}),zi("createMediapipeSolutionsPackedAssets",{locateFile:i.locateFile}),C=a.filter(function(R){return R.data!==void 0}),E=a.filter(function(R){return R.data===void 0}),w=Promise.all(C.map(function(R){var T=Ci(n,R.url);if(R.path!==void 0){var j=R.path;T=T.then(function(ce){return n.overrideFile(j,ce),Promise.resolve(ce)})}return T})),X=Promise.all(E.map(function(R){return R.simd===void 0||R.simd&&m||!R.simd&&!m?mn(n.locateFile(R.url,n.S)):Promise.resolve()})).then(function(){return ve(n,function R(){var T,j,ce=this;return ie(R,function(q){if(q.g==1)return T=window.createMediapipeSolutionsWasm,j=window.createMediapipeSolutionsPackedAssets,Z(q,T(j),2);ce.h=q.h,q.g=0})})}),N=(function(){return ve(n,function R(){var T=this;return ie(R,function(j){return T.g.graph&&T.g.graph.url?j=Z(j,Ci(T,T.g.graph.url),0):(j.g=0,j=void 0),j})})})(),Z(x,Promise.all([X,w,N]),7);if(typeof importScripts!="function")throw Error("solutions can only be loaded on a web page or in a web worker");return s=a.filter(function(R){return R.simd===void 0||R.simd&&m||!R.simd&&!m}).map(function(R){return n.locateFile(R.url,n.S)}),importScripts.apply(null,K(s)),Z(x,createMediapipeSolutionsWasm(Module),6);case 6:i.h=x.h,i.l=new OffscreenCanvas(1,1),i.h.canvas=i.l,p=i.h.GL.createContext(i.l,{antialias:!1,alpha:!1,ba:typeof WebGL2RenderingContext<"u"?2:1}),i.h.GL.makeContextCurrent(p),x.g=4;break;case 7:if(i.l=document.createElement("canvas"),V=i.l.getContext("webgl2",{}),!V&&(V=i.l.getContext("webgl",{}),!V))return alert("Failed to create WebGL canvas context when passing video frame."),x.return();i.D=V,i.h.canvas=i.l,i.h.createContext(i.l,!0,!0,{});case 4:i.i=new i.h.SolutionWasm,i.R=!1,x.g=0}})})}function vn(e){return ve(e,function t(){var i=this,n,a,m,s,p,C,E,w;return ie(t,function(X){if(X.g==1){if(i.g.graph&&i.g.graph.url&&i.P===i.g.graph.url)return X.return();if(i.o=!0,!i.g.graph||!i.g.graph.url){X.g=2;return}return i.P=i.g.graph.url,Z(X,Ci(i,i.g.graph.url),3)}for(X.g!=2&&(n=X.h,i.i.loadGraph(n)),a=L(Object.keys(i.B)),m=a.next();!m.done;m=a.next())s=m.value,i.i.overrideFile(s,i.B[s]);if(i.B={},i.g.listeners)for(p=L(i.g.listeners),C=p.next();!C.done;C=p.next())E=C.value,bn(i,E);w=i.j,i.j={},i.setOptions(w),X.g=0})})}l.reset=function(){return ve(this,function e(){var t=this;return ie(e,function(i){t.i&&(t.i.reset(),t.m={},t.s={}),i.g=0})})},l.setOptions=function(e,t){var i=this;if(t=t||this.g.options){for(var n=[],a=[],m={},s=L(Object.keys(e)),p=s.next();!p.done;m={K:m.K,L:m.L},p=s.next()){var C=p.value;C in this.j&&this.j[C]===e[C]||(this.j[C]=e[C],p=t[C],p!==void 0&&(p.onChange&&(m.K=p.onChange,m.L=e[C],n.push((function(E){return function(){return ve(i,function w(){var X,N=this;return ie(w,function(V){if(V.g==1)return Z(V,E.K(E.L),2);X=V.h,X===!0&&(N.o=!0),V.g=0})})}})(m))),p.graphOptionXref&&(C={valueNumber:p.type===1?e[C]:0,valueBoolean:p.type===0?e[C]:!1,valueString:p.type===2?e[C]:""},p=Object.assign(Object.assign(Object.assign({},{calculatorName:"",calculatorIndex:0}),p.graphOptionXref),C),a.push(p))))}(n.length!==0||a.length!==0)&&(this.o=!0,this.A=(this.A===void 0?[]:this.A).concat(a),this.u=(this.u===void 0?[]:this.u).concat(n))}};function gn(e){return ve(e,function t(){var i=this,n,a,m,s,p,C,E;return ie(t,function(w){switch(w.g){case 1:if(!i.o)return w.return();if(!i.u){w.g=2;break}n=L(i.u),a=n.next();case 3:if(a.done){w.g=5;break}return m=a.value,Z(w,m(),4);case 4:a=n.next(),w.g=3;break;case 5:i.u=void 0;case 2:if(i.A){for(s=new i.h.GraphOptionChangeRequestList,p=L(i.A),C=p.next();!C.done;C=p.next())E=C.value,s.push_back(E);i.i.changeOptions(s),s.delete(),i.A=void 0}i.o=!1,w.g=0}})})}l.initialize=function(){return ve(this,function e(){var t=this;return ie(e,function(i){return i.g==1?Z(i,hn(t),2):i.g!=3?Z(i,vn(t),3):Z(i,gn(t),0)})})};function Ci(e,t){return ve(e,function i(){var n=this,a,m;return ie(i,function(s){return t in n.F?s.return(n.F[t]):(a=n.locateFile(t,""),m=fetch(a).then(function(p){return p.arrayBuffer()}),n.F[t]=m,s.return(m))})})}l.overrideFile=function(e,t){this.i?this.i.overrideFile(e,t):this.B[e]=t},l.clearOverriddenFiles=function(){this.B={},this.i&&this.i.clearOverriddenFiles()},l.send=function(e,t){return ve(this,function i(){var n=this,a,m,s,p,C,E,w,X,N;return ie(i,function(V){switch(V.g){case 1:return n.g.inputs?(a=1e3*(t??performance.now()),Z(V,n.C,2)):V.return();case 2:return Z(V,n.initialize(),3);case 3:for(m=new n.h.PacketDataList,s=L(Object.keys(e)),p=s.next();!p.done;p=s.next())if(C=p.value,E=n.g.inputs[C]){e:{var x=n,R=e[C];switch(E.type){case"video":var T=x.m[E.stream];if(T||(T=new vi(x.h,x.D),x.m[E.stream]=T),x=T,x.l===0&&(x.l=x.h.createTexture()),typeof HTMLVideoElement<"u"&&R instanceof HTMLVideoElement){var j=R.videoWidth;T=R.videoHeight}else typeof HTMLImageElement<"u"&&R instanceof HTMLImageElement?(j=R.naturalWidth,T=R.naturalHeight):(j=R.width,T=R.height);T={glName:x.l,width:j,height:T},j=x.g,j.canvas.width=T.width,j.canvas.height=T.height,j.activeTexture(j.TEXTURE0),x.h.bindTexture2d(x.l),j.texImage2D(j.TEXTURE_2D,0,j.RGBA,j.RGBA,j.UNSIGNED_BYTE,R),x.h.bindTexture2d(0),x=T;break e;case"detections":for(T=x.m[E.stream],T||(T=new cn(x.h),x.m[E.stream]=T),x=T,x.data||(x.data=new x.g.DetectionListData),x.data.reset(R.length),T=0;T<R.length;++T){j=R[T];var ce=x.data,q=ce.setBoundingBox,ge=T,ae=j.T,P=new hi;I(P,1,ae.Z),I(P,2,ae.$),I(P,3,ae.height),I(P,4,ae.width),I(P,5,ae.rotation),I(P,6,ae.X);var U=ae=new di;Me(U,1,ee(P,1)),Me(U,2,ee(P,2)),Me(U,3,ee(P,3)),Me(U,4,ee(P,4)),Me(U,5,ee(P,5));var B=ee(P,6);if(B!=null&&B!=null){Qe(U.g,48);var k=U.g,G=B;B=0>G,G=Math.abs(G);var z=G>>>0;for(G=Math.floor((G-z)/4294967296),G>>>=0,B&&(G=~G>>>0,z=(~z>>>0)+1,4294967295<z&&(z=0,G++,4294967295<G&&(G=0))),Ue=z,He=G,B=Ue,z=He;0<z||127<B;)k.push(B&127|128),B=(B>>>7|z<<25)>>>0,z>>>=7;k.push(B)}if(pi(P,U),ae=mi(ae),q.call(ce,ge,ae),j.O)for(ce=0;ce<j.O.length;++ce)P=j.O[ce],U=!!P.visibility,q=x.data,ge=q.addNormalizedLandmark,ae=T,P=Object.assign(Object.assign({},P),{visibility:U?P.visibility:0}),U=new pt,I(U,1,P.x),I(U,2,P.y),I(U,3,P.z),P.visibility&&I(U,4,P.visibility),k=P=new di,Me(k,1,ee(U,1)),Me(k,2,ee(U,2)),Me(k,3,ee(U,3)),Me(k,4,ee(U,4)),Me(k,5,ee(U,5)),pi(U,k),P=mi(P),ge.call(q,ae,P);if(j.M)for(ce=0;ce<j.M.length;++ce){if(q=x.data,ge=q.addClassification,ae=T,P=j.M[ce],U=new Nt,I(U,2,P.Y),P.index&&I(U,1,P.index),P.label&&I(U,3,P.label),P.displayName&&I(U,4,P.displayName),k=P=new di,z=ee(U,1),z!=null&&z!=null)if(Qe(k.g,8),B=k.g,0<=z)Qe(B,z);else{for(G=0;9>G;G++)B.push(z&127|128),z>>=7;B.push(1)}Me(k,2,ee(U,2)),B=ee(U,3),B!=null&&(B=oe(B),Qe(k.g,26),Qe(k.g,B.length),mt(k,k.g.end()),mt(k,B)),B=ee(U,4),B!=null&&(B=oe(B),Qe(k.g,34),Qe(k.g,B.length),mt(k,k.g.end()),mt(k,B)),pi(U,k),P=mi(P),ge.call(q,ae,P)}}x=x.data;break e;default:x={}}}switch(w=x,X=E.stream,E.type){case"video":m.pushTexture2d(Object.assign(Object.assign({},w),{stream:X,timestamp:a}));break;case"detections":N=w,N.stream=X,N.timestamp=a,m.pushDetectionList(N);break;default:throw Error("Unknown input config type: '"+E.type+"'")}}return n.i.send(m),Z(V,n.C,4);case 4:m.delete(),V.g=0}})})};function Cn(e,t,i){return ve(e,function n(){var a,m,s,p,C,E,w=this,X,N,V,x,R,T,j,ce;return ie(n,function(q){switch(q.g){case 1:if(!i)return q.return(t);for(a={},m=0,s=L(Object.keys(i)),p=s.next();!p.done;p=s.next())C=p.value,E=i[C],typeof E!="string"&&E.type==="texture"&&t[E.stream]!==void 0&&++m;1<m&&(w.G=!1),X=L(Object.keys(i)),p=X.next();case 2:if(p.done){q.g=4;break}if(N=p.value,V=i[N],typeof V=="string")return j=a,ce=N,Z(q,yn(w,N,t[V]),14);if(x=t[V.stream],V.type==="detection_list"){if(x){for(var ge=x.getRectList(),ae=x.getLandmarksList(),P=x.getClassificationsList(),U=[],B=0;B<ge.size();++B){var k=ge.get(B);e:{var G=new hi;for(k=new Tt(k);Ge(k);)switch(k.i){case 13:var z=Ee(k);I(G,1,z);break;case 21:z=Ee(k),I(G,2,z);break;case 29:z=Ee(k),I(G,3,z);break;case 37:z=Ee(k),I(G,4,z);break;case 45:z=Ee(k),I(G,5,z);break;case 48:z=jt(k.g),I(G,6,z);break;default:if(!We(G,k))break e}}G={Z:Re(G,1),$:Re(G,2),height:Re(G,3),width:Re(G,4),rotation:Re(G,5,0),X:it(G,6,0)},k=zt(Di(ae.get(B)),pt).map(Gi);var ft=P.get(B);e:for(z=new fi,ft=new Tt(ft);Ge(ft);)switch(ft.i){case 10:z.addClassification(Ut(ft,new Nt,Zo));break;default:if(!We(z,ft))break e}G={T:G,O:k,M:ln(z)},U.push(G)}ge=U}else ge=[];a[N]=ge,q.g=7;break}if(V.type==="proto_list"){if(x){for(ge=Array(x.size()),ae=0;ae<x.size();ae++)ge[ae]=x.get(ae);x.delete()}else ge=[];a[N]=ge,q.g=7;break}if(x===void 0){q.g=3;break}if(V.type==="float_list"){a[N]=x,q.g=7;break}if(V.type==="proto"){a[N]=x,q.g=7;break}if(V.type!=="texture")throw Error("Unknown output config type: '"+V.type+"'");return R=w.s[N],R||(R=new vi(w.h,w.D),w.s[N]=R),Z(q,Bi(R,x,w.G),13);case 13:T=q.h,a[N]=T;case 7:V.transform&&a[N]&&(a[N]=V.transform(a[N])),q.g=3;break;case 14:j[ce]=q.h;case 3:p=X.next(),q.g=2;break;case 4:return q.return(a)}})})}function yn(e,t,i){return ve(e,function n(){var a=this,m;return ie(n,function(s){return typeof i=="number"||i instanceof Uint8Array||i instanceof a.h.Uint8BlobList?s.return(i):i instanceof a.h.Texture2dDataOut?(m=a.s[t],m||(m=new vi(a.h,a.D),a.s[t]=m),s.return(Bi(m,i,a.G))):s.return(void 0)})})}function bn(e,t){for(var i=t.name||"$",n=[].concat(K(t.wants)),a=new e.h.StringList,m=L(t.wants),s=m.next();!s.done;s=m.next())a.push_back(s.value);m=e.h.PacketListener.implement({onResults:function(p){for(var C={},E=0;E<t.wants.length;++E)C[n[E]]=p.get(E);var w=e.listeners[i];w&&(e.C=Cn(e,C,t.outs).then(function(X){X=w(X);for(var N=0;N<t.wants.length;++N){var V=C[n[N]];typeof V=="object"&&V.hasOwnProperty&&V.hasOwnProperty("delete")&&V.delete()}X&&(e.C=X)}))}}),e.i.attachMultiListener(a,m),a.delete()}l.onResults=function(e,t){this.listeners[t||"$"]=e},S("Solution",gi),S("OptionType",{BOOL:0,NUMBER:1,aa:2,0:"BOOL",1:"NUMBER",2:"STRING"});function En(e){e=an(e);var t=e.getMesh();if(!t)return e;var i=new Float32Array(t.getVertexBufferList());t.getVertexBufferList=function(){return i};var n=new Uint32Array(t.getIndexBufferList());return t.getIndexBufferList=function(){return n},e}var Sn={files:[{url:"face_mesh_solution_packed_assets_loader.js"},{simd:!0,url:"face_mesh_solution_simd_wasm_bin.js"},{simd:!1,url:"face_mesh_solution_wasm_bin.js"}],graph:{url:"face_mesh.binarypb"},listeners:[{wants:["multi_face_geometry","image_transformed","multi_face_landmarks"],outs:{image:"image_transformed",multiFaceGeometry:{type:"proto_list",stream:"multi_face_geometry",transform:function(e){return e.map(En)}},multiFaceLandmarks:{type:"proto_list",stream:"multi_face_landmarks",transform:function(e){return e.map(function(t){return zt(Di(t),pt).map(Gi)})}}}}],inputs:{image:{type:"video",stream:"input_frames_gpu"}},options:{useCpuInference:{type:0,graphOptionXref:{calculatorType:"InferenceCalculator",fieldName:"use_cpu_inference"},default:"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},enableFaceGeometry:{type:0,graphOptionXref:{calculatorName:"EnableFaceGeometryConstant",calculatorType:"ConstantSidePacketCalculator",fieldName:"bool_value"}},selfieMode:{type:0,graphOptionXref:{calculatorType:"GlScalerCalculator",calculatorIndex:1,fieldName:"flip_horizontal"}},maxNumFaces:{type:1,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorNumFaces",fieldName:"int_value"}},refineLandmarks:{type:0,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorRefineLandmarks",fieldName:"bool_value"}},minDetectionConfidence:{type:1,graphOptionXref:{calculatorType:"TensorsToDetectionsCalculator",calculatorName:"facelandmarkfrontgpu__facedetectionshortrangegpu__facedetectionshortrangecommon__TensorsToDetectionsCalculator",fieldName:"min_score_thresh"}},minTrackingConfidence:{type:1,graphOptionXref:{calculatorType:"ThresholdingCalculator",calculatorName:"facelandmarkfrontgpu__facelandmarkgpu__ThresholdingCalculator",fieldName:"threshold"}},cameraNear:{type:1,graphOptionXref:{calculatorType:"FaceGeometryEnvGeneratorCalculator",fieldName:"near"}},cameraFar:{type:1,graphOptionXref:{calculatorType:"FaceGeometryEnvGeneratorCalculator",fieldName:"far"}},cameraVerticalFovDegrees:{type:1,graphOptionXref:{calculatorType:"FaceGeometryEnvGeneratorCalculator",fieldName:"vertical_fov_degrees"}}}},Hi=[[61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]],Qi=[[263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]],Wi=[[276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]],Xi=[[33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]],$i=[[46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]],Yi=[[10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]],xn=[].concat(K(Hi),K(Qi),K(Wi),K(Xi),K($i),K(Yi));function Ji(e){e=e||{},e=Object.assign(Object.assign({},Sn),e),this.g=new gi(e)}l=Ji.prototype,l.close=function(){return this.g.close(),Promise.resolve()},l.onResults=function(e){this.g.onResults(e)},l.initialize=function(){return ve(this,function e(){var t=this;return ie(e,function(i){return Z(i,t.g.initialize(),0)})})},l.reset=function(){this.g.reset()},l.send=function(e){return ve(this,function t(){var i=this;return ie(t,function(n){return Z(n,i.g.send(e),0)})})},l.setOptions=function(e){this.g.setOptions(e)},S("FACE_GEOMETRY",{Layout:{COLUMN_MAJOR:0,ROW_MAJOR:1,0:"COLUMN_MAJOR",1:"ROW_MAJOR"},PrimitiveType:{TRIANGLE:0,0:"TRIANGLE"},VertexType:{VERTEX_PT:0,0:"VERTEX_PT"},DEFAULT_CAMERA_PARAMS:{verticalFovDegrees:63,near:1,far:1e4}}),S("FaceMesh",Ji),S("FACEMESH_LIPS",Hi),S("FACEMESH_LEFT_EYE",Qi),S("FACEMESH_LEFT_EYEBROW",Wi),S("FACEMESH_LEFT_IRIS",[[474,475],[475,476],[476,477],[477,474]]),S("FACEMESH_RIGHT_EYE",Xi),S("FACEMESH_RIGHT_EYEBROW",$i),S("FACEMESH_RIGHT_IRIS",[[469,470],[470,471],[471,472],[472,469]]),S("FACEMESH_FACE_OVAL",Yi),S("FACEMESH_CONTOURS",xn),S("FACEMESH_TESSELATION"
vendor: 8,530 bytes, line 18
18,[[127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400
vendor: 15,813 bytes, line 18
18],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]
18]),S("matrixDataToMatrix",function(e){for(var t=e.getCols(),i=e.getRows(),n=e.getPackedDataList(),a=[],m=0;m<i;m++)a.push(Array(t));for(m=0;m<i;m++)for(var s=0;s<t;s++){var p=e.getLayout()===1?m*t+s:s*i+m;a[m][s]=n[p]}return a}),S("VERSION","0.4.1633559619")}).call(Ho)});var _n=["dialogContainer"];function Mn(l,c){l&1&&(v(0," A validade da sua CIN \xE9 "),g(1,"i"),v(2,"indeterminada"),f(),v(3,". "))}function On(l,c){if(l&1&&(v(0," A sua CIN est\xE1 v\xE1lida at\xE9 "),g(1,"i"),v(2),Oe(3,"formataData"),f(),v(4,". ")),l&2){let o,r=D();y(2),ue((o=r.dadosCompartilhadosService.getCidadao())!=null&&o.dataValidadeCIN?we(3,1,(o=r.dadosCompartilhadosService.getCidadao())==null?null:o.dataValidadeCIN):"--/--/----")}}function wn(l,c){if(l&1&&(g(0,"form",7)(1,"div",14)(2,"div",15)(3,"div",16),A(4,"input",17),g(5,"label",18)(6,"strong"),v(7,"Sim"),f(),v(8,", desejo emitir um novo documento com dados, assinatura e foto id\xEAnticos ao meu documento anterior."),f()(),g(9,"div",16),A(10,"input",19),g(11,"label",20)(12,"strong"),v(13,"N\xE3o"),f(),v(14,", preciso atualizar meus dados (por exemplo, mudei de estado civil, desejo incluir nome social ou atualizar op\xE7\xE3o de doa\xE7\xE3o de \xF3rg\xE3os, etc)."),f()()()()()),l&2){let o=D();$("formGroup",o.form),y(4),$("value",1),y(6),$("value",0)}}var Zt=class l extends xt{constructor(){super(...arguments);this.protocoloService=F(vo);this.parametroService=F(qt);this.usuarioService=F(Jt);this.reconhecimentoFacialAtivo=!1}ngOnInit(){this.criaFormGroup()}criaFormGroup(){this.form=this.formBuilder.group({emitirCopia:new re(0,[de.required])}),this.consultaParametroReconhecimentoFacialAtivo()}gravarNovoProtocolo(o){let r;o===0?r={txtCpf:this.usuarioService.cpf(),indFluxo:0,indPrimeiraCIN:0,plataforma:this.platform()}:r={txtCpf:this.usuarioService.cpf(),indFluxo:1,indPrimeiraCIN:0,plataforma:this.platform()},this.protocoloService.gravarProtocolo(r).subscribe({next:d=>{this.dadosCompartilhadosService.setProtocolo(d),o===0?this.redirecionaInformarDocumentoOrigem():this.reconhecimentoFacialAtivo?this.redirecionaParaReconhecimentoFacial():this.redirecionaParaMotivoCopia()},error:d=>{let M=JSON.parse(d.error);this.messagesServiceModal.openModal(`Erro ao gravar o protocolo.
19
20`+M[0].message,this.viewContainerRef)}})}consultaParametroReconhecimentoFacialAtivo(){this.parametroService.getParametroSistema("RECONHECIMENTO_FACIAL_ATIVO").subscribe({next:o=>{o&&(this.reconhecimentoFacialAtivo=o.valorParametro=="1")},error:o=>{this.messagesServiceModal.openModal(`N\xE3o foi poss\xEDvel carregar o reconhecimento facial. Tente novamente mais tarde.
21
22`+o.error,this.viewContainerRef)}})}redirecionaParaReconhecimentoFacial(){this.router.navigate(["copia-cin","reconhecimento-facial"],{skipLocationChange:!0})}redirecionaParaMotivoCopia(){this.router.navigate(["copia-cin","motivo-copia-cin"],{skipLocationChange:!0})}redirecionaInformarDocumentoOrigem(){this.router.navigate(["etapas","informar-documento-origem"],{skipLocationChange:!0})}voltarEtapa(){throw new Error("Method not implemented.")}limpaFormulario(){throw new Error("Method not implemented.")}validaFormulario(){throw new Error("Method not implemented.")}avancarEtapa(){let o=this.form.controls.emitirCopia.value;o==1?this.gravarNovoProtocolo(o):(this.gravarNovoProtocolo(o),this.redirecionaInformarDocumentoOrigem())}infoEmissaoCopia(){this.messagesServiceModal.openModal(`<p>
23          Voc\xEA poder\xE1 solicitar uma c\xF3pia da sua CIN,
24          que ser\xE1 emitida com as mesmas informa\xE7\xF5es da atual
25          e retir\xE1-la no posto de atendimento de sua prefer\xEAncia ou;
26          <br><br>
27          Se voc\xEA deseja atualizar alguma informa\xE7\xE3o na sua CIN,
28          responda \u201CN\xE3o\u201D a pergunta abaixo para o encaminhamento de 2\xAA via da CIN,
29          mediante o preenchimento das informa\xE7\xF5es no sistema Identidade Facil RS.
30        </p>
31      `,this.viewContainerRef)}static{this.\u0275fac=(()=>{let o;return function(d){return(o||(o=Wt(l)))(d||l)}})()}static{this.\u0275cmp=fe({type:l,selectors:[["app-emitir-copia-cin"]],viewQuery:function(r,d){if(r&1&&$e(_n,5,Xe),r&2){let M;
31Ve(M=Ae())&&(d.viewContainerRef=M.first)}},features:[Ct([Ye]),vt],decls:28,vars:5,consts:[["dialogContainer",""],[1,"navbar","titulo-navegacao"],[1,"card","card-background-color"],[1,"card-body"],[2,"font-size","16px"],[1,"info-icon"],[1,"bi","bi-info-circle-fill","fs-x-large",3,"click"],[3,"formGroup"],[1,"row","text-center","mt-3"],[1,"col"],[1,"bi","bi-info-circle-fill","fs-x-small"],[1,"row","justify-content-between","mt-3"],[1,"col","text-end"],[3,"btnClicked"],[1,"row"],[1,"col-auto"],[1,"form-check"],["formControlName","emitirCopia","type","radio","name","emitirCopia","id","emitirCopia1",1,"form-check-input",3,"value"],["for","emitirCopia1",1,"form-check-label"],["formControlName","emitirCopia","type","radio","name","emitirCopia","id","emitirCopia2",1,"form-check-input",3,"value"],["for","emitirCopia2",1,"form-check-label"]],template:function(r,d){if(r&1&&(A(0,"div",null,0),g(2,"nav",1)(3,"span"),v(4),Oe(5,"cutString"),f()(),g(6,"div",2)(7,"div",3),A(8,"app-lista-cidades-disponiveis"),g(9,"p",4)(10,"strong"),Q(11,Mn,4,0)(12,On,5,3),v(13," Voc\xEA pode solicitar uma c\xF3pia, que ser\xE1 emitida com as mesmas informa\xE7\xF5es da atual. "),g(14,"span",5)(15,"i",6),le("click",function(){return d.infoEmissaoCopia()}),f()(),A(16,"br"),v(17," Deseja solicitar a c\xF3pia? "),f()(),Q(18,wn,15,3,"form",7),g(19,"div",8)(20,"span",9)(21,"small"),v(22," Clique no \xEDcone "),A(23,"i",10),v(24," para saber mais "),f()()()()(),g(25,"div",11)(26,"div",12)(27,"app-custom-button-proximo",13),le("btnClicked",function(){return d.avancarEtapa()}),f()()()),r&2){let M;y(4),ne(" Bem-vindo(a), ",we(5,3,d.usuarioService.nome())),y(7),W(((M=d.dadosCompartilhadosService.getCidadao())==null?null:M.dataValidadeCIN)==="Indeterminada"?11:12),y(7),W(d.form?18:-1)}},dependencies:[Fe,Ze,qe,Co,Te,Ke,et,St,Ne,Ao,Po,_t],encapsulation:2})}};var Ie=class l{constructor(){this.http=F(yt)}carregaSegundaViaOnline(c){let o=Pe.config.serverUrlRemota+"/segunda-via-online/";this.segundaViaOnlineModel=fo(()=>o+(c??""))}gravaSegundaViaOnline(c){let o=Pe.config.serverUrlRemota+"/segunda-via-online";return this.http.post(o,c,{responseType:"text"})}getSegundaViaOnline(c){let o=Pe.config.serverUrlRemota+"/segunda-via-online/";return this.http.get(o+c)}getSegundaViaOnlineSolicitar(c){let o=Pe.config.serverUrlRemota+"/segunda-via-online/solicitar/";return this.http.get(o+c)}static{this.\u0275fac=function(o){return new(o||l)}}static{this.\u0275prov=ht({token:l,factory:l.\u0275fac,providedIn:"root"})}};var ti=class l{constructor(){this.messagesServiceModal=F(Ye);this.http=F(yt)}getMunicipios(c){return pe(this,null,function*(){let o=Pe.config.serverUrlRemota+"/segunda-via-online/municipios";try{return{error:null,data:yield eo(this.http.get(o))}}catch(r){return r instanceof po?(this.messagesServiceModal.openModal(r.error,c),{error:r,data:null}):(this.messagesServiceModal.openModal("Erro desconhecido",c),{error:new Error("Erro desconhecido"),data:null})}})}getLocais(c){let o=Pe.config.serverUrlRemota+"/segunda-via-online/postos/";return this.http.get(o+c).pipe(Qt())}static{this.\u0275fac=function(o){return new(o||l)}}static{this.\u0275prov=ht({token:l,factory:l.\u0275fac,providedIn:"root"})}};var Rn=["dialogContainer"];function Vn(l,c){if(l&1&&(g(0,"option",13),v(1),f()),l&2){let o=c.$implicit;$("ngValue",o),y(),ne(" ",o.nome," ")}}function An(l,c){l&1&&(g(0,"option",14),v(1,"N\xE3o h\xE1 munic\xEDpio dispon\xEDvel"),f())}function Pn(l,c){if(l&1&&(g(0,"small",15),v(1),f()),l&2){let o=D(2);y(),ue(o.MSG_CAMPO_OBRIGATORIO)}}function Tn(l,c){if(l&1&&(g(0,"option",13),v(1),f()),l&2){let o=c.$implicit;$("ngValue",o),y(),ne(" ",o.nome," ")}}function Fn(l,c){l&1&&(g(0,"option",14),v(1,"N\xE3o h\xE1 local dispon\xEDvel"),f())}function Nn(l,c){if(l&1&&(g(0,"small",15),v(1),f()),l&2){let o=D(3);y(),ue(o.MSG_CAMPO_OBRIGATORIO)}}function kn(l,c){if(l&1&&(g(0,"div",23)(1,"label",20),v(2),f()(),g(3,"div",23)(4,"label",20),v(5),f()()),l&2){let o,r,d=D(3);y(2),ne("Endere\xE7o: ",(o=d.form.get("local"))==null?null:o.value.endereco," "),y(3),ne("Prazo para retirada: ",(r=d.form.get("local"))==null?null:r.value.prazo," ")}}
31function In(l,c){if(l&1&&(g(0,"div",8)(1,"label",20,2),v(3,"Local*:"),f(),g(4,"select",21),bi(5,Tn,2,2,"option",13,yi,!1,Fn,2,0,"option",14),f(),Q(8,Nn,2,1,"small",15),f(),Q(9,kn,6,2),g(10,"span",22)(11,"strong"),v(12,"Aten\xE7\xE3o:"),f(),v(13,"\xA0a retirada ser\xE1 pelo titular, mediante verifica\xE7\xE3o biom\xE9trica."),f()),l&2){let o,r=D(2);y(4),$("ngClass",r.aplicaCssErro("local")),y(),Ei(r.localOpcoes()),y(3),W(r.verificaValidTouched("local")?8:-1),y(),W((o=r.form.get("local"))!=null&&o.value?9:-1)}}function Ln(l,c){if(l&1){let o=It();g(0,"form",4)(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9),A(5,"app-custom-input",10),f(),g(6,"label",11,1),v(8,"Munic\xEDpio*:"),f(),g(9,"select",12),bi(10,Vn,2,2,"option",13,yi,!1,An,2,0,"option",14),f(),Q(13,Pn,2,1,"small",15),f(),Q(14,In,14,4),f()(),g(15,"div",16)(16,"div",17)(17,"app-custom-button-voltar",18),le("btnClicked",function(){at(o);let d=D();return lt(d.voltarEtapa())}),f()(),g(18,"div",19)(19,"app-custom-button-proximo",18),le("btnClicked",function(){at(o);let d=D();return lt(d.avancarEtapa())}),f()()()()}if(l&2){let o,r=D();$("formGroup",r.form),y(5),$("formControl",r.form.controls.tel)("tpMask","tel")("id","tel"),y(4),$("ngClass",r.aplicaCssErro("municipio")),y(),Ei(r.municipioOpcoes()),y(3),W(r.verificaValidTouched("municipio")?13:-1),y(),W((o=r.form.get("municipio"))!=null&&o.value?14:-1)}}var ii=class l extends xt{constructor(){super(...arguments);this.segundaViaOnlineService=F(Ie);this.localRetiradaCinService=F(ti);this.protocoloModel=this.dadosCompartilhadosService.getProtocolo();this.segundaViaOnlineModel=this.dadosCompartilhadosService.getSegundaViaOnline();this.municipioOpcoes=kt([]);this.localOpcoes=kt([])}ngOnInit(){return pe(this,null,function*(){yield this.carregaMunicipios(),this.criaFormGroup();let o=this.form.controls.municipio?.value;o&&this.carregaLocais(o.codigo)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}criaFormGroup(){this.segundaViaOnlineModel?.localRetirada?this.carregaFormGroup():this.criaNovoFormGroup()}criaNovoFormGroup(){let o=`${this.dadosCompartilhadosService.getEndereco()?.txtNroDdd}${this.dadosCompartilhadosService.getEndereco()?.txtNroTelefone}`;this.form=this.formBuilder.group({municipio:new re("",[de.required]),local:new re("",[de.required]),tel:new re(o,[de.required,de.minLength(15)])}),this.setMunicipioSeTiverApenasUmaOpcao(),this.comportamentoTelaRN(),this.verificaSeHouveMudancaoNoForm()}carregaFormGroup(){if(this.segundaViaOnlineModel){let o=(this.segundaViaOnlineModel?.telefoneDDD??"")+this.segundaViaOnlineModel?.telefone;this.form=this.formBuilder.group({municipio:new re(this.buscaMunicipioPeloNome(this.segundaViaOnlineModel.nomeMunicipio),[de.required]),local:new re(this.segundaViaOnlineModel.nomeLocal??"",[de.required]),tel:new re(o,[de.required])}),this.comportamentoTelaRN(),this.verificaSeHouveMudancaoNoForm()}}setMunicipioSeTiverApenasUmaOpcao(){this.municipioOpcoes().length==1&&this.form.controls.municipio.setValue(this.municipioOpcoes()[0])}setLocalSeTiverApenasUmaOpcao(){this.localOpcoes().length==1&&this.form.controls.local.setValue(this.localOpcoes()[0])}comportamentoTelaRN(){this.verificaMudancaMunicipio()}verificaMudancaMunicipio(){this.form.get("municipio")?.valueChanges.pipe(oo(this.destroy$)).subscribe(o=>{o&&this.carregaLocais(o.codigo)})}carregaMunicipios(){return pe(this,null,function*(){let o=yield this.localRetiradaCinService.getMunicipios(this.viewContainerRef);o.data&&this.municipioOpcoes.set(o.data)})}carregaLocais(o){this.localRetiradaCinService.getLocais(o).subscribe({next:r=>{r&&(this.localOpcoes.set(r),this.setLocalSeTiverApenasUmaOpcao(),this.carregaLocalNoForm())},error:r=>{console.error(r),this.messagesServiceModal.openModal(`Erro ao buscar locais dispon\xEDveis. Tente novamente mais tarde.
32
33`+r.error,this.viewContainerRef)}})}carregaLocalNoForm(){this.form&&this.segundaViaOnlineModel&&this.form.controls.local.setValue(this.buscaLocal(this.segundaViaOnlineModel.localRetirada))}buscaLocal(o){return this.localOpcoes().find(r=>r.codigo==o)}buscaMunicipioPeloNome(o){return this.municipioOpcoes().find(r=>r.nome==o)}preencheSegundaViaOnlineModel(){if(this.segundaViaOnlineModel){let o=this.form.controls.tel?.value.replace(/\D/g,"");this.segundaViaOnlineModel.uuidPrecadastro=this.protocoloModel?.uuid??"",this.segundaViaOnlineModel.telefone=o.slice(2),this.segundaViaOnlineModel.telefoneDDD=o.slice(0,2),this.segundaViaOnlineModel.nomeMu
33nicipio=this.form.controls.municipio?.value.nome,this.segundaViaOnlineModel.localRetirada=this.form.controls.local?.value.codigo,this.segundaViaOnlineModel.nomeLocal=this.form.controls.local?.value.nome,this.segundaViaOnlineModel.enderecoLocal=this.form.controls.local?.value.endereco,this.segundaViaOnlineModel.prazo=this.form.controls.local?.value.prazo,this.dadosCompartilhadosService.setLocalRetiradaCIN(this.form.controls.local.value),this.dadosCompartilhadosService.setSegundaViaOnline(this.segundaViaOnlineModel)}}salvaLocalRetiradaCIN(){this.segundaViaOnlineModel&&this.segundaViaOnlineService.gravaSegundaViaOnline(this.segundaViaOnlineModel).subscribe({next:o=>{o=="OK"&&this.redirecionaParaProximaPagina()},error:o=>{console.error(o)}})}redirecionaParaProximaPagina(){this.router.navigate(["copia-cin","resumo-copia-cin"],{skipLocationChange:!0})}redirecionaPaginaAnterior(){this.router.navigate(["copia-cin","motivo-copia-cin"],{skipLocationChange:!0})}avancarEtapa(){this.validaFormulario()&&(this.preencheSegundaViaOnlineModel(),this.salvaLocalRetiradaCIN(),this.redirecionaParaProximaPagina())}voltarEtapa(){this.redirecionaPaginaAnterior()}limpaFormulario(){this.limparForm(this.viewContainerRef)}validaFormulario(){return this.formularioValido()}static{this.\u0275fac=(()=>{let o;return function(d){return(o||(o=Wt(l)))(d||l)}})()}static{this.\u0275cmp=fe({type:l,selectors:[["app-local-retirada-cin"]],viewQuery:function(r,d){if(r&1&&$e(Rn,5,Xe),r&2){let M;Ve(M=Ae())&&(d.viewContainerRef=M.first)}},features:[vt],decls:6,vars:1,consts:[["dialogContainer",""],["municipio",""],["local",""],[1,"navbar","titulo-navegacao"],[1,"form-horizontal",3,"formGroup"],["id","modal-limpar"],[1,"card"],[1,"card-body"],[1,"mb-3","d-flex","flex-column"],[1,"row","pb-2"],["type","text","topLabel","Telefone*:","placeholder","(99) 99999-9999","ngDefaultControl","",3,"formControl","tpMask","id"],["for","municipio",1,"form-label","w-100"],["id","municipio","formControlName","municipio",1,"form-select",3,"ngClass"],[3,"ngValue"],["value",""],[1,"px-1","text-danger"],[1,"row","justify-content-between","mt-3"],[1,"col"],[3,"btnClicked"],[1,"col","text-end"],["for","local",1,"form-label","w-100"],["id","local","formControlName","local",1,"form-select",3,"ngClass"],[1,"text-danger"],[1,"mb-2","d-flex","flex-column"]],template:function(r,d){r&1&&(g(0,"nav",3)(1,"span"),v(2," Local para retirada da CIN "),f()(),Q(3,Ln,20,8,"form",4),A(4,"div",5,0)),r&2&&(y(3),W(d.form?3:-1))},dependencies:[Fe,Ze,bo,Eo,qe,yo,Te,Ke,Et,et,St,xo,uo,so,Kt,Ne,Yt],encapsulation:2})}};var jn=["dialogContainer"];
33function Dn(l,c){if(l&1&&(g(0,"div",13)(1,"label",14)(2,"strong"),v(3,"Ocorr\xEAncia policial"),f()()(),g(4,"div",15)(5,"div",16),A(6,"app-custom-input",17),f(),g(7,"div",16),A(8,"app-custom-input",18),f(),g(9,"div",16),A(10,"app-custom-input",19),f()()),l&2){let o=D(2);y(6),$("formControl",o.form.controls.ocorrenciaOrgao)("id","ocorrenciaOrgao"),y(2),$("formControl",o.form.controls.ocorrenciaAno)("id","ocorrenciaAno"),y(2),$("formControl",o.form.controls.ocorrenciaNumero)("id","ocorrenciaNumero")}}function Un(l,c){if(l&1&&(g(0,"form",5)(1,"div",9)(2,"div",10)(3,"label",11),v(4,"Qual o motivo da solicita\xE7\xE3o da 2\xAA via Online?"),f(),A(5,"app-custom-select",12),f()(),Q(6,Dn,11,6),f()),l&2){let o=D();$("formGroup",o.form),y(5),$("formControl",o.form.controls.tipoMotivoEncaminhamento)("opcoes",o.tipoMotivoEncaminhamentoOpcoes()),y(),W(o.form.controls.tipoMotivoEncaminhamento.value&&o.form.controls.tipoMotivoEncaminhamento.value.codigo==2?6:-1)}}var oi=class l extends xt{constructor(){super();this.segundaViaOnlineService=F(Ie);this.protocoloModel=this.dadosCompartilhadosService.getProtocolo();this.segundaViaOnlineModel=this.dadosCompartilhadosService.getSegundaViaOnline();this.tabelasDominioGeralService=F(Mo);this.tipoMotivoEncaminhamentoOpcoes=kt([])}ngOnInit(){return pe(this,null,function*(){this.getSegundaViaOnline(),yield this.carregaTipoEncaminhamento(),this.criaFormGroup()})}criaFormGroup(){this.segundaViaOnlineModel?this.carregaFormGroup():this.criaNovoFormGroup()}criaNovoFormGroup(){this.form=this.formBuilder.group({tipoMotivoEncaminhamento:new re(null,[de.required]),ocorrenciaOrgao:new re(null),ocorrenciaAno:new re(null),ocorrenciaNumero:new re(null)})}carregaFormGroup(){this.form=this.formBuilder.group({tipoMotivoEncaminhamento:new re(this.buscaTipoEncaminhamento(),[de.required]),ocorrenciaOrgao:new re(this.segundaViaOnlineModel?.ocorrenciaOrgao),ocorrenciaAno:new re(this.segundaViaOnlineModel?.ocorrenciaAno),ocorrenciaNumero:new re(this.segundaViaOnlineModel?.ocorrenciaNumero)}),this.verificaTipoEncaminhamento()}verificaTipoEncaminhamento(){this.form.controls.tipoMotivoEncaminhamento.valueChanges.subscribe(o=>{o.codigo==2?this.setValidatorsInformacoesBO():this.unsetValidatorsInformacoesBO()})}carregaTipoEncaminhamento(){return pe(this,null,function*(){let o=yield this.tabelasDominioGeralService.getTipoMotivoEncaminhamento(this.viewContainerRef);if(o.data){let r=o.data.filter(d=>[1,2,3,4].includes(d.codigo));this.tipoMotivoEncaminhamentoOpcoes.set(r)}else console.info("N\xE3o foi poss\xEDvel carregar tipos de encaminhamentos."),console.error(o.error)})}buscaTipoEncaminhamento(){return this.tipoMotivoEncaminhamentoOpcoes().find(o=>o.codigo==this.segundaViaOnlineModel?.tipoMotivoEncaminhamento)}criaSegundaViaOnlineModel(){this.segundaViaOnlineModel?this.preencheModel():this.criaNovaModel()}criaNovaModel(){this.segundaViaOnlineModel={uuidPrecadastro:this.protocoloModel?.uuid??null,tipoServico:15,descricaoTipoServico:"2\xAA via CIN online",nomeCompleto:this.segundaViaOnline?.nomeCompleto,dataNascimento:this.segundaViaOnline?.dataNascimento,tipoSexo:this.segundaViaOnline?.tipoSexo,descricaoTipoSexo:this.segundaViaOnline?.descricaoTipoSexo,tipoEstadoCivil:this.segundaViaOnline?.tipoEstadoCivil,descricaoEstadoCivil:this.segundaViaOnline?.descricaoEstadoCivil,tipoMotivoEncaminhamento:this.form.controls.tipoMotivoEncaminhamento.value.codigo,descricaoMotivoEncaminhamento:this.form.controls.tipoMotivoEncaminhamento.value.valor,ocorrenciaOrgao:this.form.controls.tipoMotivoEncaminhamento.value.codigo==2?this.form.controls.ocorrenciaOrgao?.value:"",ocorrenciaAno:this.form.controls.tipoMotivoEncaminhamento.value.codigo==2?this.form.controls.ocorrenciaAno?.value:"",ocorrenciaNumero:this.form.controls.tipoMotivoEncaminhamento.value.codigo==2?this.form.controls.ocorrenciaNumero?.value:""},this.dadosCompartilhadosService.setSegundaViaOnline(this.segundaViaOnlineModel)}preencheModel(){this.segundaViaOnlineModel&&(this.segundaViaOnlineModel.uuidPrecadastro=this.protocoloModel?.uuid??null,this.segundaViaOnlineModel.tipoServico=15,this.segundaViaOnlineModel.descricaoTipoServico="2\xAA via CIN online",this.segundaViaOnlineModel.nomeCompleto=this.segundaViaOnline?.nomeCompleto,this.segundaViaOnlineModel.dataNascimento=this.segundaViaOnline?.dataNascimento,this.segundaViaOnlineModel.tipoSexo=this.segundaViaOnline?.tipoSexo,this.segundaViaOnlineModel.descricaoTipoSexo=this.segundaViaOnline?.descricaoTipoSexo,this.segundaViaOnlineModel.tipoEstadoCivil=this.segundaViaOnline?.tipoEstadoCivil,this.segundaViaOnlineModel.descricaoEstadoCivil=this.segundaViaOnline?.descricaoEstadoCivil,this.segundaViaOnlineModel.tipoMotivoEncaminh
33amento=this.form.controls.tipoMotivoEncaminhamento.value.codigo,this.segundaViaOnlineModel.descricaoMotivoEncaminhamento=this.form.controls.tipoMotivoEncaminhamento.value.valor,this.segundaViaOnlineModel.ocorrenciaOrgao=this.form.controls.tipoMotivoEncaminhamento.value.codigo==2?this.form.controls.ocorrenciaOrgao?.value:"",this.segundaViaOnlineModel.ocorrenciaAno=this.form.controls.tipoMotivoEncaminhamento.value.codigo==2?this.form.controls.ocorrenciaAno?.value:"",this.segundaViaOnlineModel.ocorrenciaNumero=this.form.controls.tipoMotivoEncaminhamento.value.codigo==2?this.form.controls.ocorrenciaNumero?.value:""),this.dadosCompartilhadosService.setSegundaViaOnline(this.segundaViaOnlineModel)}getSegundaViaOnline(){this.segundaViaOnlineService.getSegundaViaOnline(this.protocoloModel?.uuid).subscribe({next:o=>{o&&(this.segundaViaOnline=o)},error:o=>{console.error(o),this.messagesServiceModal.openModal(`Erro ao buscar dados da segunda via online.
34
35`+o.error,this.viewContainerRef)}})}salvaSegundaViaOnline(){this.segundaViaOnlineModel&&this.segundaViaOnlineService.gravaSegundaViaOnline(this.segundaViaOnlineModel).subscribe({next:o=>{o=="OK"&&this.redirecionaParaLocalRetiradaCIN()},error:o=>{console.error("Erro ao buscar dados da segunda via online",o),this.messagesServiceModal.openModal(`Erro ao buscar dados da segunda via online.
36
37`+o.error,this.viewContainerRef)}})}redirecionaParaLocalRetiradaCIN(){this.router.navigate(["copia-cin","local-retirada-cin"],{skipLocationChange:!0})}avancarEtapa(){this.validaFormulario()&&(this.criaSegundaViaOnlineModel(),this.salvaSegundaViaOnline())}voltarEtapa(){throw new Error("Method not implemented.")}limpaFormulario(){throw new Error("Method not implemented.")}setValidatorsInformacoesBO(){this.form.controls.ocorrenciaOrgao.setValidators(de.required),this.form.controls.ocorrenciaOrgao.updateValueAndValidity(),this.form.controls.ocorrenciaAno.setValidators(de.required),this.form.controls.ocorrenciaAno.updateValueAndValidity(),this.form.controls.ocorrenciaNumero.setValidators(de.required),this.form.controls.ocorrenciaNumero.updateValueAndValidity()}unsetValidatorsInformacoesBO(){this.form.controls.ocorrenciaOrgao.setValidators([]),this.form.controls.ocorrenciaOrgao.updateValueAndValidity(),this.form.controls.ocorrenciaAno.setValidators([]),this.form.controls.ocorrenciaAno.updateValueAndValidity(),this.form.controls.ocorrenciaNumero.setValidators([]),this.form.controls.ocorrenciaNumero.updateValueAndValidity()}validaFormulario(){return this.formularioValido()}static{this.\u0275fac=function(r){return new(r||l)}}static{this.\u0275cmp=fe({type:l,selectors:[["app-motivo-copia-cin"]],viewQuery:function(r,d){if(r&1&&$e(jn,5,Xe),r&2){let M;Ve(M=Ae())&&(d.viewContainerRef=M.first)}},features:[Ct([Ye]),vt],decls:12,vars:1,consts:[["dialogContainer",""],[1,"navbar","titulo-navegacao"],[1,"card","card-background-color"],[1,"card-body"],[2,"font-size","16px"],[3,"formGroup"],[1,"row","justify-content-between","mt-3"],[1,"col","text-end"],[3,"btnClicked"],[1,"row","pb-2"],[1,"col"],["for","tipoMotivoEncaminhamento",1,"form-label"],["id","tipoMotivoEncaminhamento","label","","identificador","codigo","descricao","valor","ngDefaultControl","",3,"formControl","opcoes"],[1,"row","mt-3"],["for","form",1,"form-label"],[1,"row","d-flex","align-items-baseline"],[1,"col-4"],["type","text","topLabel","N\xBA do \xF3rg\xE3o:","placeholder","000000","tpMask","numero","tamMax","6","ngDefaultControl","",3,"formControl","id"],["type","text","placeholder","0000","tpMask","numero","tamMax","4","topLabel","Ano:","ngDefaultControl","",3,"formControl","id"],["type","text","placeholder","000000","tpMask","numero","tamMax","6","topLabel","N\xFAmero:","ngDefaultControl","",3,"formControl","id"]],template:function(r,d){r&1&&(A(0,"div",null,0),g(2,"nav",1)(3,"span"),v(4," Motivo da solicita\xE7\xE3o"),f()(),g(5,"div",2)(6,"div",3)(7,"p",4),Q(8,Un,7,4,"form",5),f()()(),g(9,"div",6)(10,"div",7)(11,"app-custom-button-proximo",8),le("btnClicked",function(){return d.avancarEtapa()}),f()()()),r&2&&(y(8),W(d.form?8:-1))},dependencies:[Kt,Fe,Ze,qe,Te,Ke,Et,et,Ne,Oo],encapsulation:2})}};var ni=class l{constructor(){this.segundaViaOnlineModel=Lt()}static{this.\u0275fac=function(o){return new(o||l)}}static{this.\u0275cmp=fe({type:l,selectors:[["app-local-retirada-cin-resumo"]],inputs:{segundaViaOnlineModel:[1,"segundaViaOnlineModel"]},decls:16,vars:5,consts:[[1,"row","pb-2"],[1,"col"]],template:function(o,r){if(o&1&&(Y(0,"div",0)(1,"div",1),v(2," Telefone: "),Y(3,"strong"),v(4),Oe(5,"formataTelefone"),he()()(),Y(6,"div",0)(7,"div",1),v(8," Local de retirada: "),Y(9,"strong"),v(10),he()()(),Y(11,"div",0)(12,"div",1),v(13," Endere\xE7o: "),Y(14,"strong"),v(15),he()()()),o&2){let d,M,te;y(4),ne("",we(5,3,(d=r.segundaViaOnlineModel())!=null&&d.telefoneDDD&&((d=r.segundaViaOnlineModel())!=null&&d.telefone)?((d=r.segundaViaOnlineModel())==null?null:d.telefoneDDD)+((d=r.segundaViaOnlineModel())==null?null:d.telefone):"N\xE3o informado")," "),y(6),ne("",((M=r.segundaViaOnlineModel())==null?null:M.nomeLocal)??"N\xE3o informado"," "),y(5),ne("",((te=r.segundaViaOnlineModel())==null?null:te.enderecoLocal)??"N\xE3o informado"," ")}},dependencies:[Fo],encapsulation:2})}};
37function Gn(l,c){if(l&1&&(Y(0,"div",0)(1,"div",1),v(2," Nome social: "),Y(3,"strong"),v(4),he()()()),l&2){let o,r=D();y(4),ue((o=r.segundaViaOnlineModel())==null?null:o.nomeSocial)}}function Bn(l,c){if(l&1&&(Y(0,"div",2)(1,"div",3)(2,"div",1)(3,"strong"),v(4,"Ocorr\xEAncia policial"),he()()(),Y(5,"div",3)(6,"div",4),v(7," N\xBA do \xF3rg\xE3o: "),Y(8,"strong"),v(9),he()(),Y(10,"div",5),v(11," Ano: "),Y(12,"strong"),v(13),he()()(),Y(14,"div",3)(15,"div",1),v(16," N\xBA boletim de ocorr\xEAncia: "),Y(17,"strong"),v(18),he()()()()),l&2){let o,r,d,M=D();y(9),ue(((o=M.segundaViaOnlineModel())==null?null:o.ocorrenciaOrgao)??"N\xE3o informado"),y(4),ue(((r=M.segundaViaOnlineModel())==null?null:r.ocorrenciaAno)??"N\xE3o informado"),y(5),ue(((d=M.segundaViaOnlineModel())==null?null:d.ocorrenciaNumero)??"N\xE3o informado")}}var ri=class l{constructor(){this.protocolo=Lt();this.segundaViaOnlineModel=Lt()}static{this.\u0275fac=function(o){return new(o||l)}}static{this.\u0275cmp=fe({type:l,selectors:[["app-motivo-copia-cin-resumo"]],inputs:{protocolo:[1,"protocolo"],segundaViaOnlineModel:[1,"segundaViaOnlineModel"]},decls:34,vars:12,consts:[[1,"row","pb-2"],[1,"col"],[1,"row","text-bg-light","box-shadow","rounded","py-3"],[1,"row","primary-color"],[1,"col-7"],[1,"col-5"]],template:function(o,r){if(o&1&&(Y(0,"div",0)(1,"div",1),v(2," CPF: "),Y(3,"strong"),v(4),Oe(5,"formataCPF"),he()()(),Y(6,"div",0)(7,"div",1),v(8," Nome completo: "),Y(9,"strong"),v(10),he()()(),Q(11,Gn,5,1,"div",0),Y(12,"div",0)(13,"div",1),v(14," Data de nascimento: "),Y(15,"strong"),v(16),Oe(17,"formataData"),he()()(),Y(18,"div",0)(19,"div",1),v(20," Sexo: "),Y(21,"strong"),v(22),he()()(),Y(23,"div",0)(24,"div",1),v(25," Estado civil: "),Y(26,"strong"),v(27),he()()(),Y(28,"div",0)(29,"div",1),v(30," Motivo da solicita\xE7\xE3o: "),Y(31,"strong"),v(32),he()()(),Q(33,Bn,19,3,"div",2)),o&2){let d,M,te,L,K,ye,Le,Be;y(4),ne("",we(5,8,(d=r.protocolo())==null?null:d.txtCpf)," "),y(6),ue((M=r.segundaViaOnlineModel())==null?null:M.nomeCompleto),y(),W((te=r.segundaViaOnlineModel())!=null&&te.nomeSocial&&((te=r.segundaViaOnlineModel())==null?null:te.nomeSocial)!=""?11:-1),y(5),ue(we(17,10,(L=r.segundaViaOnlineModel())==null?null:L.dataNascimento)),y(6),ne(" ",(K=r.segundaViaOnlineModel())==null?null:K.descricaoTipoSexo," "),y(5),ne(" ",(ye=r.segundaViaOnlineModel())==null?null:ye.descricaoEstadoCivil," "),y(5),ue((Le=r.segundaViaOnlineModel())==null?null:Le.descricaoMotivoEncaminhamento),y(),W(((Be=r.segundaViaOnlineModel())==null?null:Be.tipoMotivoEncaminhamento)===2?33:-1)}},dependencies:[To,_t],encapsulation:2})}};function zn(l,c){if(l&1&&A(0,"app-motivo-copia-cin-resumo",7),l&2){let o=D();$("segundaViaOnlineModel",o.segundaViaOnlineModel)("protocolo",o.protocolo)}}function Hn(l,c){if(l&1&&A(0,"app-local-retirada-cin-resumo",10),l&2){let o=D();$("segundaViaOnlineModel",o.segundaViaOnlineModel)}}function Qn(l,c){if(l&1&&(g(0,"form",11)(1,"div",17)(2,"div",18),A(3,"input",19),f(),g(4,"div",13)(5,"label",20),v(6," Declaro que as informa\xE7\xF5es prestadas s\xE3o exatas e verdadeiras. "),f()()()()),l&2){let o=D();$("formGroup",o.form)}}var ai=class l{constructor(){this.router=F(bt);this.dadosCompartilhadosService=F(Je);this.protocolo=this.dadosCompartilhadosService.getProtocolo();this.segundaViaOnlineModel=this.dadosCompartilhadosService.getSegundaViaOnline();this.formBuilder=F(So)}ngOnInit(){this.form=this.formBuilder.group({declaraVeracidade:new re({value:!1,disabled:!1},de.requiredTrue)})}redirecionaProximaPagina(){this.router.navigate(["copia-cin","sucesso-copia-cin"],{skipLocationChange:!0})}redirecionaPaginaAnterior(){this.router.navigate(["copia-cin/local-retirada-cin"],{skipLocationChange:!0})}avancar(){this.redirecionaProximaPagina()}voltar(){this.redirecionaPaginaAnterior()}static{this.\u0275fac=function(o){return new(o||l)}}static{this.\u0275cmp=fe({type:l,selectors:[["app-resumo-copia-cin"]],decls:24,vars:4,consts:[[1,"navbar","titulo-navegacao"],["id","accordionResumoCopiaCIN",1,"accordion"],[1,"accordion-item","bg-accordion-custom"],[1,"accordion-header"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseDadosGerais","aria-expanded","true","aria-controls","collapseDadosGerais",1,"accordion-button","bg-accordion-button-custom","fw-bold"],["
37id","collapseDadosGerais","data-bs-parent","#accordionResumoCopiaCIN",1,"accordion-collapse","collapse","show"],[1,"accordion-body"],[3,"segundaViaOnlineModel","protocolo"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseLocalRetiradaCIN","aria-expanded","true","aria-controls","collapseLocalRetiradaCIN",1,"accordion-button","bg-accordion-button-custom","fw-bold"],["id","collapseLocalRetiradaCIN","data-bs-parent","#accordionResumoCopiaCIN",1,"accordion-collapse","collapse"],[3,"segundaViaOnlineModel"],["novalidate","",1,"needs-validation",3,"formGroup"],[1,"row","justify-content-between","mt-3"],[1,"col"],[3,"btnClicked"],[1,"col","text-end"],[3,"btnClicked","disabled"],[1,"row","text-bg-light","box-shadow","rounded","p-3","mt-3","ms-1","me-2"],[1,"col-auto"],["type","checkbox","value","true","id","declaraVeracidade","formControlName","declaraVeracidade",1,"form-check-input","checkbox-igp"],["for","declaraVeracidade",1,"form-check-label"]],template:function(o,r){o&1&&(g(0,"nav",0)(1,"span"),v(2," Resumo para retirada da CIN "),f()(),g(3,"div",1)(4,"div",2)(5,"h2",3)(6,"button",4),v(7," Dados Gerais "),f()(),g(8,"div",5)(9,"div",6),Q(10,zn,1,2,"app-motivo-copia-cin-resumo",7),f()()(),g(11,"div",2)(12,"h2",3)(13,"button",8),v(14," Local para retirada da CIN "),f()(),g(15,"div",9)(16,"div",6),Q(17,Hn,1,1,"app-local-retirada-cin-resumo",10),f()()()(),Q(18,Qn,7,1,"form",11),g(19,"div",12)(20,"div",13)(21,"app-custom-button-voltar",14),le("btnClicked",function(){return r.voltar()}),f()(),g(22,"div",15)(23,"app-custom-button-proximo",16),le("btnClicked",function(){return r.avancar()}),f()()()),o&2&&(y(10),W(r.segundaViaOnlineModel?10:-1),y(7),W(r.segundaViaOnlineModel?17:-1),y(),W(r.form?18:-1),y(5),$("disabled",r.form&&!r.form.controls.declaraVeracidade.value))},dependencies:[Ne,Yt,Fe,Ze,go,Te,Ke,et,St,ni,ri],encapsulation:2})}};var Lo=()=>{let c=F(Je).getProtocolo();return F(Ie).getSegundaViaOnlineSolicitar(c?.uuid).pipe(Qt(),to(o=>o||null),io(o=>(console.info("Solicita\xE7\xE3o n\xE3o pode ser conclu\xEDda: ",o),Zi(null))))};function Wn(l){let c=l,o=Math.floor(Math.abs(l)),r=l.toString().replace(/^[^.]*\.?/,"").length,d=parseInt(l.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return o===Math.floor(o)&&o>=0&&o<=1?1:d===0&&o!==0&&o%1e6===0&&r===0||!(d>=0&&d<=5)?4:5}var jo=["pt",[["AM","PM"]],void 0,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."],["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],void 0,[["a.C.","d.C."],void 0,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],PTE:["Esc."],RON:[void 0,"L"],SYP:[void 0,"S\xA3"],THB:["\u0E3F"],TWD:["NT$"],USD:["US$","$"]},"ltr",Wn];function Xn(l){l.CapacitorUtils.Synapse=new Proxy({},{get(c,o){return new Proxy({},{get(r,d){return(M,te,L)=>{let K=l.Capacitor.Plugins[o];if(K===void 0){L(new Error(`Capacitor plugin ${o} not found`));return}if(typeof K[d]!="function"){L(new Error(`Method ${d} not found in Capacitor plugin ${o}`));return}pe(null,null,function*(){try{let ye=yield K[d](M);te(ye)}catch(ye){L(ye)}})}}})}})}function $n(l){l.CapacitorUtils.Synapse=new Proxy({},{get(c,o){return l.cordova.plugins[o]}})}function Do(l=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!l?Xn(window):window.cordova!==void 0&&$n(window))}var Uo=No("Filesystem",{web:()=>import("./web-PG6IN2TY.js").then(l=>new l.FilesystemWeb)});Do();function Yn(l,c){l&1&&(g(0,"div",11)(1,"p",12),v(2," Muito obrigado pelo seu encaminhamento atrav\xE9s do Identidade F\xE1cil RS! "),f()(),g(3,"div",11)(4,"p",12),v(5," Voc\xEA receber\xE1 um e-mail de confirma\xE7\xE3o dos seus dados no endere\xE7o cadastrado no Gov.br. "),f()())}
37function Jn(l,c){if(l&1&&(g(0,"label",17),v(1,"QR Code para pagamento PIX:"),f(),g(2,"div",18),A(3,"img",19),f()),l&2){let o=D(2);y(3),$("src","data:image/jpeg;base64, "+o.respostaSegundaViaOnlineSolicitarModel.imgQrGuia,Xt)}}function qn(l,c){if(l&1&&(g(0,"div",6)(1,"strong"),v(2,"Data limite para pagamento:"),f(),v(3),Oe(4,"formataData"),f()),l&2){let o=D(2);y(3),ne(" ",we(4,1,o.respostaSegundaViaOnlineSolicitarModel.dtLimitePagtoGuia)," ")}}function Kn(l,c){if(l&1&&(g(0,"div",6)(1,"strong"),v(2,"Valor da guia:"),f(),v(3),Oe(4,"currency"),f()),l&2){let o=D(2);y(3),ne(" ",we(4,1,o.respostaSegundaViaOnlineSolicitarModel.vlrTotalGuia)," ")}}function Zn(l,c){if(l&1){let o=It();g(0,"div",6)(1,"app-custom-button",20),le("btnClicked",function(){at(o);let d=D(2);return lt(d.copiaCodigoPIX())}),f(),g(2,"app-custom-button",21),le("btnClicked",function(){at(o);let d=D(2);return lt(d.copiaCodigoDeBarras())}),f()()}}function er(l,c){if(l&1&&(g(0,"div",16),v(1),f()),l&2){let o=D(2);y(),ne(" ",o.mensagemCopia," ")}}function tr(l,c){l&1&&(g(0,"div",7)(1,"span",22),v(2,"Loading..."),f()())}function ir(l,c){if(l&1&&(g(0,"div",2)(1,"div",3)(2,"div"),A(3,"i",23),f()(),g(4,"div",3)(5,"div",6),v(6,"Retirada da carteira de identidade"),f(),g(7,"div",6)(8,"a",24),v(9,"Acompanhe o status da CIN neste link"),f(),v(10,"\xA0com o n\xFAmero do seu protocolo "),g(11,"strong"),v(12),f()(),g(13,"div",6)(14,"small",25)(15,"strong"),v(16),f(),v(17),f()(),g(18,"div",6)(19,"small",26)(20,"strong",27),v(21,"Aten\xE7\xE3o"),f(),A(22,"br"),v(23),A(24,"br"),v(25," - No caso de agendamento do pagamento do boleto, o prazo conta a partir da efetiva\xE7\xE3o do pagamento. "),A(26,"br"),v(27," - A retirada deve ser feita pelo titular, mediante verifica\xE7\xE3o biom\xE9trica. "),f()()()()),l&2){let o,r,d=D(2);y(12),ue(d.respostaSegundaViaOnlineSolicitarModel.protocolo),y(4),ue(((o=d.dadosCompartilhadosService.getSegundaViaOnline())==null?null:o.nomeLocal)??d.segundaViaOnlineService.segundaViaOnlineModel.value().nomeLocal),y(),ne(" - ",((r=d.dadosCompartilhadosService.getSegundaViaOnline())==null?null:r.enderecoLocal)??d.segundaViaOnlineService.segundaViaOnlineModel.value().enderecoLocal," "),y(6),ne(" - A retirada pode ser feita ap\xF3s ",d.respostaSegundaViaOnlineSolicitarModel.prazo??d.dadosCompartilhadosService.getLocalRetiradaCIN().prazo," do pagamento do boleto. ")}}function or(l,c){if(l&1){let o=It();g(0,"div",2)(1,"div",3)(2,"div"),A(3,"i",4),f(),A(4,"div",5),f(),g(5,"div",3)(6,"div",6),v(7,"Comprovante de retirada e boleto para pagamento"),f(),g(8,"div",6)(9,"small"),v(10," Caso o motivo de emiss\xE3o seja roubo e tenha sido informado um boletim de ocorr\xEAncia ou em casos de isen\xE7\xE3o n\xE3o h\xE1 necessidade de pagamento, portanto apenas o comprovante ser\xE1 disponibilizado "),f()(),g(11,"div",6)(12,"label",13),le("click",function(){at(o);let d=D();return lt(d.downloadPdf())}),v(13,"Baixar guia e comprovante"),A(14,"i",14),f(),A(15,"input",15),f(),Q(16,Jn,4,1),Q(17,qn,5,3,"div",6),Q(18,Kn,5,3,"div",6),Q(19,Zn,3,0,"div",6),Q(20,er,2,1,"div",16),f()(),Q(21,tr,3,0,"div",7)(22,ir,28,4,"div",2)}if(l&2){let o=D();y(12),gt(o.formControl.invalid&&o.formControl.touched&&o.formControl.dirty?"form-label custom-file-button custom-file-button-invalid":"form-label custom-file-button"),y(3),$("formControl",o.formControl),y(),W(o.respostaSegundaViaOnlineSolicitarModel.imgQrGuia?16:-1),y(),W(o.respostaSegundaViaOnlineSolicitarModel.dtLimitePagtoGuia?17:-1),y(),W(o.respostaSegundaViaOnlineSolicitarModel.vlrTotalGuia?18:-1),y(),W(o.respostaSegundaViaOnlineSolicitarModel.qrCodeStringGuia?19:-1),y(),W(o.mensagemCopia?20:-1),y(),W(o.segundaViaOnlineService.segundaViaOnlineModel.isLoading()?21:22)}}function nr(l,c){if(l&1&&(g(0,"div",2)(1,"div",3)(2,"div"),A(3,"i",28),f(),A(4,"div",5),f(),g(5,"div",3)(6,"div",6),v(7),f()()()),l&2){let o=D();y(7),ne(" ",o.respostaSegundaViaOnlineSolicitarModel.mensagem_retorno," ")}}function rr(l,c){l&1&&(g(0,"div",2)(1,"div",3)(2,"div"),A(3,"i",28),f(),A(4,"div",5),f(),g(5,"div",3)(6,"div",6),v(7," Ocorreu um erro na sua solicita\xE7\xE3o. Tente novamente mais tarde. "),f()()())}function ar(l,c){l&1&&(g(0,"div",7)(1,"span",22),v(2,"Loading..."),f()())}mo(jo);var Go=(d=>(d[d.Carregando=0]="Carregando",d[d.ErroSII=1]="ErroSII",d[d.ErroRequisicao=2]="ErroRequisicao",d[d.Sucesso=3]="Sucesso",d))(Go||{}),li=class l{constructor(){this.usuarioService=F(Jt);this.platform=F(_o);this.dadosCompartilhadosService=F(Je);this.activatedRoute=F(ho);this.segundaViaOnlineService=F(Ie);this.avaliacaoSatisfacaoService=F(Ro);this.respostaSegundaViaOnlineSolicitarModel=this.dadosCompartilhadosService.getRespostaSegundaViaOnlineSolicitar();this.formControl=new re("");this.status=0;this.StatusRequisicao=Go;this.router=F(bt);this.respostaSegundaViaOnlineSolicitarModel=this.activatedRoute.snapshot.data.solicitacao,this.segundaViaOnlineService.carregaSegundaViaOnline(this.dadosCompartilhadosService.getProtocolo()?.uuid),this.respostaSegundaViaOnlineSolicitarModel&&this.respostaSegundaViaOnlineSolicitarModel.cod_retorno!="99"?(this.dadosCompartilhadosService.setRespostaSegundaViaOnlineSolicitar(this.respostaSegundaViaOnlineSolicitarModel),this.status=3):this.respostaSegundaViaOnlineSolicitarModel?this.status=1:this.status=2}ngAfterViewInit(){this.avaliacaoSatisfacaoService.getAvaliacaoSatisfacao(this.dadosCompartilhadosService.getProtocolo()?.uuid).subscribe({next:c=>{c||this.openModalAvaliacaoSatisfacao()},error:c=>{console.error("Erro ao carregar avalia\xE7\xE3o de satisfa\xE7\xE3o: ",c.error)}})}openModalAvaliacaoSatisfacao(){let c=document.getElementById("avaliacaoSatisfacaoModal");c&&new wo(c).show()}downloadPdf(){return pe(this,null,function*(){this.isMobile()?yield this.savePdfAndroid():this.savePdfDesktop()})}savePdfAndroid(){return pe(this,null,function*(){let c=this.dadosCompartilhadosService.getRespostaSegundaViaOnlineSolicitar()?.guiaPagamento??"";try{let o=yield Uo.writeFile({path:"guia_pagamento.pdf",data:c,directory:ko.Documents,recursive:!0});alert(`Guia de pagamento salva!
38
39 Salva em: `+o.uri)}catch(o){console.error("Erro ao salvar o PDF:",o),alert("Erro ao baixar o arquivo.")}})}savePdfDesktop(){if(this.dadosCompartilhadosService.getRespostaSegundaViaOnlineSolicitar()&&this.dadosCompartilhadosService.getRespostaSegundaViaOnlineSolicitar()?.guiaPagamento){let c=this.dadosCompartilhadosService.getRespostaSegundaViaOnlineSolicitar()?.guiaPagamento??"",o=atob(c),r=new Array(o.length);for(let K=0;K<o.length;
39K++)r[K]=o.charCodeAt(K);let d=new Uint8Array(r),M=new Blob([d],{type:"application/pdf"}),te=URL.createObjectURL(M),L=document.createElement("a");L.href=te,L.download="guia_pagamento.pdf",document.body.appendChild(L),L.click(),document.body.removeChild(L),URL.revokeObjectURL(te)}}copiaCodigoPIX(){this.respostaSegundaViaOnlineSolicitarModel&&(navigator.clipboard.writeText(this.respostaSegundaViaOnlineSolicitarModel.qrCodeStringGuia),this.mensagemCopia="C\xF3digo PIX copiado!")}copiaCodigoDeBarras(){this.respostaSegundaViaOnlineSolicitarModel&&(navigator.clipboard.writeText(this.respostaSegundaViaOnlineSolicitarModel.linhaDigitavelGuia),this.mensagemCopia="C\xF3digo de barras copiado!")}isMobile(){return!this.platform.is("desktop")}logout(){this.usuarioService.logOut()}static{this.\u0275fac=function(o){return new(o||l)}}static{this.\u0275cmp=fe({type:l,selectors:[["app-sucesso-copia-cin"]],features:[Ct([{provide:lo,useValue:"BRL"},{provide:ao,useValue:"pt"}])],decls:19,vars:2,consts:[[1,"card","card-background-color","mb-3"],[1,"card-body"],[1,"d-flex","justify-content-start","mb-2"],[1,"d-flex","flex-column"],[1,"bi","bi-check-circle-fill","fs-2","text-success"],[1,"vertical-line"],[1,"p-2"],["role","status",1,"spinner-border","text-primary"],[1,"row","text-center"],[1,"col"],["cssClass","btn-primary-custom","label","Sair",3,"btnClicked"],[1,"row","pb-3"],[1,"card-text","text-center","fw-bold","fs-6"],["for","download-file",3,"click"],[1,"bi","bi-download","ps-3","pe-2"],["type","button","id","download-file","aria-describedby","downloadFile","aria-label","Download",3,"formControl"],[1,"p-2","text-success","fw-bold"],[1,"pb-2","ps-2"],[1,"p2","ps-5"],["alt","codigo_qr_pix",3,"src"],["label","Copiar c\xF3digo PIX","cssClass","btn-light-custom mb-2 me-2","icon","bi-copy",3,"btnClicked"],["label","Copiar c\xF3digo de barras","cssClass","btn-light-custom mb-2","icon","bi-copy",3,"btnClicked"],[1,"visually-hidden"],[1,"bi","bi-arrow-repeat","fs-2"],["href","https://igp.rs.gov.br/consulta-a-situacao-da-carteira-de-identidade","target","_blank"],[1,"pb-3"],[1,"text-danger"],[1,"d-flex","justify-content-center","fs-3"],[1,"bi","bi-file-earmark-excel","text-danger","fs-2"]],template:function(o,r){o&1&&(g(0,"div",0)(1,"div",1),Q(2,Yn,6,0),g(3,"div",2)(4,"div",3)(5,"div"),A(6,"i",4),f(),A(7,"div",5),f(),g(8,"div",3)(9,"div",6),v(10,"Solicita\xE7\xE3o 2\xAA via Online"),f()()(),Q(11,or,23,9)(12,nr,8,1,"div",2)(13,rr,8,0,"div",2)(14,ar,3,0,"div",7),g(15,"div",8)(16,"div",9)(17,"app-custom-button",10),le("btnClicked",function(){return r.logout()}),f()()()()(),A(18,"app-avaliacao-satisfacao")),o&2&&(y(2),W(r.status==r.StatusRequisicao.Sucesso?2:-1),y(9),W(r.status==r.StatusRequisicao.Sucesso?11:r.status==r.StatusRequisicao.ErroSII?12:r.status==r.StatusRequisicao.ErroRequisicao?13:14))},dependencies:[Fe,qe,Te,Et,$t,Vo,_t,co],styles:[".vertical-line[_ngcontent-%COMP%]{width:2px;height:100%;background-color:#a6abaf;align-self:center;min-height:2rem}input[type=button][_ngcontent-%COMP%]{display:none}.custom-file-button[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;padding:8px 12px;border-radius:50px;cursor:pointer}.custom-file-button[_ngcontent-%COMP%]:hover{background-color:#e7e7e7}.custom-file-button-invalid[_ngcontent-%COMP%]{border-color:red;border-radius:50px}"]})}};var Wo=Ki(zo()),Xo=Ki(Qo());var si=class l{constructor(){this.http=F(yt)}gravaFace(c){let o=Pe.config.serverUrlRemota+"/pre-cadastro/face";return this.http.post(o,c,{responseType:"text"})}static{this.\u0275fac=function(o){return new(o||l)}}static{this.\u0275prov=ht({token:l,factory:l.\u0275fac,providedIn:"root"})}};var lr=["videoElement"],sr=["canvasElement"],cr=["dialogContainer"];function ur(l,c){if(l&1&&(g(0,"span")(1,"b"),v(2),f()()),l&2){let o=D();y(),gt(o.aviso.textStyleClass),y(),ue(o.aviso.texto)}}function dr(l,c){if(l&1&&(g(0,"div",12),A(1,"img",21),f()),l&2){let o=D();y(),$("src",o.imageDataUrl,Xt)}}function mr(l,c){l&1&&A(0,"i",13)}var ci=class l{constructor(){this.spinnerService=F(Io);this.faceService=F(si);this.router=F(bt);this.dadosCompartilhadosService=F(Je);this.protocoloModel=this.dadosCompartilhadosService.getProtocolo();this.messagesServiceModal=F(Ye);this.parametroService=F(qt);this.contadorPiscadas=0;this.numeroVezesQuePiscou=0;this.botaoProximoDesabilitado=!0;this.limiteProximidade=0;this.limiteEAR=0;this.sucessoReconhecimento=!1}getScreenSize(){this.alturaTela=window.innerHeight,this.larguraTela=window.innerWidth,this.alturaTela<1024&&this.larguraTela<1024?(this.limiteProximidade=1.35,this.limiteEAR=.1):(this.limiteProximidade=.65,this.limiteEAR=.2)}
39ngOnInit(){this.consultaPermiteAvancarReconhecimento(),this.getScreenSize(),this.spinnerService.showLoader(),setTimeout(()=>{this.inicializaConfiguracoesCamera(),this.spinnerService.hideLoader()},500)}ngOnChanges(){setTimeout(()=>{this.imageDataUrl||this.inicializaConfiguracoesCamera(),this.spinnerService.hideLoader()},500)}inicializaConfiguracoesCamera(){this.inicializaFaceMesh(),this.ajustaTamanhoAreaCaptura()}intervaloEntrePiscadas(){this.contadorPiscadas=1;let c=setInterval(()=>{this.contadorPiscadas==3?(clearInterval(c),this.contadorPiscadas=0):this.contadorPiscadas++},1e3)}ajustaTamanhoAreaCaptura(){setTimeout(()=>{let c=this.canvasElement.nativeElement,o=this.videoElement.nativeElement;c.width=o.videoWidth,c.height=o.videoHeight},1e3)}inicializaFaceMesh(){this.faceMesh=new Xo.FaceMesh({locateFile:c=>`https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh/${c}`}),this.faceMesh.setOptions({maxNumFaces:1,refineLandmarks:!0,minDetectionConfidence:.7,minTrackingConfidence:.7,selfieMode:!0}),this.faceMesh.onResults(this.onResults.bind(this)),this.camera=new Wo.Camera(this.videoElement.nativeElement,{onFrame:()=>pe(this,null,function*(){yield this.faceMesh.send({image:this.videoElement.nativeElement})})}),this.inicializaCamera()}inicializaCamera(){return pe(this,null,function*(){try{yield this.camera.start()}catch(c){this.messagesServiceModal.openModal(`
40           <p class="fw-bolder text-danger fs-5">Erro ao acessar a c\xE2mera!</p>
41           <p>- A c\xE2mera deve estar habilitada no dispositivo;</p>
42           <p>- A c\xE2mera n\xE3o pode estar sendo utilizada por outro aplicativo;</p>
43          `,this.viewContainerRef)}})}onResults(c){let o=this.canvasElement.nativeElement,r=o.getContext("2d");if(r){if(r.save(),r.clearRect(0,0,o.width,o.height),r.drawImage(c.image,0,0,o.width,o.height),c.multiFaceLandmarks&&c.multiFaceLandmarks.length>0){let d=c.multiFaceLandmarks[0],M=d[133],te=d[362],L=this.distanciaEntreOsOlhos(te,M)/this.distanciaEntreNarizEOsOlhos(d,te,M);L<this.limiteProximidade&&this.contadorPiscadas==0&&this.numeroVezesQuePiscou<3?(this.criaAviso(),this.verificaPiscadasDosOlhos(c,L)):this.contadorPiscadas==0&&this.numeroVezesQuePiscou<3?this.aviso={texto:"Aproxime-se da c\xE2mera!",textStyleClass:"text-danger"}:this.numeroVezesQuePiscou<3?this.aviso={texto:`Aguarde ${this.contadorPiscadas} segundos...`,textStyleClass:"primary-color"}:this.imageDataUrl?this.sucessoReconhecimento||(this.aviso={texto:"Se a foto estiver boa, clique no bot\xE3o [Enviar].",textStyleClass:"primary-color"}):this.aviso={texto:"Tudo certo! Agora capture uma foto do seu rosto.",textStyleClass:"text-success"}}r.restore()}}criaAviso(){this.numeroVezesQuePiscou==0?this.aviso={texto:`Ok. Pisque os olhos! ${this.numeroVezesQuePiscou}/3`,textStyleClass:"text-success"}:this.aviso={texto:`Ok. Pisque novamente! ${this.numeroVezesQuePiscou}/3`,textStyleClass:"text-success"}}verificaPiscadasDosOlhos(c,o){if(c.multiFaceLandmarks)for(let r of c.multiFaceLandmarks){let d=[r[33],r[160],r[158],r[133],r[153],r[144]],M=[r[362],r[385],r[387],r[263],r[373],r[380]],te=this.calculaEAR(d),L=this.calculaEAR(M);te<this.limiteEAR&&L<this.limiteEAR&&this.contadorPiscadas==0&&this.numeroVezesQuePiscou<3&&o<this.limiteProximidade&&(this.numeroVezesQuePiscou++,this.intervaloEntrePiscadas())}}distanciaEntreOsOlhos(c,o){return Math.sqrt(Math.pow(c.x-o.x,2)+Math.pow(c.y-o.y,2))}distanciaEntreNarizEOsOlhos(c,o,r){let d=c[1];return Math.sqrt(Math.pow(d.x-(r.x+o.x)/2,2)+Math.pow(d.y-(r.y+o.y)/2,2))}calculaEAR(c){let o=Math.sqrt(Math.pow(c[1].x-c[5].x,2)+Math.pow(c[1].y-c[5].y,2)),r=Math.sqrt(Math.pow(c[2].x-c[4].x,2)+Math.pow(c[2].y-c[4].y,2)),d=Math.sqrt(Math.pow(c[0].x-c[3].x,2)+Math.pow(c[0].y-c[3].y,2));return(o+r)/(2*d)}capturarImagem(){if(this.sucessoReconhecimento=!1,this.botaoProximoDesabilitado=this.permiteAvancarReconhecimento!=="1",this.imageDataUrl)this.imageDataUrl=null;else{let c=this.canvasElement.nativeElement,o=this.videoElement.nativeElement;c.width=o.videoWidth,c.height=o.videoHeight;let r=c.getContext("2d");r&&r.drawImage(o,0,0,c.width,c.height),this.imageDataUrl=c.toDataURL("image/png")}}enviarImagem(){let c=this.imageDataUrl?this.imageDataUrl.split(",")[1]:"",o={uuidPrecadastro:this.protocoloModel?.uuid,imagemB64:c};this.faceService.gravaFace(o).subscribe({next:r=>{r=="true"?(this.sucessoReconhecimento=!0,this.botaoProximoDesabilitado=!1,this.aviso={texto:"Foto enviada com sucesso!",textStyleClass:"text-success"}):this.messagesServiceModal.openModalConfirmation(`
44           <p class="fw-bolder">ATEN\xC7\xC3O!</p>
45           <p>N\xE3o foi poss\xEDvel validar a sua identidade.</p>
46           <p>Deseja voltar para o in\xEDcio?</p>
47          `,this.viewContainerRef,d=>{d==="Sim"?this.redirecionaInicio():this.capturarImagem()})},error:r=>{console.error("Erro ao enviar imagem",r),this.messagesServiceModal.openModalConfirmation(`
48           <p class="fw-bolder">ATEN\xC7\xC3O!</p>
49           <p>N\xE3o foi enviar sua imagem para avalia\xE7\xE3o.</p>
50           <p>Deseja voltar para o in\xEDcio?</p>
51          `,this.viewContainerRef,d=>{d==="Sim"?this.redirecionaInicio():this.capturarImagem()})}})}consultaPermiteAvancarReconhecimento(){this.parametroService.getParametroSistema("PERMITE_AVANCAR_RECONHECIMENTO").subscribe({next:c=>{c&&(this.permiteAvancarReconhecimento=c.valorParametro,this.botaoProximoDesabilitado=c.valorParametro!=="1")},error:c=>{console.error("Erro ao consultar o par\xE2metro do sistema",c)}})}redirecionaInicio(){this.router.navigate([""],{skipLocationChange:!0})}redirecionaParaMotivoCopia(){this.router.navigate(["copia-cin","motivo-copia-cin"],{skipLocationChange:!0})}avancarEtapa(){this.dadosCompartilhadosService.setImagemReconhecimentoFacial(this.imageDataUrl),this.redirecionaParaMotivoCopia()}static{this.\u0275fac=function(o){return new(o||l)}}static{this.\u0275cmp=fe({type:l,selectors:[["app-reconhecimento-facial"]],viewQuery:function(o,r){if(o&1&&$e(lr,5)(sr,5)(cr,5,Xe),o&2){let d;Ve(d=Ae())&&(r.videoElement=d.first),Ve(d=Ae())&&(r.canvasElement=d.first),Ve(d=Ae())&&(r.viewContainerRef
51=d.first)}},hostBindings:function(o,r){o&1&&le("resize",function(){return r.getScreenSize()},ro)},features:[no],decls:30,vars:11,consts:[["dialogContainer",""],["videoElement",""],["canvasElement",""],[1,"navbar","titulo-navegacao"],[1,"card","card-background-color"],[1,"card-body"],[1,"row","pb-2"],[1,"col","text-center"],[1,"col","d-flex","justify-content-center","oval-animation"],["autoplay","","playsinline","","muted",""],[1,"border-effect"],[1,"col","d-flex","justify-content-center"],[1,"oval-mask"],[1,"bi","bi-file-earmark-check","fs-1","text-success"],[1,"row","pb-2","px-2"],[1,"col-auto","text-start"],["cssClass","btn-primary-custom",3,"btnClicked","label","disabled"],[1,"col","text-end"],["label","Enviar","cssClass","btn-primary-custom",3,"btnClicked","disabled"],[1,"row","mt-4"],[3,"btnClicked","disabled"],["alt","imagem-reconhecimento-facial-falhou","width","100%",1,"img-oval",3,"src"]],template:function(o,r){o&1&&(A(0,"div",null,0),g(2,"nav",3)(3,"span"),v(4," Verifica\xE7\xE3o facial "),f()(),g(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7),Q(9,ur,3,3,"span"),f()(),g(10,"div")(11,"div",8)(12,"div"),A(13,"video",9,1)(15,"canvas",null,2)(17,"div",10),f()()(),g(18,"div",6)(19,"div",11),Q(20,dr,2,1,"div",12),Q(21,mr,1,0,"i",13),f()()(),g(22,"div",14)(23,"div",15)(24,"app-custom-button",16),le("btnClicked",function(){return r.capturarImagem()}),f()(),g(25,"div",17)(26,"app-custom-button",18),le("btnClicked",function(){return r.envi
51arImagem()}),f()()()(),g(27,"div",19)(28,"div",17)(29,"app-custom-button-proximo",20),le("btnClicked",function(){return r.avancarEtapa()}),f()()()),o&2&&(y(9),W(r.aviso?9:-1),y(),gt(r.imageDataUrl?"row pb-2 d-none":"row pb-2"),y(2),gt(r.numeroVezesQuePiscou!=3?"oval-mask":"oval-mask oval-success"),y(8),W(r.imageDataUrl&&!r.sucessoReconhecimento?20:-1),y(),W(r.imageDataUrl&&r.sucessoReconhecimento?21:-1),y(3),$("label",r.imageDataUrl?"Capturar novamente":"Capturar Imagem")("disabled",r.numeroVezesQuePiscou<3),y(2),$("disabled",!r.imageDataUrl),y(3),$("disabled",r.botaoProximoDesabilitado))},dependencies:[Ne,$t],styles:['@charset "UTF-8";.oval-mask[_ngcontent-%COMP%]{width:250px;height:350px;border-radius:50%;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;box-shadow:0 0 10px #ffffff80}.oval-success[_ngcontent-%COMP%]{border:solid 10px #198754}canvas[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:50%;left:50%;transform:translate(-50%,-50%);object-fit:cover}.img-oval[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:50%;left:50%;transform:translate(-50%,-50%);object-fit:cover}@keyframes _ngcontent-%COMP%_example{0%{background-color:red}to{background-color:#ff0}}']})}};var ns=[{path:"",redirectTo:"local-retirada-cin",pathMatch:"full"},{path:"emitir-copia-cin",component:Zt,title:"Identidade F\xE1cil RS"},{path:"reconhecimento-facial",component:ci,title:"Identidade F\xE1cil RS"},{path:"motivo-copia-cin",component:oi,title:"Identidade F\xE1cil RS"},{path:"local-retirada-cin",component:ii,title:"Identidade F\xE1cil RS"},{path:"resumo-copia-cin",component:ai,title:"Identidade F\xE1cil RS"},{path:"sucesso-copia-cin",component:li,title:"Identidade F\xE1cil RS",resolve:{solicitacao:Lo}}];export{ns as COPIA_CIN_ROUTES};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.