0x608060405234801561001057600080fd5b50612178806100206000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636ebb7d8e116100f9578063b88d4fde11610097578063d5abeb0111610071578063d5abeb0114610383578063e985e9c51461038c578063f2fde38b146103c9578063fac333ac146103dc57600080fd5b8063b88d4fde14610355578063c87b56dd14610368578063d2d99fec1461037b57600080fd5b806374b1ceaf116100d357806374b1ceaf146103205780638da5cb5b1461032957806395d89b411461033a578063a22cb4651461034257600080fd5b80636ebb7d8e146102fc57806370a0823114610305578063715018a61461031857600080fd5b806323b872dd1161016657806342842e0e1161014057806342842e0e146102b0578063466a18de146102c35780636352211e146102d6578063691562a0146102e957600080fd5b806323b872dd146102735780632f6729b6146102865780632fa315901461029d57600080fd5b806301ffc9a7146101ae57806306fdde03146101d6578063081812fc146101eb578063095ea7b3146102165780631c5d2b491461022b5780631e7269c51461023e575b600080fd5b6101c16101bc3660046119a3565b610402565b60405190151581526020015b60405180910390f35b6101de610454565b6040516101cd9190611a18565b6101fe6101f9366004611a2b565b6104e6565b6040516001600160a01b0390911681526020016101cd565b610229610224366004611a5b565b61050e565b005b610229610239366004611b31565b610628565b61026161024c366004611bc1565b609b6020526000908152604090205460ff1681565b60405160ff90911681526020016101cd565b610229610281366004611bdc565b610749565b61028f609c5481565b6040519081526020016101cd565b609a546101fe906001600160a01b031681565b6102296102be366004611bdc565b61077a565b6102296102d1366004611c18565b610795565b6101fe6102e4366004611a2b565b6107e4565b6102296102f7366004611c4d565b61087f565b61028f609d5481565b61028f610313366004611bc1565b610a68565b610229610aef565b61028f6101a481565b6065546001600160a01b03166101fe565b6101de610b03565b610229610350366004611c8a565b610b12565b610229610363366004611cbb565b610b21565b6101de610376366004611a2b565b610b59565b6101de610bc0565b61028f6128b481565b6101c161039a366004611d37565b6001600160a01b0391821660009081526103136020908152604080832093909416825291909152205460ff1690565b6102296103d7366004611bc1565b610c4e565b6103ef6103ea366004611a2b565b610cc7565b60405161ffff90911681526020016101cd565b60006001600160e01b031982166380ac58cd60e01b148061043357506001600160e01b03198216635b5e139f60e01b145b8061044e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606097805461046390611d6a565b80601f016020809104026020016040519081016040528092919081815260200182805461048f90611d6a565b80156104dc5780601f106104b1576101008083540402835291602001916104dc565b820191906000526020600020905b8154815290600101906020018083116104bf57829003601f168201915b5050505050905090565b60006104f182610cf6565b50600090815261031260205260409020546001600160a01b031690565b6000610519826107e4565b9050806001600160a01b0316836001600160a01b03160361058b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105a757506105a7813361039a565b6106195760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610582565b6106238383610d4b565b505050565b600054610100900460ff16158080156106485750600054600160ff909116105b806106625750303b158015610662575060005460ff166001145b6106c55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610582565b6000805460ff1916600117905580156106e8576000805461ff0019166101001790555b6106f0610dba565b6106fc85858585610de9565b8015610742576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6107533382610e1c565b61076f5760405162461bcd60e51b815260040161058290611da4565b610623838383610e9c565b61062383838360405180602001604052806000815250610b21565b61079d611003565b60996107a98282611e3f565b507f82fdb22ab8c5da1f3ab63051913d7c98cb3a8899311863e8e7d39692ded314bb816040516107d99190611a18565b60405180910390a150565b60006128b482106108495760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610582565b600082815261031060205260409020546001600160a01b03166101a483101561044e5750609a546001600160a01b031692915050565b61088761105d565b336000908152609b602052604090205460ff16106108de5760405162461bcd60e51b8152602060048201526014602482015273596f752063616e6e6f74206d696e74206d6f726560601b6044820152606401610582565b6108e661105d565b336000908152609b602052604090205461090490839060ff16611f15565b60ff1611156109495760405162461bcd60e51b8152602060048201526011602482015270416d6f756e7420697320746f6f2062696760781b6044820152606401610582565b60005b8160ff168110156109fa5761030f5460009061ffff16334261096f600143611f3a565b406040516020016109ba949392919060f09490941b6001600160f01b031916845260609290921b6bffffffffffffffffffffffff191660028401526016830152603682015260560190565b6040516020818303038152906040528051906020012060001c90506109e7846109e28361107c565b6112c2565b50806109f281611f51565b91505061094c565b50336000908152609b602052604081205460ff169003610a2a57609c8054906000610a2483611f51565b91905055505b336000908152609b602052604081208054839290610a4c90849060ff16611f15565b92506101000a81548160ff021916908360ff1602179055505050565b60006001600160a01b038216610ad25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610582565b506001600160a01b03166000908152610311602052604090205490565b610af7611003565b610b0160006112dc565b565b60606098805461046390611d6a565b610b1d33838361132e565b5050565b610b2b3383610e1c565b610b475760405162461bcd60e51b815260040161058290611da4565b610b53848484846113fd565b50505050565b6060610b6482610cf6565b6000610b6e611430565b90506000815111610b8e5760405180602001604052806000815250610bb9565b80610b988461143f565b604051602001610ba9929190611f6a565b6040516020818303038152906040525b9392505050565b60998054610bcd90611d6a565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf990611d6a565b8015610c465780601f10610c1b57610100808354040283529160200191610c46565b820191906000526020600020905b815481529060010190602001808311610c2957829003601f168201915b505050505081565b610c56611003565b6001600160a01b038116610cbb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610582565b610cc4816112dc565b50565b609e816127108110610cd857600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b610cff816114d2565b610cc45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610582565b60008181526103126020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d81826107e4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600054610100900460ff16610de15760405162461bcd60e51b815260040161058290611f99565b610b0161150a565b600054610100900460ff16610e105760405162461bcd60e51b815260040161058290611f99565b610b538484848461153a565b600080610e28836107e4565b9050806001600160a01b0316846001600160a01b03161480610e7057506001600160a01b038082166000908152610313602090815260408083209388168352929052205460ff165b80610e945750836001600160a01b0316610e89846104e6565b6001600160a01b0316145b949350505050565b826001600160a01b0316610eaf826107e4565b6001600160a01b031614610ed55760405162461bcd60e51b815260040161058290611fe4565b6001600160a01b038216610f375760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610582565b826001600160a01b0316610f4a826107e4565b6001600160a01b031614610f705760405162461bcd60e51b815260040161058290611fe4565b60008181526103126020908152604080832080546001600160a01b03199081169091556001600160a01b03878116808652610311855283862080546000190190559087168086528386208054600101905586865261031090945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6065546001600160a01b03163314610b015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610582565b6000609d54609c5411611071576004611074565b60025b60ff16905090565b61030f5460009081906110959061ffff16612710611f3a565b9050600081116110e75760405162461bcd60e51b815260206004820152601b60248201527f416c6c20746f6b656e732068617665206265656e206d696e74656400000000006044820152606401610582565b60006110f38285612029565b90506101a4609e82612710811061110c5761110c61204b565b601091828204019190066002029054906101000a900461ffff1661ffff16600003611137578161116a565b609e82612710811061114b5761114b61204b565b601091828204019190066002029054906101000a900461ffff1661ffff165b6111749190612061565b9250609e611183600184611f3a565b61271081106111945761119461204b565b601081049190910154600f9091166002026101000a900461ffff16156111f557609e6111c1600184611f3a565b61271081106111d2576111d261204b565b601091828204019190066002029054906101000a900461ffff1661ffff16611200565b611200600183611f3a565b609e8261271081106112145761121461204b565b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506000609e60018461124a9190611f3a565b612710811061125b5761125b61204b565b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600161030f60008282829054906101000a900461ffff166112a19190612079565b92506101000a81548161ffff021916908361ffff1602179055505050919050565b610b1d8282604051806020016040528060008152506115be565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361138f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610582565b6001600160a01b0383811660008181526103136020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611408848484610e9c565b611414848484846115f1565b610b535760405162461bcd60e51b815260040161058290612096565b60606099805461046390611d6a565b6060600061144c836116f2565b600101905060008167ffffffffffffffff81111561146c5761146c611a85565b6040519080825280601f01601f191660200182016040528015611496576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846114a057509392505050565b60006101a48210156114e657506001919050565b50600090815261031060205260409020546001600160a01b0316151590565b919050565b600054610100900460ff166115315760405162461bcd60e51b815260040161058290611f99565b610b01336112dc565b600054610100900460ff166115615760405162461bcd60e51b815260040161058290611f99565b609761156d8582611e3f565b50609861157a8482611e3f565b5060996115878382611e3f565b50609d819055609a80546001600160a01b031916339081179091556000908152610311602052604090206101a49055610b536117ca565b6115c8838361181e565b6115d560008484846115f1565b6106235760405162461bcd60e51b815260040161058290612096565b60006001600160a01b0384163b156116e757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906116359033908990889088906004016120e8565b6020604051808303816000875af1925050508015611670575060408051601f3d908101601f1916820190925261166d91810190612125565b60015b6116cd573d80801561169e576040519150601f19603f3d011682016040523d82523d6000602084013e6116a3565b606091505b5080516000036116c55760405162461bcd60e51b815260040161058290612096565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e94565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106117315772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061175d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061177b57662386f26fc10000830492506010015b6305f5e1008310611793576305f5e100830492506008015b61271083106117a757612710830492506004015b606483106117b9576064830492506002015b600a831061044e5760010192915050565b609a546001600160a01b031660005b6101a4811015610b1d57808260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48061181681611f51565b9150506117d9565b6001600160a01b0382166118745760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610582565b61187d816114d2565b156118ca5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610582565b6118d3816114d2565b156119205760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610582565b6001600160a01b0382166000818152610311602090815260408083208054600101905584835261031090915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610cc457600080fd5b6000602082840312156119b557600080fd5b8135610bb98161198d565b60005b838110156119db5781810151838201526020016119c3565b83811115610b535750506000910152565b60008151808452611a048160208601602086016119c0565b601f01601f19169290920160200192915050565b602081526000610bb960208301846119ec565b600060208284031215611a3d57600080fd5b5035919050565b80356001600160a01b038116811461150557600080fd5b60008060408385031215611a6e57600080fd5b611a7783611a44565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611ab657611ab6611a85565b604051601f8501601f19908116603f01168101908282118183101715611ade57611ade611a85565b81604052809350858152868686011115611af757600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112611b2257600080fd5b610bb983833560208501611a9b565b60008060008060808587031215611b4757600080fd5b843567ffffffffffffffff80821115611b5f57600080fd5b611b6b88838901611b11565b95506020870135915080821115611b8157600080fd5b611b8d88838901611b11565b94506040870135915080821115611ba357600080fd5b50611bb087828801611b11565b949793965093946060013593505050565b600060208284031215611bd357600080fd5b610bb982611a44565b600080600060608486031215611bf157600080fd5b611bfa84611a44565b9250611c0860208501611a44565b9150604084013590509250925092565b600060208284031215611c2a57600080fd5b813567ffffffffffffffff811115611c4157600080fd5b610e9484828501611b11565b60008060408385031215611c6057600080fd5b611c6983611a44565b9150602083013560ff81168114611c7f57600080fd5b809150509250929050565b60008060408385031215611c9d57600080fd5b611ca683611a44565b915060208301358015158114611c7f57600080fd5b60008060008060808587031215611cd157600080fd5b611cda85611a44565b9350611ce860208601611a44565b925060408501359150606085013567ffffffffffffffff811115611d0b57600080fd5b8501601f81018713611d1c57600080fd5b611d2b87823560208401611a9b565b91505092959194509250565b60008060408385031215611d4a57600080fd5b611d5383611a44565b9150611d6160208401611a44565b90509250929050565b600181811c90821680611d7e57607f821691505b602082108103611d9e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b601f82111561062357600081815260208120601f850160051c81016020861015611e185750805b601f850160051c820191505b81811015611e3757828155600101611e24565b505050505050565b815167ffffffffffffffff811115611e5957611e59611a85565b611e6d81611e678454611d6a565b84611df1565b602080601f831160018114611ea25760008415611e8a5750858301515b600019600386901b1c1916600185901b178555611e37565b600085815260208120601f198616915b82811015611ed157888601518255948401946001909101908401611eb2565b5085821015611eef5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168060ff03821115611f3257611f32611eff565b019392505050565b600082821015611f4c57611f4c611eff565b500390565b600060018201611f6357611f63611eff565b5060010190565b60008351611f7c8184602088016119c0565b835190830190611f908183602088016119c0565b01949350505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60008261204657634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052603260045260246000fd5b6000821982111561207457612074611eff565b500190565b600061ffff808316818516808303821115611f9057611f90611eff565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061211b908301846119ec565b9695505050505050565b60006020828403121561213757600080fd5b8151610bb98161198d56fea2646970667358221220f388fcd2b0340759f1372bb766a8e47800591d0ae07f723dd708f4695dc6928764736f6c634300080f0033